def estimate(data,est_params,numalts,availability=None,gpu=None): global GPU if gpu is None: gpu = GPU if est_params[0] == 'mnl': if availability: assert 0 # not implemented yet return mnl.mnl_estimate(data,est_params[1],numalts,gpu) elif est_params[0] == 'nl': return nl.nl_estimate(data,est_params[1],numalts,est_params[2],availability,gpu) else: assert 0
def estimate(data, est_params, numalts, availability=None, gpu=None): global GPU if gpu is None: gpu = GPU if est_params[0] == 'mnl': if availability: assert 0 # not implemented yet return mnl.mnl_estimate(data, est_params[1], numalts, gpu) elif est_params[0] == 'nl': return nl.nl_estimate(data, est_params[1], numalts, est_params[2], availability, gpu) else: assert 0
def mnl_estimate(data,chosen,numalts,gpu=GPU): return mnl.mnl_estimate(data,chosen,numalts,gpu)
def mnl_estimate(data, chosen, numalts, gpu=GPU): return mnl.mnl_estimate(data, chosen, numalts, gpu)