www.flow.packs.test-small.gbm_junit_weights.flow Maven / Gradle / Ivy
The newest version!
{
"version": "1.0.0",
"cells": [
{
"type": "cs",
"input": "importFiles [ \"../smalldata/junit/weights.csv\" ]"
},
{
"type": "cs",
"input": "setupParse paths: [ \"../smalldata/junit/weights.csv\" ]"
},
{
"type": "cs",
"input": "parseFiles\n paths: [\"../smalldata/junit/weights.csv\"]\n destination_frame: \"weights.hex\"\n parse_type: \"CSV\"\n separator: 44\n number_columns: 6\n single_quotes: false\n column_names: [\"f1\",\"f2\",\"f3\",\"f4\",\"weight\",\"response\"]\n column_types: [\"Numeric\",\"Numeric\",\"Numeric\",\"Numeric\",\"Numeric\",\"Enum\"]\n delete_on_done: true\n check_header: 1\n chunk_size: 4194304"
},
{
"type": "cs",
"input": "getFrameSummary \"weights.hex\""
},
{
"type": "cs",
"input": "assist splitFrame, \"weights.hex\""
},
{
"type": "cs",
"input": "splitFrame \"weights.hex\", [0.2], [\"weights_test\",\"weights_train\"], 123456"
},
{
"type": "cs",
"input": "buildModel \"gbm\""
},
{
"type": "cs",
"input": "buildModel 'gbm', {\"model_id\":\"gbm-faa007ff-269e-439a-96d5-2ca2bc6cdc79\",\"training_frame\":\"weights_train\",\"validation_frame\":\"weights_test\",\"ignore_const_cols\":true,\"response_column\":\"f1\",\"ntrees\":\"20\",\"max_depth\":5,\"min_rows\":\"2\",\"nbins\":20,\"nbins_cats\":1024,\"seed\":-5118202666345736000,\"learn_rate\":\"0.3\",\"distribution\":\"AUTO\",\"score_each_iteration\":false,\"r2_stopping\":0.999999,\"build_tree_one_node\":false}"
},
{
"type": "cs",
"input": "getModel \"gbm-faa007ff-269e-439a-96d5-2ca2bc6cdc79\""
},
{
"type": "cs",
"input": "predict model: \"gbm-faa007ff-269e-439a-96d5-2ca2bc6cdc79\""
},
{
"type": "cs",
"input": "predict model: \"gbm-faa007ff-269e-439a-96d5-2ca2bc6cdc79\", frame: \"weights_test\", predictions_frame: \"prediction-030ec4be-a938-42cc-83a3-eaa89384b905\""
}
]
}