www.flow.packs.test-small.gbm_junit_40k_categoricals.flow Maven / Gradle / Ivy
The newest version!
{
"version": "1.0.0",
"cells": [
{
"type": "cs",
"input": "importFiles [ \"../smalldata/junit/40k_categoricals.csv.gz\" ]"
},
{
"type": "cs",
"input": "setupParse paths: [ \"../smalldata/junit/40k_categoricals.csv.gz\" ]"
},
{
"type": "cs",
"input": "parseFiles\n paths: [\"../smalldata/junit/40k_categoricals.csv.gz\"]\n destination_frame: \"X40k_categoricals.hex\"\n parse_type: \"CSV\"\n separator: 44\n number_columns: 4\n single_quotes: false\n column_types: [\"String\",\"Numeric\",\"Enum\",\"Numeric\"]\n delete_on_done: true\n check_header: -1\n chunk_size: 65536"
},
{
"type": "cs",
"input": "getFrameSummary \"X40k_categoricals.hex\""
},
{
"type": "cs",
"input": "assist splitFrame, \"X40k_categoricals.hex\""
},
{
"type": "cs",
"input": "splitFrame \"X40k_categoricals.hex\", [0.3], [\"X40k_categoricals_test.hex_0.30\",\"X40k_categoricals_train.hex_0.70\"], 123456"
},
{
"type": "cs",
"input": "buildModel \"gbm\""
},
{
"type": "cs",
"input": "buildModel 'gbm', {\"model_id\":\"gbm-da5de88f-e62e-48cd-aa45-721b5b94c0ed\",\"training_frame\":\"X40k_categoricals_train.hex_0.70\",\"validation_frame\":\"X40k_categoricals_test.hex_0.30\",\"ignored_columns\":[],\"ignore_const_cols\":true,\"response_column\":\"C2\",\"ntrees\":50,\"max_depth\":5,\"min_rows\":10,\"nbins\":20,\"nbins_cats\":1024,\"seed\":-3429613000948692000,\"learn_rate\":0.1,\"distribution\":\"AUTO\",\"score_each_iteration\":false,\"r2_stopping\":0.999999,\"build_tree_one_node\":false}"
},
{
"type": "cs",
"input": "getModel \"gbm-da5de88f-e62e-48cd-aa45-721b5b94c0ed\""
},
{
"type": "cs",
"input": "predict model: \"gbm-da5de88f-e62e-48cd-aa45-721b5b94c0ed\""
},
{
"type": "cs",
"input": "predict model: \"gbm-da5de88f-e62e-48cd-aa45-721b5b94c0ed\", frame: \"X40k_categoricals_test.hex_0.30\", predictions_frame: \"prediction-73f19e77-9cf5-4976-b24f-68cedd8b7ecd\""
}
]
}