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

Specifying outputs

The outputs section is where you explicitly list all the variables that will be used for the model training. If you have defined a group with some of the variables but you still want the original variables to be accounted for, you need to explicitly list them. The assignment section declares a list composed of the following: 

  • Groups
  • Assignments
  • Variables
  • Transformation (variable)

For instance, if you wanted the original body and subject of the e-mails as well as the bigrams you defined in assignments, you would need to declare the outputs as follows:

"outputs": [    "header",    "subject",    "body",    "bigrams"]

The following outputs declaration declares all the text variables and adds the bigrams assignment defined earlier on: ...

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