Byte
When working with datasets from external sources - column names can get wild. Different naming conventions, cases (snake_case, CamelCase, etc.), as well as names are common. A common headache is caused by really long column names, that you might have to call on many times in the lifecycle of...
David Landup
Checking for correlation, and quantifying correlation is one of the key steps during exploratory data analysis and forming hypotheses. Pandas is one of the most widely used data manipulation libraries, and it makes calculating correlation coefficients between all numerical variables very straightforward - with a single method call. For more...
Article
K-Means is one of the most popular clustering algorithms. By having central points to a cluster, it groups other points based on their distance to that central point. A downside of K-Means is having to choose the number of clusters, K, prior to running the algorithm that groups points. If...
Cássia Sampaio
Models are more often than not trained to be deployed to production and to give meaningful predictions for new input. To move them outside of your training environment - you'll want to save a trained model and load it in a different one. XGBoost is a great, flexible and blazingly...
Computer Vision models have come a long way - and you can leverage existing models, pre-trained on a large corpora of data, and just plug them into your prediction pipeline. While fine-tuning a network is the best way to go - importing an existing model and running predictions from the...
Let's say you have a list of individual characters, like this: chars = ['h', 'e', 'l', 'l', 'o', ' ', 'w', 'o', 'r', 'l', 'd'] What if you need to convert...
Scott Robinson
Padding a number with zeros can be needed for a few reasons, whether it's to make a number look more readable, to make a numeric string easier to sort in a list, or in low-level binary protocols that require packets to be a certain length. The most obvious way to...
String manipulation is a common task in many languages, especially when creating user interfaces. One of the most common tasks is to concatenate a string and an integer together. Here we'll show you a few different ways to achieve this in Python. Using the + operator, we can add a string...
Agglomerative Hierarchical Clustering is an unsupervised learning algorithm that links data points based on distance to form a cluster, and then links those already clustered points into another cluster, creating a structure of clusters with sub-clusters. It is easily implemented using Scikit-Learn which already has single, average, complete and ward...
© 2013-2025 Stack Abuse. All rights reserved.