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

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

{
  "version": "1.0.0",
  "cells": [
   
    {
      "type": "cs",
      "input": "importFiles"
    },
    {
      "type": "cs",
      "input": "importFiles [ \"../smalldata/synthetic_perfect_separation/unbalanced.csv\" ]"
    },
    {
      "type": "cs",
      "input": "setupParse paths: [ \"../smalldata/synthetic_perfect_separation/unbalanced.csv\" ]"
    },
    {
      "type": "cs",
      "input": "parseFiles\n  paths: [\"../smalldata/synthetic_perfect_separation/unbalanced.csv\"]\n  destination_frame: \"unbalanced1.hex\"\n  parse_type: \"CSV\"\n  separator: 44\n  number_columns: 3\n  single_quotes: false\n  column_names: [\"y\",\"x1\",\"x2\"]\n  column_types: [\"Numeric\",\"Numeric\",\"Numeric\"]\n  delete_on_done: true\n  check_header: 1\n  chunk_size: 4194304"
    },
    {
      "type": "cs",
      "input": "getFrameSummary \"unbalanced1.hex\""
    },
    {
      "type": "cs",
      "input": "assist splitFrame, \"unbalanced1.hex\""
    },
    {
      "type": "cs",
      "input": "splitFrame \"unbalanced1.hex\", [0.2], [\"unbalanced1_test\",\"unbalanced1_train\"], 123456"
    },
    {
      "type": "cs",
      "input": "buildModel \"glm\""
    },
    {
      "type": "cs",
      "input": "buildModel 'glm', {\"model_id\":\"glm-03d017b9-ecc0-4fad-b012-e8a51d78e617\",\"training_frame\":\"unbalanced1_train\",\"validation_frame\":\"unbalanced1.hex\",\"ignore_const_cols\":true,\"response_column\":\"y\",\"family\":\"binomial\",\"solver\":\"IRLSM\",\"alpha\":[0],\"lambda\":[1e-8],\"lambda_search\":false,\"standardize\":true,\"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-03d017b9-ecc0-4fad-b012-e8a51d78e617\""
    },
    {
      "type": "cs",
      "input": "predict model: \"glm-03d017b9-ecc0-4fad-b012-e8a51d78e617\""
    },
    {
      "type": "cs",
      "input": "predict model: \"glm-03d017b9-ecc0-4fad-b012-e8a51d78e617\", frame: \"unbalanced1_test\", predictions_frame: \"prediction-bd62ff14-aba2-4e0c-b9da-5ac136c38128\""
    }
  ]
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy