
www.flow.packs.test-small.gbm_prostate_prostate.flow Maven / Gradle / Ivy
{
"version": "1.0.0",
"cells": [
{
"type": "cs",
"input": "importFiles"
},
{
"type": "cs",
"input": "importFiles [ \"../smalldata/prostate/prostate.csv\" ]"
},
{
"type": "cs",
"input": "setupParse paths: [ \"../smalldata/prostate/prostate.csv\" ]"
},
{
"type": "cs",
"input": "parseFiles\n paths: [\"../smalldata/prostate/prostate.csv\"]\n destination_frame: \"prostate.hex\"\n parse_type: \"CSV\"\n separator: 44\n number_columns: 9\n single_quotes: false\n column_names: [\"ID\",\"CAPSULE\",\"AGE\",\"RACE\",\"DPROS\",\"DCAPS\",\"PSA\",\"VOL\",\"GLEASON\"]\n column_types: [\"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 \"prostate.hex\""
},
{
"type": "cs",
"input": "assist splitFrame, \"prostate.hex\""
},
{
"type": "cs",
"input": "splitFrame \"prostate.hex\", [0.25], [\"prostate_test\",\"prostate_train\"], 123456"
},
{
"type": "cs",
"input": "buildModel \"gbm\""
},
{
"type": "cs",
"input": "buildModel 'gbm', {\"model_id\":\"gbm-a7c3b7ed-3ac1-4a05-bb0e-9bc177bbe1fc\",\"training_frame\":\"prostate_train\",\"validation_frame\":\"prostate_test\",\"ignore_const_cols\":true,\"response_column\":\"ID\",\"ntrees\":\"20\",\"max_depth\":5,\"min_rows\":\"25\",\"nbins\":20,\"nbins_cats\":1024,\"seed\":-7325157675992603000,\"learn_rate\":\"0.3\",\"distribution\":\"AUTO\",\"score_each_iteration\":false,\"r2_stopping\":0.999999,\"build_tree_one_node\":false}"
},
{
"type": "cs",
"input": "getModel \"gbm-a7c3b7ed-3ac1-4a05-bb0e-9bc177bbe1fc\""
},
{
"type": "cs",
"input": "predict model: \"gbm-a7c3b7ed-3ac1-4a05-bb0e-9bc177bbe1fc\""
},
{
"type": "cs",
"input": "predict model: \"gbm-a7c3b7ed-3ac1-4a05-bb0e-9bc177bbe1fc\", frame: \"prostate_test\", predictions_frame: \"prediction-adf6b8b2-fad2-4a1e-8e01-d522ac5e78a6\""
}
]
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy