Article

A list is the most flexible data structure in Python. Whereas, a 2D list which is commonly known as a list of lists, is a list object where every item is a list itself - for example: [[1,2,3], [4,5,6], [7,8,9]]. Flattening a list of...

Raksha Shenoy

In this tutorial, we'll discuss the details of generating different synthetic datasets using Numpy and Scikit-learn libraries. We'll see how different samples can be generated from various distributions with known parameters. We'll also discuss generating datasets for different purposes, such as regression, classification, and clustering. At the end we'll see...

Mehreen Saeed

This tutorial will go through some common ways for removing elements from Python arrays/lists. Arrays or Lists? Python's built-in sequence representation is a list, defined as a heterogenous sequence of elements, where each element has a definitive index in the sequence. To use arrays, you'd have to import the...

Luka Čupić

In machine learning, the performance of a model only benefits from more features up until a certain point. The more features are fed into a model, the more the dimensionality of the data increases. As the dimensionality increases, overfitting becomes more likely. There are multiple techniques that can be used...

Dan Nelson

The Numpy library can be used to perform a variety of mathematical/scientific operations such as matrix cross and dot products, finding sine and cosine values, Fourier transform and shape manipulation, etc. The word Numpy is short-hand notation for "Numerical Python". In this article, you will see how...

Guest Contributor

© 2013-2022 Stack Abuse. All rights reserved.