@classmethod
    def fit_from_cfg(cls, choosers, chosen_fname, alternatives, cfgname):
        logger.debug('start: fit from configuration {}'.format(cfgname))
        lcm = cls.from_yaml(str_or_buffer=cfgname)
        lcm.fit(choosers, alternatives, choosers[chosen_fname])
        for k, v in lcm._group.models.items():
            print("LCM RESULTS FOR SEGMENT %s\n" % str(k))
            v.report_fit()
        lcm.to_yaml(str_or_buffer=cfgname)
        logger.debug('finish: fit from configuration {}'.format(cfgname))
        return lcm
Parameters
dataset/ETHPy150Open UDST/urbansim/urbansim/models/dcm.py/SegmentedMNLDiscreteChoiceModel.fit_from_cfg