Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
www.flow.packs.test-small.gbm_junit_cars.flow Maven / Gradle / Ivy
{
"version": "1.0.0",
"cells": [
{
"type": "cs",
"input": "importFiles [ \"../smalldata/junit/cars.csv\" ]"
},
{
"type": "cs",
"input": "setupParse paths: [ \"../smalldata/junit/cars.csv\" ]"
},
{
"type": "cs",
"input": "parseFiles\n paths: [\"../smalldata/junit/cars.csv\"]\n destination_frame: \"cars1.hex\"\n parse_type: \"CSV\"\n separator: 44\n number_columns: 8\n single_quotes: false\n column_names: [\"name\",\"economy (mpg)\",\"cylinders\",\"displacement (cc)\",\"power (hp)\",\"weight (lb)\",\"0-60 mph (s)\",\"year\"]\n column_types: [\"Enum\",\"Numeric\",\"Numeric\",\"Numeric\",\"Numeric\",\"Numeric\",\"Numeric\",\"Numeric\"]\n delete_on_done: true\n check_header: 1\n chunk_size: 4194304"
},
{
"type": "cs",
"input": "getFrameSummary \"cars1.hex\""
},
{
"type": "cs",
"input": "assist splitFrame, \"cars1.hex\""
},
{
"type": "cs",
"input": "splitFrame \"cars1.hex\", [0.3], [\"cars_test.hex_0.30\",\"cars_train.hex_0.70\"], 123456"
},
{
"type": "cs",
"input": "buildModel \"gbm\""
},
{
"type": "cs",
"input": "buildModel 'gbm', {\"model_id\":\"gbm-b2ccc742-9812-461a-9859-f05f998b010c\",\"training_frame\":\"cars_train.hex_0.70\",\"validation_frame\":\"cars_test.hex_0.30\",\"ignored_columns\":[],\"ignore_const_cols\":true,\"response_column\":\"economy (mpg)\",\"ntrees\":50,\"max_depth\":5,\"min_rows\":10,\"nbins\":20,\"nbins_cats\":1024,\"seed\":-4147985762995881000,\"learn_rate\":0.1,\"distribution\":\"AUTO\",\"score_each_iteration\":false,\"r2_stopping\":0.999999,\"build_tree_one_node\":false}"
},
{
"type": "cs",
"input": "getModel \"gbm-b2ccc742-9812-461a-9859-f05f998b010c\""
},
{
"type": "cs",
"input": "predict model: \"gbm-b2ccc742-9812-461a-9859-f05f998b010c\""
},
{
"type": "cs",
"input": "predict model: \"gbm-b2ccc742-9812-461a-9859-f05f998b010c\", frame: \"cars_test.hex_0.30\", predictions_frame: \"prediction-0cc9bac2-d420-4fdb-95da-9e720cfd18d2\""
}
]
}