Ejemplo n.º 1
0
def random_forest(input_dict):
    from workflows.helpers import UnpicklableObject
    output_dict = {}
    rfout = UnpicklableObject("orngEnsemble.RandomForestLearner(trees=" +
                              input_dict['n'] + ", name='RF" +
                              str(input_dict['n']) + " (Orange)')")
    rfout.addimport("import orngEnsemble")
    output_dict['rfout'] = rfout
    return output_dict
Ejemplo n.º 2
0
def harf(input_dict):
    #import orngRF_HARF
    from workflows.helpers import UnpicklableObject
    agrLevel = input_dict['agr_level']
    #data = input_dict['data']
    harfout = UnpicklableObject("orngRF_HARF.HARFLearner(agrLevel =" +
                                agrLevel + ", name='HARF-" + str(agrLevel) +
                                "')")
    harfout.addimport("import orngRF_HARF")
    #harfLearner = orngRF_HARF.HARFLearner(agrLevel = agrLevel, name = "_HARF-"+agrLevel+"_")
    output_dict = {}
    output_dict['harfout'] = harfout
    return output_dict