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

www.flow.packs.test-small.glm_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: \"cars2.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 \"cars2.hex\""
    },
    {
      "type": "cs",
      "input": "assist splitFrame, \"cars2.hex\""
    },
    {
      "type": "cs",
      "input": "splitFrame \"cars2.hex\", [0.3], [\"cars_test.hex_0.30\",\"cars_train.hex_0.70\"], 123456"
    },
    {
      "type": "cs",
      "input": "buildModel \"glm\""
    },
    {
      "type": "cs",
      "input": "buildModel 'glm', {\"model_id\":\"glm-04058b0e-67e3-4ddd-bec6-9327a8cb43c4\",\"training_frame\":\"cars_train.hex_0.70\",\"validation_frame\":\"cars_test.hex_0.30\",\"ignored_columns\":[],\"ignore_const_cols\":true,\"response_column\":\"economy (mpg)\",\"family\":\"gaussian\",\"solver\":\"IRLSM\",\"alpha\":[],\"lambda\":[],\"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-04058b0e-67e3-4ddd-bec6-9327a8cb43c4\""
    },
    {
      "type": "cs",
      "input": "predict model: \"glm-04058b0e-67e3-4ddd-bec6-9327a8cb43c4\""
    },
    {
      "type": "cs",
      "input": "predict model: \"glm-04058b0e-67e3-4ddd-bec6-9327a8cb43c4\", frame: \"cars_test.hex_0.30\", predictions_frame: \"prediction-21f389e0-e078-4a9c-80f0-ee8a8baf49de\""
    }
  ]
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy