|
|
(15 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
− | == Predict sales using Meteos ==
| |
| | | |
− | In this example, user create a prediction model which predict sales by using Logistic Regression.
| |
− | Logistic Regression is one of the algorithms in supervised learning.
| |
− |
| |
− | ''Supervised learning is the machine learning task of inferring a function from labeled training data."
| |
− | "The training data consist of a set of training examples."
| |
− | "In supervised learning, each example is a pair consisting of an input object (typically a vector) and"
| |
− | "a desired output value (also called the supervisory signal)."
| |
− | From Wikipedia https://en.wikipedia.org/wiki/Supervised_learning''
| |
− |
| |
− | In this example, sales is the desired output value.
| |
− |
| |
− | === 1. Create Template of Experiment ===
| |
− |
| |
− | Create Template of Experiment.
| |
− | Experiment is a workspace of Machine Learning.
| |
− |
| |
− | '''$ cat json/create_template.json'''
| |
− | {
| |
− | "display_name": "example-template",
| |
− | "display_description": "This is a sample template of experiment",
| |
− | "image_id" : "c48f5dba-45be-4165-9825-f4564fecebcd",
| |
− | "master_nodes_num": 1,
| |
− | "worker_nodes_num": 2,
| |
− | "spark_version": "1.6"
| |
− | }
| |
− |
| |
− | '''$ meteos template-create --json json/create_template.json'''
| |
− |
| |
− | +-------------+-----------------------------------------+
| |
− | | Property | Value |
| |
− | +-------------+-----------------------------------------+
| |
− | | cluster_id | 0984a3e7-cd8b-4b7e-b4f0-f58dc4fc6c28 |
| |
− | | created_at | 2016-10-20T02:10:13.483231 |
| |
− | | description | This is a sample template of experiment |
| |
− | | id | 26cbc33b-179e-4d22-8b1b-23c9a305f196 |
| |
− | | image_id | c48f5dba-45be-4165-9825-f4564fecebcd |
| |
− | | name | example-template |
| |
− | | project_id | 5f011d076a6f4a328989c57ac7b4e501 |
| |
− | | status | available |
| |
− | +-------------+-----------------------------------------+
| |
− |
| |
− | === 2. Create Experiment from Template ===
| |
− |
| |
− | '''$ cat json/create_experiment.json'''
| |
− | {
| |
− | "display_name": "example-experiment",
| |
− | "display_description": "This is a sample experiment",
| |
− | "key_name": "key1",
| |
− | "net_id": "bc85cb2a-53ad-4375-801e-ed507d416e09",
| |
− | "template_id": "26cbc33b-179e-4d22-8b1b-23c9a305f196"
| |
− | }
| |
− |
| |
− | '''$ meteos experiment-create --json json/create_experiment.json'''
| |
− |
| |
− | +-------------+--------------------------------------+
| |
− | | Property | Value |
| |
− | +-------------+--------------------------------------+
| |
− | | created_at | 2016-10-20T02:11:51.778930 |
| |
− | | description | This is a sample experiment |
| |
− | | id | 0550a7db-b148-4319-bb35-16a9e4500d4a |
| |
− | | name | example-experiment |
| |
− | | project_id | 5f011d076a6f4a328989c57ac7b4e501 |
| |
− | | status | available |
| |
− | +-------------+--------------------------------------+
| |