File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed
Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change 55spark = SparkSession .builder .appName ("SparklingWaterApp" ).getOrCreate ()
66hc = H2OContext .getOrCreate ()
77
8- bucket = "h2o-bq-large-dataset"
9- train_path = "demos/cc_train.csv"
10- test_path = "demos/cc_test.csv"
11- y = "DEFAULT_PAYMENT_NEXT_MONTH"
8+ bucket = "h2o-bq-large-dataset-1"
9+ train_path = "demos/prostate.csv"
10+ y = "CAPSULE"
1211is_classification = True
1312
1413drop_cols = []
1716train_data = spark .read \
1817 .options (header = 'true' , inferSchema = 'true' )\
1918 .csv ("gs://{}/{}" .format (bucket , train_path ))
20- test_data = spark .read \
21- .options (header = 'true' , inferSchema = 'true' )\
22- .csv ("gs://{}/{}" .format (bucket , test_path ))
2319
2420print ("CREATING H2O FRAME" )
2521training_frame = hc .asH2OFrame (train_data )
26- test_frame = hc .asH2OFrame (test_data )
2722
2823x = training_frame .columns
2924x .remove (y )
You can’t perform that action at this time.
0 commit comments