support/parse_model.py
def model(dinfo):
    '''
    A general-purpose wrapper for model classes.

    Input: a data info object.

    Output: an instance of the desired model.
    '''
    
    # Return the appropriate model object.
    if dinfo.mname == "LgstReg":
        return md.LgstReg(dinfo)

    if dinfo.mname == "LinReg":
        return md.LinReg(dinfo)

    if dinfo.mname == "Encoder":
        return md.Encoder(dinfo)

    if dinfo.mname == "NoisyOpt":
        return md.NoisyOpt(dinfo)

    A general-purpose wrapper for model classes.

    Input: a data info object.

    Output: an instance of the desired model.
    
A general-purpose wrapper for model classes.
Input: a data info object.

an instance of the desired model.
A general - purpose wrapper for model classes . Input : a data info object . an instance of the desired model .
def model(dinfo):
    if dinfo.mname == "LgstReg":
        return md.LgstReg(dinfo)
    if dinfo.mname == "LinReg":
        return md.LinReg(dinfo)
    if dinfo.mname == "Encoder":
        return md.Encoder(dinfo)
    if dinfo.mname == "NoisyOpt":
        return md.NoisyOpt(dinfo)
def model ( dinfo ) : if dinfo . mname == "LgstReg" : return md . LgstReg ( dinfo ) if dinfo . mname == "LinReg" : return md . LinReg ( dinfo ) if dinfo . mname == "Encoder" : return md . Encoder ( dinfo ) if dinfo . mname == "NoisyOpt" : return md . NoisyOpt ( dinfo )
A general-purpose wrapper for model classes.
A general - purpose wrapper for model classes .
'''
    A general-purpose wrapper for model classes.

    Input: a data info object.

    Output: an instance of the desired model.
    ''' # Return the appropriate model object.
dinfo