www.flow.packs.test-small.drf_junit_cars.flow Maven / Gradle / Ivy
The newest version!
{
"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: \"cars3.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 \"cars3.hex\""
},
{
"type": "cs",
"input": "assist splitFrame, \"cars3.hex\""
},
{
"type": "cs",
"input": "splitFrame \"cars3.hex\", [0.3], [\"cars_test.hex_0.30\",\"cars_train.hex_0.70\"], 123456"
},
{
"type": "cs",
"input": "buildModel \"drf\""
},
{
"type": "cs",
"input": "buildModel 'drf', {\"model_id\":\"drf-b73915a3-86d3-492c-a5a5-4d3ed777ed8a\",\"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\":20,\"min_rows\":1,\"nbins\":20,\"nbins_cats\":1024,\"seed\":-2751562617618819600,\"mtries\":-1,\"sample_rate\":0.632,\"score_each_iteration\":false,\"r2_stopping\":0.999999,\"build_tree_one_node\":false,\"binomial_double_trees\":true}"
},
{
"type": "cs",
"input": "getModel \"drf-b73915a3-86d3-492c-a5a5-4d3ed777ed8a\""
},
{
"type": "cs",
"input": "predict model: \"drf-b73915a3-86d3-492c-a5a5-4d3ed777ed8a\""
},
{
"type": "cs",
"input": "predict model: \"drf-b73915a3-86d3-492c-a5a5-4d3ed777ed8a\", frame: \"cars_test.hex_0.30\", predictions_frame: \"prediction-df050fc3-480a-421a-b785-0d3c78dbc32a\""
}
]
}