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_glm_test_auto.flow Maven / Gradle / Ivy
{
"version": "1.0.0",
"cells": [
{
"type": "cs",
"input": "importFiles [ \"../smalldata/glm_test/auto.csv\" ]"
},
{
"type": "cs",
"input": "setupParse paths: [ \"../smalldata/glm_test/auto.csv\" ]"
},
{
"type": "cs",
"input": "parseFiles\n paths: [\"../smalldata/glm_test/auto.csv\"]\n destination_frame: \"auto.hex\"\n parse_type: \"CSV\"\n separator: 44\n number_columns: 57\n single_quotes: false\n column_names: [\"y\",\"x.CAR_TYPE_2\",\"x.CAR_TYPE_3\",\"x.CAR_TYPE_4\",\"x.CAR_TYPE_5\",\"x.CAR_TYPE_6\",\"x.JOBCLASS_3\",\"x.JOBCLASS_4\",\"x.JOBCLASS_5\",\"x.JOBCLASS_6\",\"x.JOBCLASS_7\",\"x.JOBCLASS_8\",\"x.JOBCLASS_9\",\"x.MAX_EDUC_2\",\"x.MAX_EDUC_3\",\"x.MAX_EDUC_4\",\"x.MAX_EDUC_5\",\"x.KIDSDRIV\",\"x.KIDSDRIV2\",\"x.KIDSDRIV3\",\"x.TRAVTIME\",\"x.TRAVTIME2\",\"x.TRAVTIME3\",\"x.BLUEBOOK\",\"x.BLUEBOOK2\",\"x.BLUEBOOK3\",\"x.NPOLICY\",\"x.NPOLICY2\",\"x.NPOLICY3\",\"x.MVR_PTS\",\"x.MVR_PTS2\",\"x.MVR_PTS3\",\"x.AGE\",\"x.AGE2\",\"x.AGE3\",\"x.HOMEKIDS\",\"x.HOMEKIDS2\",\"x.HOMEKIDS3\",\"x.YOJ\",\"x.YOJ2\",\"x.YOJ3\",\"x.INCOME\",\"x.INCOME2\",\"x.INCOME3\",\"x.HOME_VAL\",\"x.HOME_VAL2\",\"x.HOME_VAL3\",\"x.SAMEHOME\",\"x.SAMEHOME2\",\"x.SAMEHOME3\",\"x.CAR_USE\",\"x.RED_CAR\",\"x.REVOLKED\",\"x.GENDER\",\"x.MARRIED\",\"x.PARENT1\",\"x.AREA\"]\n column_types: [\"Numeric\",\"Numeric\",\"Numeric\",\"Numeric\",\"Numeric\",\"Numeric\",\"Numeric\",\"Numeric\",\"Numeric\",\"Numeric\",\"Numeric\",\"Numeric\",\"Numeric\",\"Numeric\",\"Numeric\",\"Numeric\",\"Numeric\",\"Numeric\",\"Numeric\",\"Numeric\",\"Numeric\",\"Numeric\",\"Numeric\",\"Numeric\",\"Numeric\",\"Numeric\",\"Numeric\",\"Numeric\",\"Numeric\",\"Numeric\",\"Numeric\",\"Numeric\",\"Numeric\",\"Numeric\",\"Numeric\",\"Numeric\",\"Numeric\",\"Numeric\",\"Numeric\",\"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: 65536"
},
{
"type": "cs",
"input": "getFrameSummary \"auto.hex\""
},
{
"type": "cs",
"input": "assist splitFrame, \"auto.hex\""
},
{
"type": "cs",
"input": "splitFrame \"auto.hex\", [0.2], [\"auto.hex_0.20\",\"auto.hex_0.80\"], 123456"
},
{
"type": "cs",
"input": "buildModel \"gbm\""
},
{
"type": "cs",
"input": "buildModel 'gbm', {\"model_id\":\"gbm-7f2fe317-be5e-4d63-99e6-0bb2df2163c6\",\"training_frame\":\"auto.hex_0.80\",\"validation_frame\":\"auto.hex_0.20\",\"ignore_const_cols\":true,\"response_column\":\"y\",\"ntrees\":\"20\",\"max_depth\":5,\"min_rows\":\"25\",\"nbins\":20,\"nbins_cats\":1024,\"seed\":7576527868683855000,\"learn_rate\":\"0.3\",\"distribution\":\"AUTO\",\"score_each_iteration\":false,\"r2_stopping\":0.999999,\"build_tree_one_node\":false}"
},
{
"type": "cs",
"input": "getModel \"gbm-7f2fe317-be5e-4d63-99e6-0bb2df2163c6\""
},
{
"type": "cs",
"input": "predict model: \"gbm-7f2fe317-be5e-4d63-99e6-0bb2df2163c6\""
},
{
"type": "cs",
"input": "predict model: \"gbm-7f2fe317-be5e-4d63-99e6-0bb2df2163c6\", frame: \"auto.hex_0.80\", predictions_frame: \"prediction-8870feab-42d8-475e-9878-bd47605199c2\""
}
]
}