@classmethod
    def from_config(cls, config, name, section_key="scorer_models"):
        section = config[section_key][name]
        if 'model_file' in section:
            return cls.load(open(section['model_file'], 'rb'))
        else:
            return cls(**{k: v for k, v in section.items() if k != "class"})
Constructs a model from configuration.
dataset/ETHPy150Open wiki-ai/revscoring/revscoring/scorer_models/scorer_model.py/MLScorerModel.from_config