O'Reilly logo

Effective Amazon Machine Learning by Alexis Perrier

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating the model

Creating the model with the create-ml-model command follows the same steps:

  1. Generate the skeleton with the following:
        $ aws machinelearning create-ml-model --generate-cli-skeleton >         mdl_ames_housing_001.json
  1. Write the configuration file:
        {            "MLModelId": "ch8_ames_housing_001",            "MLModelName": "[MDL] Ames Housing 001",            "MLModelType": "REGRESSION",            "Parameters": {                "sgd.shuffleType": "auto",                "sgd.l2RegularizationAmount": "1.0E-06",                "sgd.maxPasses": "100"            },            "TrainingDataSourceId": "ch8_ames_housing_001",            "RecipeUri": "s3://aml.packt/data/ch8              /recipe_ames_housing_001.json"        }

Note the parameters of the algorithm. Here, we used mild L2 regularization and 100 passes.

  1. Launch the model creation with the following:
 $ aws ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required