Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

eazypredict

Latest version: v0.4.0

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
PyPI package Publisher: codevardhan
0 Stars
0 Forks
2 Versions
134 Downloads
Python Repo language

Scan summary

eazypredict was last scanned on 29 Nov 2026 at version 0.4.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 2 versions, all published within 5 days (25–29 Nov 2026).
  • Findings: No rules fired in version 0.4.0.
  • Downloads: 134 downloads.

Versions

2 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.4.0 LATEST 29 Nov 2026 No rules fired
0.3.0 25 Nov 2026 No rules fired

No rules fired in 0.4.0

Findings

Findings for v0.4.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.4.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

EazyPredict

Fit a dozen scikit-learn models on your data and compare them on a single leaderboard. Useful when you want to know which family of model is worth your time before you commit to tuning one.

Inspired by LazyPredict, with a narrower model list and a few things it does differently:

  • Cross-validated by default (cv=5), reporting a mean and a standard deviation per metric. A single split on a few hundred rows makes the ranking mostly noise.
  • Automatic preprocessing. Mixed-dtype frames with missing values and categorical columns work as-is. Each model gets its own cloned preprocessor inside a Pipeline, so cross-validation does not leak.
  • A model that fails costs one row, not the run. Check errors_.
  • Reproducible. random_state is threaded into every candidate estimator.
  • Light core. xgboost, lightgbm and matplotlib are optional extras.

Installation

pip install eazypredict                 # core: scikit-learn, pandas, numpy
pip install 'eazypredict[boosters]'     # + xgboost, lightgbm
pip install 'eazypredict[plots]'        # + matplotlib
pip install 'eazypredict[all]'

Requires Python 3.10+.

Classification

from sklearn.datasets import load_breast_cancer
from eazypredict import EazyClassifier

X, y = load_breast_cancer(return_X_y=True)

clf = EazyClassifier(random_state=0).fit(X, y)
print(clf.results_[["accuracy", "f1", "roc_auc", "accuracy_std", "status"]].round(3))
                                accuracy     f1  roc_auc  accuracy_std status
model
LogisticRegression                 0.981  0.985    0.995         0.012     ok
SVC                                0.981  0.985    0.997         0.012     ok
HistGradientBoostingClassifier     0.979  0.983    0.994         0.017     ok
MLPClassifier                      0.976  0.981    0.994         0.011     ok
LGBMClassifier                     0.974  0.980    0.996         0.023     ok
XGBClassifier                      0.972  0.978    0.993         0.022     ok
SGDClassifier                      0.969  0.976    0.988         0.024     ok
KNeighborsClassifier               0.967  0.974    0.989         0.023     ok
RidgeClassifier                    0.962  0.971    0.993         0.020     ok
RandomForestClassifier             0.962  0.970    0.996         0.009     ok
DecisionTreeClassifier             0.937  0.949    0.932         0.018     ok
GaussianNB                         0.929  0.944    0.988         0.031     ok

Row 0 is always the best model, and is what predict uses:

clf.best_model_name_  # 'LogisticRegression'
clf.best_estimator_  # the fitted Pipeline, preprocessing included
clf.models_  # every fitted pipeline, by name

clf.predict(X[:5])
clf.predict_proba(X[:5])

Every model is fitted on a training split, never on all of X. The remainder stays held out, which is what makes feature_importances() measurable on unseen data — if the models were refit on everything after scoring, that number would quietly become a training-set statistic.

ROC AUC is computed from probabilities — or from decision_function where that is all a model offers — not from hard class labels. A model that can supply neither reports NaN for that one metric and keeps its place on the leaderboard.

Regression

from sklearn.datasets import load_diabetes
from eazypredict import EazyRegressor

X_reg, y_reg = load_diabetes(return_X_y=True)

reg = EazyRegressor(random_state=0).fit(X_reg, y_reg)
print(reg.results_[["rmse", "mae", "r2", "rmse_std", "status"]].round(3))
                                  rmse     mae     r2  rmse_std status
