
www.flow.packs.test-small.glm_iris2.flow Maven / Gradle / Ivy
{
"version": "1.0.0",
"cells": [
{
"type": "cs",
"input": "importFiles [ \"../smalldata/iris/iris2.csv\" ]"
},
{
"type": "cs",
"input": "setupParse paths: [ \"../smalldata/iris/iris2.csv\" ]"
},
{
"type": "cs",
"input": "parseFiles\n paths: [\"../smalldata/iris/iris2.csv\"]\n destination_frame: \"iris2.hex\"\n parse_type: \"CSV\"\n separator: 44\n number_columns: 5\n single_quotes: false\n column_names: [\"Sepal.Length\",\"Sepal.Width\",\"Petal.Length\",\"Petal.Width\",\"response\"]\n column_types: [\"Numeric\",\"Numeric\",\"Numeric\",\"Numeric\",\"Enum\"]\n delete_on_done: true\n check_header: 1\n chunk_size: 4194304"
},
{
"type": "cs",
"input": "getFrameSummary \"iris2.hex\""
},
{
"type": "cs",
"input": "assist splitFrame, \"iris2.hex\""
},
{
"type": "cs",
"input": "splitFrame \"iris2.hex\", [0.25], [\"frame_test\",\"iris2_train\"], 123456"
},
{
"type": "cs",
"input": "buildModel \"glm\""
},
{
"type": "cs",
"input": "buildModel 'glm', {\"model_id\":\"glm-16a50ed7-8882-4341-aadb-ebdeb3a1aefe\",\"training_frame\":\"iris2_train\",\"validation_frame\":\"frame_test\",\"ignore_const_cols\":true,\"response_column\":\"Sepal.Length\",\"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-16a50ed7-8882-4341-aadb-ebdeb3a1aefe\""
},
{
"type": "cs",
"input": "inspect getModel \"glm-16a50ed7-8882-4341-aadb-ebdeb3a1aefe\""
},
{
"type": "cs",
"input": "inspect \"output - Coefficients\", getModel \"glm-16a50ed7-8882-4341-aadb-ebdeb3a1aefe\""
},
{
"type": "cs",
"input": "predict model: \"glm-16a50ed7-8882-4341-aadb-ebdeb3a1aefe\""
}
]
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy