www.flow.packs.test-small.gbm_poisson_Goalies.flow Maven / Gradle / Ivy
The newest version!
{
"version": "1.0.0",
"cells": [
{
"type": "cs",
"input": "importFiles"
},
{
"type": "cs",
"input": "importFiles [ \"../smalldata/poisson/Goalies.csv\" ]"
},
{
"type": "cs",
"input": "setupParse paths: [ \"../smalldata/poisson/Goalies.csv\" ]"
},
{
"type": "cs",
"input": "parseFiles\n paths: [\"../smalldata/poisson/Goalies.csv\"]\n destination_frame: \"Goalies.hex\"\n parse_type: \"CSV\"\n separator: 44\n number_columns: 23\n single_quotes: false\n column_names: [\"playerID\",\"year\",\"stint\",\"tmID\",\"lgID\",\"GP\",\"Min\",\"W\",\"L\",\"T/OL\",\"ENG\",\"SHO\",\"GA\",\"SA\",\"PostGP\",\"PostMin\",\"PostW\",\"PostL\",\"PostT\",\"PostENG\",\"PostSHO\",\"PostGA\",\"PostSA\"]\n column_types: [\"Enum\",\"Numeric\",\"Numeric\",\"Enum\",\"Enum\",\"Numeric\",\"Numeric\",\"Numeric\",\"Numeric\",\"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 \"Goalies.hex\""
},
{
"type": "cs",
"input": "assist splitFrame, \"Goalies.hex\""
},
{
"type": "cs",
"input": "splitFrame \"Goalies.hex\", [0.25], [\"Goalies_test\",\"Goalies_train\"], 123456"
},
{
"type": "cs",
"input": "buildModel \"gbm\""
},
{
"type": "cs",
"input": "buildModel 'gbm', {\"model_id\":\"gbm-c6f4613d-5ff0-4c26-9abd-081f4c89c8dc\",\"training_frame\":\"Goalies_train\",\"validation_frame\":\"Goalies_test\",\"ignore_const_cols\":true,\"response_column\":\"playerID\",\"ntrees\":\"20\",\"max_depth\":5,\"min_rows\":\"25\",\"nbins\":20,\"nbins_cats\":1024,\"seed\":9093144998677336000,\"learn_rate\":\"0.3\",\"distribution\":\"AUTO\",\"score_each_iteration\":false,\"balance_classes\":false,\"max_confusion_matrix_size\":20,\"r2_stopping\":0.999999,\"build_tree_one_node\":false}"
},
{
"type": "cs",
"input": "getModel \"gbm-c6f4613d-5ff0-4c26-9abd-081f4c89c8dc\""
},
{
"type": "cs",
"input": "predict model: \"gbm-c6f4613d-5ff0-4c26-9abd-081f4c89c8dc\""
},
{
"type": "cs",
"input": "predict model: \"gbm-c6f4613d-5ff0-4c26-9abd-081f4c89c8dc\", frame: \"Goalies_test\", predictions_frame: \"prediction-c959e2f6-24cd-41ac-812a-defe215f7b63\""
}
]
}