Estimators

The ExpertScorecard class is directly compatible with scikit-learn.

ExpertScorecard

class risk_kit.expert_scorecard.models.ExpertScorecard(features, validation_registry=None)[source]

Bases: BaseEstimator, RegressorMixin

__init__(features, validation_registry=None)[source]
validate()[source]
property feature_names_: list[str]

Sklearn-compatible feature names property.

get_params(deep=True)[source]

Get parameters for this estimator.

fit(X, y=None, **fit_params)[source]

Fit is a no-op for expert scorecards - they are pre-trained.

predict(X)[source]

Calculate risk scores for input data (sklearn-compatible).

predict_single(X)[source]

Score a single record (original interface for backward compatibility).

score(X, y)[source]

Return the predicted scores (sklearn-compatible).

get_table_data()[source]
get_score_range()[source]