model
Ridge                           54.084  43.928  0.523     3.867     ok
LinearRegression                54.093  43.925  0.522     3.864     ok
ElasticNet                      55.462  46.502  0.500     3.995     ok
RandomForestRegressor           56.913  46.204  0.470     5.752     ok
KNeighborsRegressor             57.994  46.009  0.455     4.990     ok
HistGradientBoostingRegressor   59.251  46.638  0.425     6.642     ok
LGBMRegressor                   59.717  47.324  0.418     5.565     ok
XGBRegressor                    63.174  50.158  0.343     5.253     ok
NuSVR                           73.395  63.407  0.129     3.616     ok
DecisionTreeRegressor           76.806  60.101  0.031     7.736     ok
MLPRegressor                   106.945  86.631 -0.862     7.265     ok

Minimised metrics (rmse, mae, mape, log_loss) are reported as positive numbers and sorted ascending, so row 0 is the best model whichever metric you sort by.

Messy data

The case most of these tools fall over on: floats with gaps, string columns, nothing cleaned.

import numpy as np
import pandas as pd

rng = np.random.default_rng(0)
n = 200
df = pd.DataFrame(
    {
        "age": rng.normal(40, 12, n),
        "city": rng.choice(["London", "Paris", "Tokyo"], n),
        "score": rng.normal(0, 1, n),
    }
)
df.loc[rng.choice(n, 20, replace=False), "age"] = np.nan  # missing numbers
df.loc[rng.choice(n, 15, replace=False), "city"] = None  # missing categories
target = (df["score"] + rng.normal(0, 0.5, n) > 0).astype(int)

messy = EazyClassifier(
    estimators=[
        "LogisticRegression",
        "RandomForestClassifier",
        "HistGradientBoostingClassifier",
    ],
    random_state=0,
).fit(df, target)
print(messy.results_[["accuracy", "f1", "roc_auc", "status"]].round(3))
                                accuracy     f1  roc_auc status
model
LogisticRegression                 0.873  0.868    0.953     ok
RandomForestClassifier             0.853  0.844    0.930     ok
HistGradientBoostingClassifier     0.847  0.843    0.943     ok

Numeric columns are median-imputed and scaled; categorical columns are most-frequent-imputed and one-hot encoded. Pass preprocess=False to turn this off, or pass your own transformer to use instead.

Imbalanced classes

When one class dominates, accuracy mostly measures the majority class, and every model on the leaderboard can look excellent while predicting the minority class badly.

from sklearn.datasets import make_classification

X_imb, y_imb = make_classification(
    n_samples=2000, n_features=10, n_informative=5, weights=[0.95, 0.05], random_state=0
)
models = ["LogisticRegression", "RandomForestClassifier", "SVC"]

plain = EazyClassifier(estimators=models, random_state=0).fit(X_imb, y_imb)
print(plain.class_balance_)
print(plain.results_[["accuracy", "recall", "balanced_accuracy"]].round(3))
class
0    0.9465
1    0.0535
Name: proportion, dtype: float64

                        accuracy  recall  balanced_accuracy
model
RandomForestClassifier     0.973   0.973              0.756
SVC                        0.973   0.973              0.744
LogisticRegression         0.971   0.971              0.725

97% accurate, and barely better than a coin flip on the class anyone actually cares about. class_weight="balanced" applies the weighting to every candidate at once, so the comparison stays fair:

balanced = EazyClassifier(
    estimators=models,
    class_weight="balanced",
    sort_by="balanced_accuracy",
    random_state=0,
).fit(X_imb, y_imb)
print(balanced.results_[["accuracy", "recall", "balanced_accuracy"]].round(3))
                        accuracy  recall  balanced_accuracy
model
SVC                        0.956   0.956              0.829
LogisticRegression         0.844   0.844              0.817
RandomForestClassifier     0.971   0.971              0.796

