fix benchmark_tree.py (#4593)

This commit is contained in:
Rong Ou 2019-06-20 16:51:48 -07:00 committed by Rory Mitchell
parent 9494950ee7
commit 77fc28427d

View File

@ -22,7 +22,7 @@ def run_benchmark(args):
if not (dtest.num_row() == args.rows * args.test_size if not (dtest.num_row() == args.rows * args.test_size
and dtrain.num_row() == args.rows * (1 - args.test_size)): and dtrain.num_row() == args.rows * (1 - args.test_size)):
raise ValueError("Wrong rows") raise ValueError("Wrong rows")
except ValueError: except:
print("Generating dataset: {} rows * {} columns".format(args.rows, args.columns)) print("Generating dataset: {} rows * {} columns".format(args.rows, args.columns))
print("{}/{} test/train split".format(args.test_size, 1.0 - args.test_size)) print("{}/{} test/train split".format(args.test_size, 1.0 - args.test_size))
tmp = time.time() tmp = time.time()