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

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

There is a newer version: 3.8.2.9
Show 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.25], [\"two_spiral_test\",\"two_spiral_train\"], 123456"
    },
    {
      "type": "cs",
      "input": "buildModel \"gbm\""
    },
    {
      "type": "cs",
      "input": "buildModel 'gbm', {\"model_id\":\"gbm-67f1653f-12b6-4209-9642-2e88cac7d63a\",\"training_frame\":\"two_spiral_train\",\"validation_frame\":\"two_spiral_test\",\"ignore_const_cols\":true,\"response_column\":\"X\",\"ntrees\":\"20\",\"max_depth\":\"5\",\"min_rows\":\"25\",\"nbins\":20,\"nbins_cats\":1024,\"seed\":2742111509754107000,\"learn_rate\":\"0.3\",\"distribution\":\"AUTO\",\"score_each_iteration\":false,\"r2_stopping\":0.999999,\"build_tree_one_node\":false}"
    },
    {
      "type": "cs",
      "input": "getModel \"gbm-67f1653f-12b6-4209-9642-2e88cac7d63a\""
    },
    {
      "type": "cs",
      "input": "predict model: \"gbm-67f1653f-12b6-4209-9642-2e88cac7d63a\""
    },
    {
      "type": "cs",
      "input": "predict model: \"gbm-67f1653f-12b6-4209-9642-2e88cac7d63a\", frame: \"two_spiral_test\", predictions_frame: \"prediction-2b6b71bb-b210-4412-9441-687cca3455b7\""
    }
  ]
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy