easypheno.model.randomforest

Module Contents

Classes

RandomForest

Implementation of a class for Random Forest.

class easypheno.model.randomforest.RandomForest(task, optuna_trial, encoding=None, n_outputs=1)

Bases: easypheno.model._sklearn_model.SklearnModel

Implementation of a class for Random Forest.

See BaseModel for more information on the attributes.

Parameters
  • task (str) –

  • optuna_trial (optuna.trial.Trial) –

  • encoding (str) –

  • n_outputs (int) –

standard_encoding = 012
possible_encodings = ['012']
define_model(self)

Definition of the actual prediction model.

See BaseModel for more information.

define_hyperparams_to_tune(self)

See BaseModel for more information on the format.

Return type

dict