www.flow.packs.test-small.drf_junit_benign.flow Maven / Gradle / Ivy
The newest version!
{
"version": "1.0.0",
"cells": [
{
"type": "cs",
"input": "importFiles [ \"../smalldata/junit/benign.xls\" ]"
},
{
"type": "cs",
"input": "setupParse paths: [ \"../smalldata/junit/benign.xls\" ]"
},
{
"type": "cs",
"input": "parseFiles\n paths: [\"../smalldata/junit/benign.xls\"]\n destination_frame: \"benign2.hex\"\n parse_type: \"XLS\"\n separator: -1\n number_columns: 14\n single_quotes: false\n column_names: [\"STR\",\"OBS\",\"AGMT\",\"FNDX\",\"HIGD\",\"DEG\",\"CHK\",\"AGP1\",\"AGMN\",\"NLV\",\"LIV\",\"WT\",\"AGLP\",\"MST\"]\n column_types: [\"Numeric\",\"Numeric\",\"Numeric\",\"Numeric\",\"Numeric\",\"Numeric\",\"Numeric\",\"Numeric\",\"Numeric\",\"Numeric\",\"Numeric\",\"Numeric\",\"Numeric\",\"Numeric\"]\n delete_on_done: true\n check_header: 1\n chunk_size: 4194304"
},
{
"type": "cs",
"input": "getFrameSummary \"benign2.hex\""
},
{
"type": "cs",
"input": "assist splitFrame, \"benign2.hex\""
},
{
"type": "cs",
"input": "splitFrame \"benign2.hex\", [0.2], [\"benign_test.hex_0.20\",\"benign_train.hex_0.80\"], 123456"
},
{
"type": "cs",
"input": "buildModel \"drf\""
},
{
"type": "cs",
"input": "buildModel 'drf', {\"model_id\":\"drf-abf6fb2c-8753-4606-87ec-1797bf5dbf4c\",\"training_frame\":\"benign_train.hex_0.80\",\"validation_frame\":\"benign_test.hex_0.20\",\"ignored_columns\":[],\"ignore_const_cols\":true,\"response_column\":\"MST\",\"ntrees\":50,\"max_depth\":20,\"min_rows\":1,\"nbins\":20,\"nbins_cats\":1024,\"seed\":5089289942073955000,\"mtries\":-1,\"sample_rate\":0.632,\"score_each_iteration\":false,\"r2_stopping\":0.999999,\"build_tree_one_node\":false,\"binomial_double_trees\":true}"
},
{
"type": "cs",
"input": "getModel \"drf-abf6fb2c-8753-4606-87ec-1797bf5dbf4c\""
},
{
"type": "cs",
"input": "predict model: \"drf-abf6fb2c-8753-4606-87ec-1797bf5dbf4c\""
},
{
"type": "cs",
"input": "predict model: \"drf-abf6fb2c-8753-4606-87ec-1797bf5dbf4c\", frame: \"benign_test.hex_0.20\", predictions_frame: \"prediction-2e62ff9a-2559-4e16-af09-e7d9e938119b\""
}
]
}