Example #1
0
def rf_model_old(source, target):
    def df2thing(dframe):
        dframe.to_csv('temp.csv', index=False)
        new_thing = createTbl(['temp.csv'], isBin=True)
        os.remove('temp.csv')
        return new_thing

    train = df2thing(source)
    test = df2thing(target)

    return rforest(train, test)
Example #2
0
def rf_model_old(source, target):
    def df2thing(dframe):
        dframe.to_csv('temp.csv', index=False)
        new_thing = createTbl(['temp.csv'], isBin=True)
        os.remove('temp.csv')
        return new_thing

    train = df2thing(source)
    test = df2thing(target)

    return rforest(train, test)
Example #3
0
def rf_model0(source, target):
    train = df2thing(source)
    test = df2thing(target)
    return rforest(train, test, tunings=None)
Example #4
0
def rf_model0(source, target, name):
    train = df2thing(source)
    test = df2thing(target)
    return rforest(train, test, tunings=getTunings(name))
Example #5
0
def rf_model0(source, target):
    train = df2thing(source)
    test = df2thing(target)
    return rforest(train, test, tunings=None)
Example #6
0
def rf_model0(source, target):
    train = df2thing(source)
    test = df2thing(target)
    return rforest(train, test, smote=False)
Example #7
0
def rf_model0(source, target):
    train = df2thing(source)
    test = df2thing(target)
    return rforest(train, test, smote=False)