示例#1
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
示例#2
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
示例#3
0
def mnl_estimate(data,chosen,numalts,gpu=GPU):
    return mnl.mnl_estimate(data,chosen,numalts,gpu)
示例#4
0
def mnl_estimate(data, chosen, numalts, gpu=GPU):
    return mnl.mnl_estimate(data, chosen, numalts, gpu)