Skip to content

Commit

Permalink
try different settings for importance
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Normoyle committed Mar 6, 2015
1 parent 2cd071e commit cfbcf34
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions py/testdir_multi_jvm/test_GBM_covtype_train_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def tearDown(self):

@classmethod
def setUpClass(cls):
h2o.init(3, java_heap_GB=28)
h2o.init(1, java_heap_GB=14)

@classmethod
def tearDownClass(cls):
Expand Down Expand Up @@ -51,8 +51,14 @@ def test_GBM_covtype_train_test(self):
# GBM (train iterate)****************************************
inspect = h2o_cmd.runInspect(key=parseTestResult['destination_key'])
ntrees = 2
# fails with 40
for max_depth in [40, 5]:
# fails with 40 in the past
for trial in range(9):
imp = trial % 2
# None means use h2o default
if imp == 2:
imp = None

max_depth = 10
params = {
'learn_rate': .2,
'nbins': 1024,
Expand All @@ -61,6 +67,8 @@ def test_GBM_covtype_train_test(self):
'min_rows': 10,
'response': response,
'ignored_cols_by_name': None,
'importance': imp, # h2o defaults to 1 now?
'classification': 1,
}
print "Using these parameters for GBM: ", params
kwargs = params.copy()
Expand Down Expand Up @@ -115,11 +123,11 @@ def test_GBM_covtype_train_test(self):
print h2o_gbm.pp_cm(cm)

# xList.append(ntrees)
xList.append(max_depth)
xList.append(trial)
eList.append(pctWrong)
fList.append(trainElapsed)

xLabel = 'max_depth'
xLabel = 'trial'
eLabel = 'pctWrong'
fLabel = 'trainElapsed'
eListTitle = ""
Expand Down

0 comments on commit cfbcf34

Please sign in to comment.