support/parse_data.py
def prep(s, skipread=False):
    '''
    Takes a string with data set name, and runs the proper setup.
    '''

    print("Preparing data (s =", s, ")...")

    if s == "toyReg":
        toread = os.path.join("data", s, "info.dat")
        if skipread:
            with open(toread, mode="br") as f:
                dinfo = pickle.load(f)
            return dinfo
        else:
            return toyReg()

    if s == "toyClass":
        toread = os.path.join("data", s, "info.dat")
        if skipread:
            with open(toread, mode="br") as f:
                dinfo = pickle.load(f)
            return dinfo
        else:
            return toyClass()

    if s == "MNIST":
        toread = os.path.join("data", s, "info.dat")
        if skipread:
            with open(toread, mode="br") as f:
                dinfo = pickle.load(f)
            return dinfo
        else:
            return MNIST()
    
    if s == "quantum":
        toread = os.path.join("data", s, "info.dat")
        if skipread:
            with open(toread, mode="br") as f:
                dinfo = pickle.load(f)
            return dinfo
        else:
            return quantum()

    if s == "NoisyOpt_isoBig":
        toread = os.path.join("data", s, "info.dat")
        if skipread:
            with open(toread, mode="br") as f:
                dinfo = pickle.load(f)
            return dinfo
        else:
            return NoisyOpt_isoBig()

    if s == "NoisyOpt_isoSmall":
        toread = os.path.join("data", s, "info.dat")
        if skipread:
            with open(toread, mode="br") as f:
                dinfo = pickle.load(f)
            return dinfo
        else:
            return NoisyOpt_isoSmall()

    Takes a string with data set name, and runs the proper setup.
    
Takes a string with data set name, and runs the proper setup.
Takes a string with data set name and runs the proper setup .
def prep(s, skipread=False):
    print("Preparing data (s =", s, ")...")
    if s == "toyReg":
        toread = os.path.join("data", s, "info.dat")
        if skipread:
            with open(toread, mode="br") as f:
                dinfo = pickle.load(f)
            return dinfo
        else:
            return toyReg()
    if s == "toyClass":
        toread = os.path.join("data", s, "info.dat")
        if skipread:
            with open(toread, mode="br") as f:
                dinfo = pickle.load(f)
            return dinfo
        else:
            return toyClass()
    if s == "MNIST":
        toread = os.path.join("data", s, "info.dat")
        if skipread:
            with open(toread, mode="br") as f:
                dinfo = pickle.load(f)
            return dinfo
        else:
            return MNIST()
    if s == "quantum":
        toread = os.path.join("data", s, "info.dat")
        if skipread:
            with open(toread, mode="br") as f:
                dinfo = pickle.load(f)
            return dinfo
        else:
            return quantum()
    if s == "NoisyOpt_isoBig":
        toread = os.path.join("data", s, "info.dat")
        if skipread:
            with open(toread, mode="br") as f:
                dinfo = pickle.load(f)
            return dinfo
        else:
            return NoisyOpt_isoBig()
    if s == "NoisyOpt_isoSmall":
        toread = os.path.join("data", s, "info.dat")
        if skipread:
            with open(toread, mode="br") as f:
                dinfo = pickle.load(f)
            return dinfo
        else:
            return NoisyOpt_isoSmall()
def prep ( s , skipread = False ) : print ( "Preparing data (s =" , s , ")..." ) if s == "toyReg" : toread = os . path . join ( "data" , s , "info.dat" ) if skipread : with open ( toread , mode = "br" ) as f : dinfo = pickle . load ( f ) return dinfo else : return toyReg ( ) if s == "toyClass" : toread = os . path . join ( "data" , s , "info.dat" ) if skipread : with open ( toread , mode = "br" ) as f : dinfo = pickle . load ( f ) return dinfo else : return toyClass ( ) if s == "MNIST" : toread = os . path . join ( "data" , s , "info.dat" ) if skipread : with open ( toread , mode = "br" ) as f : dinfo = pickle . load ( f ) return dinfo else : return MNIST ( ) if s == "quantum" : toread = os . path . join ( "data" , s , "info.dat" ) if skipread : with open ( toread , mode = "br" ) as f : dinfo = pickle . load ( f ) return dinfo else : return quantum ( ) if s == "NoisyOpt_isoBig" : toread = os . path . join ( "data" , s , "info.dat" ) if skipread : with open ( toread , mode = "br" ) as f : dinfo = pickle . load ( f ) return dinfo else : return NoisyOpt_isoBig ( ) if s == "NoisyOpt_isoSmall" : toread = os . path . join ( "data" , s , "info.dat" ) if skipread : with open ( toread , mode = "br" ) as f : dinfo = pickle . load ( f ) return dinfo else : return NoisyOpt_isoSmall ( )
Takes a string with data set name, and runs the proper setup.
Takes a string with data set name and runs the proper setup .
'''
    Takes a string with data set name, and runs the proper setup.
    '''
s
skipread