Tagged articles
3 articles
Page 1 of 1
DeepHub IMBA
DeepHub IMBA
Mar 11, 2026 · Fundamentals

Detecting Time‑Series Change Points with Grid Search and Piecewise Regression

This article shows how to turn change‑point detection into an optimization problem by exhaustively searching knot configurations with grid search, selecting the best model using a penalised likelihood criterion (BIC), and applying piecewise regression to automatically locate trend breakpoints, illustrated with R and Python code on California natural‑gas consumption data.

BICPythonR
0 likes · 12 min read
Detecting Time‑Series Change Points with Grid Search and Piecewise Regression
Code DAO
Code DAO
Jan 15, 2022 · Artificial Intelligence

Improving Class Imbalance in Machine Learning with Class Weights: A Python Logistic Regression Walkthrough

The article demonstrates, with Python code, how applying class_weight—first using the default logistic regression, then the balanced option, and finally manually tuned weights via grid search—can raise the F1 score from 0 to about 0.16 on imbalanced data, and discusses further techniques such as feature engineering and threshold adjustment.

F1 scorePythonclass weight
0 likes · 7 min read
Improving Class Imbalance in Machine Learning with Class Weights: A Python Logistic Regression Walkthrough