Search
110 notes match pandas
.
- Boost DataFrame Filtering Speed with isin()7 min
Pandas DataFrame filtering operations utilize boolean indexing under the hood, where each condition creates a boolean mask. Understanding the internal...
Miscellany, DataFrames and pandas - Cheat Sheet for Solving Any ML Problem8 min
Machine learning classification involves predicting discrete class labels or categories from input features. The process requires labeled training data and...
Miscellany, DataFrames and pandas - Custom Exception Handling for ML Pipelines14 min
Exception handling in machine learning requires specialized error types to handle data processing, model training, and inference failures. Creating a custom...
Miscellany, DataFrames and pandas - Detecting and Mitigating Model Drift9 min
Model drift is a crucial concept in machine learning, referring to the degradation of a model's performance over time. This occurs when the statistical...
Miscellany, DataFrames and pandas - Discriminative vs. Generative Models A Primer15 min
Discriminative models directly learn the mapping between input features and output labels by modeling conditional probability P(Y|X). They focus on decision...
Miscellany, DataFrames and pandas - Efficient Fine-Tuning with LoRA9 min
Low-Rank Adaptation (LoRA) is a technique for fine-tuning large language models more efficiently. It allows for task-specific adaptations without modifying...
Miscellany, DataFrames and pandas - Efficient Fine-Tuning with Quantized Low-Rank Adaptation11 min
QLoRA (Quantized Low-Rank Adaptation) is an innovative strategy for fine-tuning large language models while significantly reducing memory usage. It combines...
Miscellany, DataFrames and pandas - Enhancing Function Flexibility with kwargs12 min
The \\kwargs syntax allows functions to accept arbitrary keyword arguments as a dictionary, providing flexibility in handling varying numbers of parameters....
Miscellany, DataFrames and pandas - Enhancing Regression Models with Quantile Analysis7 min
Quantile regression extends beyond traditional mean-based regression by modeling the relationship between predictors and different quantiles of the response...
Miscellany, DataFrames and pandas - Filling Blank Values in a DataFrame5 min
To fill all blank (NaN) values in a DataFrame with zero using Python, we can use the fillna() method. This method is part of the pandas library, which...
Miscellany, DataFrames and pandas - Fundamentals of Binary Classification9 min
Binary classification forms the foundation of many machine learning applications, where the goal is to categorize input data into one of two classes. This...
Miscellany, DataFrames and pandas - Implementing Multiple Regression from Scratch9 min
We'll dive into the mathematics behind the Ordinary Least Squares (OLS) technique and create a custom class that performs the same task as Sklearn's built-in...
Miscellany, DataFrames and pandas - Mastering DataFrames with .describe()6 min
The describe() method provides a comprehensive statistical summary of numerical columns in a DataFrame, including count, mean, standard deviation, minimum...
Miscellany, DataFrames and pandas - Mastering NER for Documents with Multiple Entities3 min
Natural Entity Recognition (NER) becomes more reliable when combined with data enrichment techniques. This approach helps overcome common challenges in...
Miscellany, DataFrames and pandas - Mastering QLoRA9 min
QLoRA (Quantized Low-Rank Adaptation) is an efficient fine-tuning technique for large language models. It combines quantization and low-rank adaptation to...
Miscellany, DataFrames and pandas - Scaling Inference Compute with Large Language Monkeys12 min
Large Language Monkeys (LLM) is a novel approach to natural language processing that combines the power of large language models with repeated sampling...
Miscellany, DataFrames and pandas - Skimpy Comprehensive Data Summarization Tool6 min
Skimpy revolutionizes data analysis by offering comprehensive statistical summaries and visualizations. It extends beyond basic descriptive statistics to...
Miscellany, DataFrames and pandas - Vertical DataFrame Concatenation with pd.concat()6 min
The pandas concat() function is the primary tool for vertically combining DataFrames, allowing row-wise concatenation using axis=0. This operation is...
Miscellany, DataFrames and pandas - Memory-Efficient Techniques for Duplicate Removal6 min
Memory efficiency in duplicate removal operations is crucial for large datasets. The choice between different methods can significantly impact both memory...
Miscellany, Software engineering - Understanding Time Series Data9 min
Time series analysis requires specialized data structures and preprocessing techniques. NumPy and Pandas provide robust foundations for handling temporal...
Miscellany, Time series and sequences