BreezeML

Classifiers

Predicting a category (spam or not, which species, which class). BreezeML ships 24 classifiers. Use classifiers.compare() to rank them all on your data, or call any one directly. Each returns a fitted model plus an honest cross-validated report.

Test any modelRun here

Pick a model, press Run, and it trains and cross-validates on the spot, in your browser.

Results will appear here.

All 24 classifiers

call as breezeml.classifiers.<name>(df, target). Marked * need the optional [boost] extra and run locally, not in the browser.

ModelCallGood for
Logistic RegressionlogisticFast, interpretable baseline. Always try this first.
Random Forestrandom_forestRobust all-rounder. Great default on tabular data.
Gradient Boostinggradient_boostingStrong accuracy by correcting its own mistakes.
Hist Gradient Boostinghist_gradient_boostingFast boosting for larger datasets.
Extra Treesextra_treesLike random forest, more randomness, often faster.
AdaBoostadaboostBoosts weak learners; good on clean data.
Decision Treedecision_treeOne readable tree of if/else rules.
K-Nearest NeighborsknnPredicts from the closest examples. No training.
SVM (RBF)svmPowerful non-linear boundaries on small/medium data.
Linear SVMlinear_svmFast linear margin classifier for many features.
MLP (neural net)mlpA small neural network for non-linear patterns.
Ridge ClassifierridgeRegularized linear classifier, resists overfitting.
SGD ClassifiersgdScales to huge datasets via online learning.
Passive Aggressivepassive_aggressiveOnline learner for streaming text/data.
LDAldaLinear discriminant analysis, elegant on Gaussian data.
QDAqdaQuadratic version, curved boundaries.
Gaussian NBgaussian_nbNaive Bayes for continuous features. Very fast.
Multinomial NBmultinomial_nbNaive Bayes for counts, classic for text.
Complement NBcomplement_nbNaive Bayes tuned for imbalanced text.
Bernoulli NBbernoulli_nbNaive Bayes for binary features.
Nearest Centroidnearest_centroidAssigns to the closest class average. Tiny + fast.
BaggingbaggingAverages many models to cut variance.
XGBoostextraxgboostKaggle-winning gradient boosting.
LightGBMextralightgbmVery fast, memory-light boosting.

compare()

classifiers.compare(df, target) -> leaderboardRun here

The signature move: rank every classifier on the SAME cross-validation folds, then light the winner. Fair by construction. (The browser runs a fast subset; run locally for all 24.)

In plain English: A fair race: every model runs on the exact same splits, and the real winner lights up. No cherry-picking.

Try it yourself
Output

Press Run to execute this snippet.

See where a model gets confused

confusion matrixRun here

A confusion matrix shows, for every true class, what the model guessed. Bright squares on the diagonal are correct; anything off-diagonal is a mix-up. Press Run to see one for real wine classes.

In plain English: A grid of right versus wrong. The bright diagonal is what it got correct; off-diagonal squares show which classes it mixes up.

Try it yourself
Output

Press Run to execute this snippet.

Call one directly

classifiers.random_forest(df, target) -> (model, report)

Every classifier is a one-liner that returns a fitted model and an honest report. Swap the name to swap the algorithm.

In plain English: Prefer a specific algorithm? Every one is a single line that trains it and grades it. Change the name, change the method.

Exampleruns locally after pip install
import breezeml

df = breezeml.datasets.iris()
model, report = breezeml.classifiers.random_forest(df, "species")
print(report)

quick_tune()

classifiers.quick_tune(df, target, algo='random_forest')

Tune the winner's hyperparameters over a small, sensible grid, no sprawling search.

In plain English: Nudges the winner's settings over a small, sensible range to squeeze out a little more, without a giant search.

Exampleruns locally after pip install
import breezeml

df = breezeml.datasets.wine()
best = breezeml.classifiers.quick_tune(df, "wine_class", algo="random_forest")

All sections