Source code for evalml.model_family.model_family

from enum import Enum


[docs]class ModelFamily(Enum): """Enum for family of machine learning models.""" RANDOM_FOREST = 'random_forest' XGBOOST = 'xgboost' LINEAR_MODEL = 'linear_model' CATBOOST = 'catboost' NONE = 'none' def __str__(self): model_family_dict = {ModelFamily.RANDOM_FOREST.name: "Random Forest", ModelFamily.XGBOOST.name: "XGBoost", ModelFamily.LINEAR_MODEL.name: "Linear", ModelFamily.CATBOOST.name: "CatBoost", ModelFamily.NONE.name: "None"} return model_family_dict[self.name]