A {label: weight} mapping works too, keyed by your own labels. Not every estimator supports weighting — GaussianNB and KNeighborsClassifier do not — so those are named in a warning rather than silently left unweighted, since a leaderboard where half the rows were reweighted and half were not is not a comparison.

On a binary target f1, precision and recall are reported for the positive class, not averaged over both. Averaging would make recall an exact copy of accuracy and hide the thing you opened the column to see.

Choosing models

custom = EazyClassifier(
    estimators=["LinearSVC", "NearestCentroid", "AdaBoostClassifier"],
    sort_by="f1",
    random_state=0,
).fit(X, y)

estimators accepts "default", "all" (every applicable scikit-learn estimator), a list of names, bare instances, or (name, estimator) pairs — so a model can be pre-configured:

from sklearn.ensemble import RandomForestClassifier

EazyClassifier(estimators=[("rf_500", RandomForestClassifier(n_estimators=500))])

A misspelled name fails immediately with a suggestion, rather than after a long run.

Choosing metrics

Defaults are accuracy, balanced_accuracy, f1, precision, recall, roc_auc, log_loss, matthews_corrcoef for classification and rmse, mae, r2, mape, explained_variance for regression. Pass a list to keep a subset, in your own order:

EazyClassifier(metrics=["accuracy", "f1"], sort_by="f1")

Or a mapping of name to any scikit-learn scorer:

from sklearn.metrics import get_scorer, make_scorer, fbeta_score

EazyClassifier(
    metrics={
        "accuracy": "accuracy",
        "f2": make_scorer(fbeta_score, beta=2),
        "auc": get_scorer("roc_auc"),
    }
)

Cross-validation and splits

from sklearn.model_selection import StratifiedKFold, train_test_split

EazyClassifier(cv=10)  # more folds
EazyClassifier(cv=StratifiedKFold(3))  # any splitter
EazyClassifier(cv=None, test_size=0.25)  # a single holdout split, faster

With an explicit test set, every model is scored on exactly that set:

X_train, X_test, y_train, y_test = train_test_split(
    X, y, test_size=0.25, random_state=0, stratify=y
)

holdout = EazyClassifier(
    estimators=["LogisticRegression", "RandomForestClassifier"],
    cv=None,
    random_state=0,
).fit(X_train, y_train, X_test=X_test, y_test=y_test)

Ensembles

top = EazyClassifier(
    estimators=[
        "LogisticRegression",
        "RandomForestClassifier",
        "KNeighborsClassifier",
        "GaussianNB",
    ],
    random_state=0,
).fit(X_train, y_train)

ensemble = top.fit_voting_ensemble(n_models=3)
print(ensemble.score(X_test, y_test))

The leading n_models from the leaderboard are combined, so the ensemble honours sort_by. Soft voting is used by default, falling back to hard voting with a warning if a selected model has no predict_proba. EazyRegressor.fit_voting_ensemble is the same, minus the voting argument.

Voting averages the base models with fixed weights. Stacking learns how to combine them, so it can discover that one model is worth listening to only where another is uncertain:

stack = top.fit_stacking_ensemble(n_models=3)
print(stack.score(X_test, y_test))

The meta-model is trained on out-of-fold predictions, never on predictions the base models made about rows they were fitted on. That distinction is the whole feature: an unlimited-depth tree predicts its own training rows perfectly, so a meta-model trained in-sample sees a flawless oracle and hands it most of the weight, while the same tree is mediocre on anything else. cv defaults to the setting the leaderboard used, and the meta-model defaults to a linear one — anything with enough capacity to be interesting has enough capacity to memorise the fold predictions.

Both return the plain scikit-learn object (VotingClassifier, StackingClassifier), and both predict in your original label space.

Tuning

The leaderboard compares models at their default settings, which answers which family is worth my time — not how good can this get. tune() asks the second question, of one model:

clf = EazyClassifier(
    estimators=["LogisticRegression", "RandomForestClassifier", "KNeighborsClassifier"],
    random_state=0,
).fit(X_train, y_train)

