www.flow.packs.test-small.gbm_glm_test_adult.flow Maven / Gradle / Ivy
The newest version!
{
"version": "1.0.0",
"cells": [
{
"type": "cs",
"input": "importFiles [ \"../smalldata/glm_test/adult.gz\" ]"
},
{
"type": "cs",
"input": "setupParse paths: [ \"../smalldata/glm_test/adult.gz\" ]"
},
{
"type": "cs",
"input": "parseFiles\n paths: [\"../smalldata/glm_test/adult.gz\"]\n destination_frame: \"adult.hex\"\n parse_type: \"CSV\"\n separator: 32\n number_columns: 15\n single_quotes: false\n column_types: [\"Numeric\",\"Enum\",\"Numeric\",\"Enum\",\"Numeric\",\"Enum\",\"Enum\",\"Enum\",\"Enum\",\"Enum\",\"Numeric\",\"Numeric\",\"Numeric\",\"Enum\",\"Enum\"]\n delete_on_done: true\n check_header: -1\n chunk_size: 262144"
},
{
"type": "cs",
"input": "getFrameSummary \"adult.hex\""
},
{
"type": "cs",
"input": "assist splitFrame, \"adult.hex\""
},
{
"type": "cs",
"input": "splitFrame \"adult.hex\", [0.2], [\"adult.hex_0.20\",\"adult.hex_0.80\"], 123456"
},
{
"type": "cs",
"input": "buildModel \"gbm\""
},
{
"type": "cs",
"input": "buildModel 'gbm', {\"model_id\":\"gbm-a1c053eb-cbcb-4ebd-813b-552fda8f51b7\",\"training_frame\":\"adult.hex_0.80\",\"validation_frame\":\"adult.hex_0.20\",\"ignore_const_cols\":true,\"response_column\":\"C1\",\"ntrees\":\"20\",\"max_depth\":5,\"min_rows\":\"25\",\"nbins\":20,\"nbins_cats\":1024,\"seed\":-509379117078278000,\"learn_rate\":\"0.3\",\"distribution\":\"AUTO\",\"score_each_iteration\":false,\"r2_stopping\":0.999999,\"build_tree_one_node\":false}"
},
{
"type": "cs",
"input": "getModel \"gbm-a1c053eb-cbcb-4ebd-813b-552fda8f51b7\""
},
{
"type": "cs",
"input": "predict model: \"gbm-a1c053eb-cbcb-4ebd-813b-552fda8f51b7\""
},
{
"type": "cs",
"input": "predict model: \"gbm-a1c053eb-cbcb-4ebd-813b-552fda8f51b7\", frame: \"adult.hex_0.80\", predictions_frame: \"prediction-950825bb-820c-4a25-9e90-f9d4d5fa1f4a\""
}
]
}