Byte
In data manipulation and scientific computing, NumPy stands as one of the most-used libraries as it provides quite a few functionalities. One such operation, "flattening," helps to transform multi-dimensional arrays into a one-dimensional sequence. While flattening an entire array is pretty straightforward, there are times when you might...
Scott Robinson
At some point when working with arrays and lists in Python, you might have encountered a "Shape Mismatch Error" while trying to perform certain operations. This error is a common stumbling block for many Python programmers. In this Byte, we'll explore what this error is, why it occurs,...
NumPy (oftentimes also written as Numpy) is a linear algebra library, which is the basis for most of the scientific computing done in Python. Most libraries for data science, analysis and machine learning are built on top of NumPy as the basis for linear algebra, and also have tight coupling...
Felipe Antunes
Article
Sometimes confused with linear regression by novices - due to sharing the term regression - logistic regression is far different from linear regression. While linear regression predicts values such as 2, 2.45, 6.77 or continuous values, making it a regression algorithm, logistic regression predicts values such as 0...
Cássia Sampaio
Missing values are common and occur either due to human error, instrument error, processing from another team, or otherwise just a lack of data for a certain observation. In this Byte, we'll take a look at how to fill NaNs in a DataFrame, if you choose to handle NaNs by...
David Landup
In this guide - we'll take a look at how to calculate the Euclidean distance between two points in Python, using Numpy. Euclidean distance is a fundamental distance metric pertaining to systems in Euclidean space. Euclidean space is the classical geometrical space that you get familiar with in the Math...
Bilal Hamada
NumPy is the most popular mathematical computing Python library. It offers a great number of mathematical tools including but not limited to multi-dimensional arrays and matrices, mathematical functions, number generators, and a lot more. One of the fundamental tools in NumPy is the ndarray - an N-dimensional array. Today, we're...
This guide is an in-depth introduction to an unsupervised dimensionality reduction technique called Random Projections. A Random Projection can be used to reduce the complexity and size of data, making the data easier to process and visualize. It is also a preprocessing technique for input preparation to a classifier or...
Mehreen Saeed
In this guide, we'll be taking a look at an unsupervised learning model, known as a Self-Organizing Map (SOM), as well as its implementation in Python. We'll be using an RGB Color example to train the SOM and demonstrate its performance and typical usage. Self-Organizing Maps: A General Introduction A...
© 2013-2024 Stack Abuse. All rights reserved.