Example #1
0
    def test_tree_view(self):
        parseResult = h2i.import_parse(
            bucket="smalldata", path="poker/poker1000", hex_key="poker1000.hex", schema="put"
        )
        h2o_cmd.runRF(parseResult=parseResult, trees=50, model_key="model0", timeoutSecs=10)

        for n in range(1):
            a = h2o_cmd.runRFTreeView(n=n, data_key="poker1000.hex", model_key="model0", timeoutSecs=10)
            print(h2o.dump_json(a))
    def test_tree_view_wrong_model(self):
        csvPathname = 'poker/poker1000'
        hex_key = csvPathname + ".hex"
        # tree view failed with poker1000, passed with iris
        parseResult = h2i.import_parse(bucket='smalldata', path=csvPathname, schema='put', hex_key=hex_key, timeoutSecs=10)
        h2o_cmd.runRF(parseResult=parseResult, trees=1, model_key="model0", timeoutSecs=10)

        for n in range(1):
            # Give it the wrong model_key name. This caused a stack track
            a = h2o_cmd.runRFTreeView(n=n, 
                data_key=hex_key, model_key="wrong_model_name", timeoutSecs=10, ignoreH2oError=True)
Example #3
0
    def test_tree_view_wrong_model(self):
        csvFilename = "poker1000"
        csvPathname = h2o.find_file("smalldata/poker/" + csvFilename)
        # tree view failed with poker1000, passed with iris
        h2o_cmd.runRF(trees=1, csvPathname=csvPathname, key=csvFilename, model_key="model0", timeoutSecs=10)

        for n in range(1):
            # Give it the wrong model_key name. This caused a stack track
            a = h2o_cmd.runRFTreeView(
                n=n, data_key=csvFilename + ".hex", model_key="wrong_model_name", timeoutSecs=10, ignoreH2oError=True
            )
Example #4
0
    def test_tree_view(self):
        csvFilename = "poker1000"
        csvPathname = h2o.find_file('smalldata/poker/' + csvFilename)
        # tree view failed with poker1000, passed with iris
        h2o_cmd.runRF(trees=50, csvPathname=csvPathname, key=csvFilename, 
            model_key="model0", timeoutSecs=10)

        for n in range(1):
            # the default model_key  is "model". 
            #and we know the data_key from parseFile will be poker1000.hex
            a = h2o_cmd.runRFTreeView(n=n, 
                data_key=csvFilename + ".hex", model_key="model0", timeoutSecs=10)
            print (h2o.dump_json(a))
Example #5
0
    def test_tree_view(self):
        csvFilename = "poker1000"
        csvPathname = h2o.find_file('smalldata/poker/' + csvFilename)
        # tree view failed with poker1000, passed with iris
        h2o_cmd.runRF(trees=50, csvPathname=csvPathname, key=csvFilename, 
            model_key="model0", timeoutSecs=10)

        for n in range(1):
            # the default model_key  is "model". 
            #and we know the data_key from parseFile will be poker1000.hex
            a = h2o_cmd.runRFTreeView(n=n, 
                data_key=csvFilename + ".hex", model_key="model0", timeoutSecs=10)
            print (h2o.dump_json(a))
Example #6
0
    def test_tree_view(self):
        parseResult = h2i.import_parse(bucket='smalldata',
                                       path='poker/poker1000',
                                       hex_key='poker1000.hex',
                                       schema='put')
        h2o_cmd.runRF(parseResult=parseResult,
                      trees=50,
                      model_key="model0",
                      timeoutSecs=10)

        for n in range(1):
            a = h2o_cmd.runRFTreeView(n=n,
                                      data_key='poker1000.hex',
                                      model_key="model0",
                                      timeoutSecs=10)
            print(h2o.dump_json(a))
Example #7
0
    def test_tree_view_wrong_model(self):
        csvFilename = "poker1000"
        csvPathname = h2o.find_file('smalldata/poker/' + csvFilename)
        # tree view failed with poker1000, passed with iris
        h2o_cmd.runRF(trees=1,
                      csvPathname=csvPathname,
                      key=csvFilename,
                      model_key="model0",
                      timeoutSecs=10)

        for n in range(1):
            # Give it the wrong model_key name. This caused a stack track
            a = h2o_cmd.runRFTreeView(n=n,
                                      data_key=csvFilename + ".hex",
                                      model_key="wrong_model_name",
                                      timeoutSecs=10,
                                      ignoreH2oError=True)
    def test_tree_view_wrong_model(self):
        csvPathname = 'poker/poker1000'
        hex_key = csvPathname + ".hex"
        # tree view failed with poker1000, passed with iris
        parseResult = h2i.import_parse(bucket='smalldata',
                                       path=csvPathname,
                                       schema='put',
                                       hex_key=hex_key,
                                       timeoutSecs=10)
        h2o_cmd.runRF(parseResult=parseResult,
                      trees=1,
                      model_key="model0",
                      timeoutSecs=10)

        for n in range(1):
            # Give it the wrong model_key name. This caused a stack track
            a = h2o_cmd.runRFTreeView(n=n,
                                      data_key=hex_key,
                                      model_key="wrong_model_name",
                                      timeoutSecs=10,
                                      ignoreH2oError=True)