search = clf.tune(n_iter=30)  # defaults to clf.best_model_name_
print(search.best_params_)
print(search.best_estimator_.score(X_test, y_test))
{'model__max_depth': 20, 'model__max_features': None,
 'model__min_samples_leaf': 1, 'model__n_estimators': 459}
cv  0.844 -> 0.878
holdout  0.847 -> 0.880

You get back a fitted RandomizedSearchCV, also stored as clf.search_. Its best_estimator_ is a full Pipeline including preprocessing, so the preprocessor is refitted inside every fold rather than once on data the folds then reuse.

The search optimises whatever metric sort_by ranked the leaderboard on — searching for accuracy after ranking on roc_auc would hand back a model that is worse by the only measure you asked about. cv follows the leaderboard too, except that cv=None becomes 5 folds: a single split is enough to rank families, but choosing between hyperparameters on one split picks whatever best fits that split, which is the failure a tuner exists to prevent.

Nothing about the leaderboard changes. The searched pipeline is a clone, the holdout is untouched, and clf.predict still uses the untuned model until you decide otherwise.

Spaces ship for 24 estimators and are deliberately broad rather than clever — a narrow space encodes assumptions about data its author never saw, and a search that cannot reach the right answer is worse than no search, because it reports a confident best. Continuous parameters get continuous distributions, log-uniform where the effect is multiplicative, so draws are not spent re-sampling the top decade of a range. Override with param_distributions= (keys prefixed model__), or inspect eazypredict.tuning.SEARCH_SPACES.

Calibrated probabilities

Accuracy only asks whether the argmax is right. If you are going to threshold a probability somewhere other than 0.5, weigh it against a cost, or quote it to someone, you need it to mean something — and a model can be accurate while its probabilities are nonsense.

clf = EazyClassifier(
    estimators=["DecisionTreeClassifier", "RidgeClassifier", "LogisticRegression"],
    sort_by="log_loss",
    calibrate=True,  # or "sigmoid" / "isotonic"
    random_state=0,
).fit(X_train, y_train)
calibrate=False                             calibrate=True
                        log_loss  accuracy                          log_loss  accuracy
LogisticRegression         0.477     0.788  RidgeClassifier            0.476     0.787
DecisionTreeClassifier    10.753     0.702  LogisticRegression         0.478     0.787
RidgeClassifier              NaN       NaN  DecisionTreeClassifier     0.581     0.755

Two things change. The tree was 70% accurate while reporting probabilities of exactly 0 and 1 — confidently wrong three times in ten, which log_loss of 10.75 is telling you and accuracy of 0.702 is not. And RidgeClassifier has no predict_proba at all, so it could not be ranked on a probability metric; calibration gives it one, and it comes out on top.

plot_calibration_curve() shows where a model is overconfident, which no single number can:

clf.plot_calibration_curve(["DecisionTreeClassifier", "LogisticRegression"])

Bins hold equal numbers of samples rather than equal probability widths — predictions cluster near 0 and 1, so fixed-width bins leave the middle of the curve resting on a handful of points that swing around and look like miscalibration.

True means "sigmoid", a two-parameter fit that is safe at any sample size. "isotonic" is more flexible and will fit a stranger distortion, but it overfits below roughly a thousand samples — on the 800-row example above it is worse than sigmoid on every model. The calibrator cross-validates inside the training split, so it never sees the base model's predictions about rows that model was fitted on; a calibrator shown those would learn nothing, since an overfit model's in-sample probabilities already look perfect. That costs an extra round of fits per candidate.

Which features mattered

named = EazyClassifier(
    estimators=["LogisticRegression", "RandomForestClassifier", "GaussianNB"],
    random_state=0,
).fit(*load_breast_cancer(return_X_y=True, as_frame=True))

print(named.feature_importances(n_repeats=10).head())

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases eazypredict

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Frame 2085668439 (1)
Group 1261154229