LearningDummy

Baseline (dummy) models. Trainers in the scikit-learn Dummy family, behind Learning's typed contract. Each requires a clean training set (``independent_target`` and no missing values) and stamps the model with the dataset's feature/class count. ``open LearningDummy`` brings the core types in scope too. Baseline (predicts the majority class).
Imports
open LearningCore;
Table of Contents

Functions

dummy_classifier

Baseline (predicts the majority class).
def dummy_classifier (ds: {d : Dataset | independent_target d = True && has_missing d = False}) : {m : SklearnClassifier | clf_features m = ds_features ds && clf_classes m = ds_classes ds}

dummy_regressor

Baseline (predicts the mean).
def dummy_regressor (ds: {d : Dataset | independent_target d = True && has_missing d = False}) : {m : SklearnRegressor | reg_features m = ds_features ds}