Methods for training a `RandomForestClassifier` from `scikit-learn` to classify MRI series types.
train_setup
(df
)
Extract labels for training data and use 'unknown' as test set
train_fit
(train
, y
, features
, fname
='model-run.skl'
)
Train a Random Forest classifier on train[features]
and y
, then save to fname
and return.