I can’t actually share all the code. So this feels incomplete. But I can share what I said about the code. Then you can look at your code and decide if you’ve got similar problems to fix.

My responses were these. I’ll expand on them below.

Source de l’article sur DZONE

In this episode, you will learn the basics of Python decorators and what the are good for.

You can read the chapter this screencast is based on here: http://python101.pythonlibrary.org/ or purchase the book on Leanpub

Source de l’article sur DZONE

When writing unit tests, it is common to initialize method input parameters and expected results in the test method itself. In some cases, using a small set of inputs is enough; however, there are cases in which we need to use a large set of values to verify all of the functionality in our code. Parameterized tests are a good way to define and run multiple test cases, where the only difference between them is the data. They can validate code behavior for a variety of values, including border cases. Parameterizing tests can increase code coverage and provide confidence that the code is working as expected.

There are a number of good parameterization frameworks for Java. In this article, we will look at three different frameworks commonly used with JUnit tests, with a comparison between them and examples of how the tests are structured for each. Finally, we will explore how to simplify and expedite the creation of parameterized tests.

Source de l’article sur DZONE

MongoDB is always one step ahead of other database solutions in providing user-friendly suplog port with advance features rolled out to ease operations. The OpLog feature was used extensively by MongoDB connectors to pull out data updates and generate stream. OpLog feature banked on MongoDB’s internal replication feature. While the feature was highly useful, it was complex and necessarily mean tailing of logs.

To simplify things, Change Streams as subscriber to all insert, update, delete MongoDB collection operations was introduced, which should go well with Node.js event-based architecture. 

Source de l’article sur DZONE

UI testing is an important part of quality assurance. Specifically, UI testing refers to the practice of testing front-end components to make sure that they do what they’re supposed to. If a user clicks the Login button, the login modal appears. If they click a link, they’re brought to the appropriate part of the application. With automation platforms, these individual tests can be linked together into workflows and automated. Business-driven development style tests can be created in this fashion. The UI can be tested to see that each individual path that a user may take is functional and that the interface is responding appropriately. Other platforms exist that allow these workflows to be tested on simulated resolutions and devices, ensuring that the user experience is consistent across all possible combinations of browser and device.

API testing lives a layer below UI testing. The UI is fed by these APIs and renders the DOM based upon conditions set by both the user and the developer. These conditions determine the sort of API call that’s made to populate the viewport. When we’re UI Testing, it could be argued that we are indirectly testing the API layer. It’s actually pretty fair to say so. Many of the actions that our UI platform will take will issue API calls. If the DOM rerenders correctly, we can assume to an extent that the API call was successful. The dangerous ground here is the assumption.

Source de l’article sur DZONE


What Is NumPy?

NumPy is a powerful Python library that is primarily used for performing computations on multidimensional arrays. The word NumPy has been derived from two words — Numerical Python. NumPy provides a large set of library functions and operations that help programmers in easily performing numerical computations. These kinds of numerical computations are widely used in tasks like:

  • Machine Learning Models: while writing Machine Learning algorithms, one is supposed to perform various numerical computations on matrices. For instance, matrix multiplication, transposition, addition, etc. NumPy provides an excellent library for easy (in terms of writing code) and fast (in terms of speed) computations. NumPy arrays are used to store both the training data as well as the parameters of the Machine Learning models.
  • Image Processing and Computer Graphics: Images in the computer are represented as multidimensional arrays of numbers. NumPy becomes the most natural choice for the same. NumPy, in fact, provides some excellent library functions for fast manipulation of images. Some examples are mirroring an image, rotating an image by a certain angle, etc.
  • Mathematical tasks: NumPy is quite useful to perform various mathematical tasks like numerical integration, differentiation, interpolation, extrapolation, and many others. As such, it forms a quick Python-based replacement of MATLAB when it comes to Mathematical tasks.

NumPy Installation

The fastest and the easiest way to install NumPy on your machine is to use the following command on the shell: pip install numpy.

Source de l’article sur DZONE


Alibaba Machine Intelligence Technology Laboratory

Established in 2018, the Machine Intelligence Technology Laboratory comprises of a group of outstanding scientists and engineers, with research centers located in Hangzhou, Beijing, Seattle, Silicon Valley, and Singapore. Machine Intelligence Technology Laboratory is Alibaba’s core team responsible for the research and development of artificial intelligence technologies. Relying on Alibaba’s valuable massive data and machine learning/deep learning technologies, the lab has developed image recognition, speech interaction, natural language understanding, intelligent decision-making, and other core artificial intelligence technologies. It fully empowers Alibaba Group’s important businesses such as e-commerce, finance, logistics, social interaction, and entertainment, and also provides outputs to ecosystem partners to jointly build a smart future.

Image Search

Image title


Source de l’article sur DZONE (AI)

TensorFlow Object Detection is a powerful technology that can recognize different objects in images, including their positions. The trained Object Detection models can be run on mobile and edge devices to execute predictions very quickly. I’ve used this technology to build a demo where Anki Overdrive cars and obstacles are detected via an iOS app. When obstacles are detected, the cars are stopped automatically.

Check out the short video (only 2 mins) for a quick demo.


Source de l’article sur DZONE (AI)

If you’ve spent any time job hunting, you’ll no doubt be well aware of how frustrating and hopeless the task can seem at times.

The haphazardous process of getting yourself noticed in a sea of applications that may be prioritized despite carrying less relevance is tricky enough. But then you may find that when you eventually do accept a role, it’s nothing like you were led to believe it would be.


Source de l’article sur DZONE (AI)

This GitHub project is a highly interactive graphic demonstration of the features and operations of a generated adversarial network using TensorFow.js. It is based on work done by Minsuk Kahng, Nikhil Thorat, Duen Horng (Polo) Chau, Fernanda B. Viegas, and Martin Wattenberg in their paper: GAN Lab: Understanding Complex Deep Generative Models using Interactive Visual Experimentation.

Full disclosure: The data sets are small enough and simple enough to demonstrate the technology but clearly are not full-blown image processing examples, which can often consume a lot (CPU/years?) of computer time. But these small examples provide an excellent introduction into what is going on. It takes away the spooky magic…which is a good thing! 


Source de l’article sur DZONE (AI)