www.flow.packs.test-small.glm_junit_two_spiral.flow Maven / Gradle / Ivy
The newest version!
{
"version": "1.0.0",
"cells": [
{
"type": "cs",
"input": "importFiles [ \"../smalldata/junit/two_spiral.csv\" ]"
},
{
"type": "cs",
"input": "setupParse paths: [ \"../smalldata/junit/two_spiral.csv\" ]"
},
{
"type": "cs",
"input": "parseFiles\n paths: [\"../smalldata/junit/two_spiral.csv\"]\n destination_frame: \"two_spiral.hex\"\n parse_type: \"CSV\"\n separator: 44\n number_columns: 3\n single_quotes: false\n column_names: [\"X\",\"Y\",\"Class\"]\n column_types: [\"Numeric\",\"Numeric\",\"Numeric\"]\n delete_on_done: true\n check_header: 1\n chunk_size: 4194304"
},
{
"type": "cs",
"input": "getFrameSummary \"two_spiral.hex\""
},
{
"type": "cs",
"input": "assist splitFrame, \"two_spiral.hex\""
},
{
"type": "cs",
"input": "splitFrame \"two_spiral.hex\", [0.2], [\"two_spiral_test\",\"two_spiral_train\"], 123456"
},
{
"type": "cs",
"input": "buildModel \"glm\""
},
{
"type": "cs",
"input": "buildModel 'glm', {\"model_id\":\"glm-8799c533-92e7-4949-a715-1a95455ac5b1\",\"training_frame\":\"two_spiral_train\",\"validation_frame\":\"two_spiral_test\",\"ignore_const_cols\":true,\"response_column\":\"X\",\"family\":\"gaussian\",\"solver\":\"IRLSM\",\"alpha\":[0.3],\"lambda\":[0.002],\"lambda_search\":false,\"standardize\":false,\"non_negative\":false,\"score_each_iteration\":false,\"max_iterations\":-1,\"link\":\"family_default\",\"intercept\":true,\"objective_epsilon\":0.00001,\"beta_epsilon\":0.0001,\"gradient_epsilon\":0.0001,\"prior\":-1,\"max_active_predictors\":-1}"
},
{
"type": "cs",
"input": "getModel \"glm-8799c533-92e7-4949-a715-1a95455ac5b1\""
},
{
"type": "cs",
"input": "predict model: \"glm-8799c533-92e7-4949-a715-1a95455ac5b1\""
},
{
"type": "cs",
"input": "predict model: \"glm-8799c533-92e7-4949-a715-1a95455ac5b1\", frame: \"two_spiral_test\", predictions_frame: \"prediction-c6ba157f-465b-4a44-8f99-0640ac6fab5d\""
}
]
}