All Downloads are FREE. Search and download functionalities are using the official Maven repository.

www.flow.packs.test-small.glm_testng_insurance_validation1.flow Maven / Gradle / Ivy

{
  "version": "1.0.0",
  "cells": [
  
    {
      "type": "cs",
      "input": "importFiles"
    },
    {
      "type": "cs",
      "input": "importFiles [ \"../smalldata/testng/insurance_validation1.csv\" ]"
    },
    {
      "type": "cs",
      "input": "setupParse paths: [ \"../smalldata/testng/insurance_validation1.csv\" ]"
    },
    {
      "type": "cs",
      "input": "parseFiles\n  paths: [\"../smalldata/testng/insurance_validation1.csv\"]\n  destination_frame: \"insurance_validation1.hex\"\n  parse_type: \"CSV\"\n  separator: 44\n  number_columns: 5\n  single_quotes: false\n  column_names: [\"District\",\"Group\",\"Age\",\"Holders\",\"Claims\"]\n  column_types: [\"Numeric\",\"Enum\",\"Enum\",\"Numeric\",\"Numeric\"]\n  delete_on_done: true\n  check_header: 1\n  chunk_size: 4194304"
    },
    {
      "type": "cs",
      "input": "getFrameSummary \"insurance_validation1.hex\""
    },
    {
      "type": "cs",
      "input": "assist splitFrame, \"insurance_validation1.hex\""
    },
    {
      "type": "cs",
      "input": "splitFrame \"insurance_validation1.hex\", [0.2], [\"insurance_validation1_test\",\"insurance_validation1_train\"], 123456"
    },
    {
      "type": "cs",
      "input": "buildModel \"glm\""
    },
    {
      "type": "cs",
      "input": "buildModel 'glm', {\"model_id\":\"glm-966a1dbf-f27b-406a-bc56-70ea2f93a667\",\"training_frame\":\"insurance_validation1_train\",\"validation_frame\":\"insurance_validation1_test\",\"ignore_const_cols\":true,\"response_column\":\"District\",\"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-966a1dbf-f27b-406a-bc56-70ea2f93a667\""
    },
    {
      "type": "cs",
      "input": "predict model: \"glm-966a1dbf-f27b-406a-bc56-70ea2f93a667\""
    },
    {
      "type": "cs",
      "input": "predict model: \"glm-966a1dbf-f27b-406a-bc56-70ea2f93a667\", frame: \"insurance_validation1_test\", predictions_frame: \"prediction-b5ce2aa6-0e92-4fa0-8d6c-c19328c71f15\""
    }
  ]
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy