Python

How To Visualize and Interpret Neural Networks in Python — step-by-step AI And Machine Learning tutorial on Progressive Robot

How To Visualize and Interpret Neural Networks in Python

Neural networks achieve state-of-the-art accuracy in many fields such as computer vision, natural-language processing, and reinforcement learning. In this tutorial, you’ll specifically explore two types of explanations: 1. Saliency maps, which highlight the most important parts of the input image; and 2. decision trees, which break down each prediction into a sequence of intermediate decisions.

Read more
Pandas melt() and unmelt using pivot() function — step-by-step Python tutorial on Progressive Robot

Pandas melt() and unmelt using pivot() function

URL: https://www.progressiverobot.com/pandas-melt-unmelt-pivot-function/ Pandas melt() function is used to change the DataFrame format from wide to long. It's used to create a specific format of the DataFrame object where one or more columns work as identifiers. All the remaining columns are treated as values and unpivoted to the row axis and only two columns – variable […]

Read more
How To Query Tables and Paginate Data in Flask-SQLAlchemy — step-by-step Python tutorial on Progressive Robot

How To Query Tables and Paginate Data in Flask-SQLAlchemy

In this tutorial, you’ll use Flask and Flask-SQLAlchemy to create an employee management system with a database that has a table for employees. You’ll use the Flask shell to query a table, and get table records based on a column value. You’ll retrieve records on certain conditions. You’ll order the results by a column value, and count and limit query results. Finally, you’ll use pagination to display a certain number of records per page in a web application.

Read more
How To Obtain a pandas DataFrame from an Unordered API Endpoint — step-by-step Python tutorial on Progressive Robot

How To Obtain a pandas DataFrame from an Unordered API Endpoint

A DataFrame is a two-dimensional data structure with data presented in rows and columns. Using Python, one common method is to convert data from CSV, Excel, or API endpoints into a Pandas DataFrame. However, some API endpoints do not represent column names and their values in a clear context, which can present a challenge for converting the data into a DataFrame. In this tutorial, you will obtain data from an unordered endpoint and present it in a suitable format to Pandas DataFrame.

Read more
Python OrderedDict — step-by-step Python tutorial on Progressive Robot

Python OrderedDict

URL: https://www.progressiverobot.com/python-ordereddict/ Python OrderedDict is a [dict](/community/tutorials/python-dictionary) subclass that maintains the items insertion order. When we iterate over an OrderedDict, items are returned in the order they were inserted. A regular dictionary doesn't track the insertion order. So when iterating over it, items are returned in an arbitrary order. When we want to make sure […]

Read more
How To Work with the ZeroMQ Messaging Library — step-by-step Linux tutorial on Progressive Robot

How To Work with the ZeroMQ Messaging Library

In this second instalment of the cloud provider ZeroMQ articles, following our previous one on the installation of the application, we are going to dive into its usage and discover ways to actually implement this fast and powerful library. We’ll make our way through various examples divided into successive sections, beginning with simple messaging between processes (i.e. using the request/response pattern).

Read more
CHAT