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)
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)
def rf_model0(source, target): train = df2thing(source) test = df2thing(target) return rforest(train, test, tunings=None)
def rf_model0(source, target, name): train = df2thing(source) test = df2thing(target) return rforest(train, test, tunings=getTunings(name))
def rf_model0(source, target): train = df2thing(source) test = df2thing(target) return rforest(train, test, tunings=None)
def rf_model0(source, target): train = df2thing(source) test = df2thing(target) return rforest(train, test, smote=False)
def rf_model0(source, target): train = df2thing(source) test = df2thing(target) return rforest(train, test, smote=False)