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 nl_estimate(data,chosen,numalts,nestinfo,gpu=GPU): return nl.nl_estimate(data,chosen,numalts,nestinfo,gpu)
def nl_estimate(data, chosen, numalts, nestinfo, gpu=GPU): return nl.nl_estimate(data, chosen, numalts, nestinfo, gpu)