Iris Model Train Module

Iris Training Code CLI Documentation

This documentation shows how to train the Iris model through the CLI interface.

Command to train the Iris model.

usage: iris_train [-h] [-gamma GAMMA] [-c C]

Named Arguments

-gamma

Gamma value used to train the SVM model.

-c

C value used to train the SVM model.

Iris Training Code Documentation

This documentation shows how to train the Iris model by importing the code directly.

iris_model.iris_train.argument_parser()

This method creates and returns the argument parser used for parsing the cli arguments.

Note

This function is only used to auto generate the CLI documentation.

iris_model.iris_train.main()

Entry point for the cli interface

iris_model.iris_train.train(gamma=0.001, c=100.0)

Function to train, serialize, and save the Iris model.

Parameters
  • gamma (float) – gamma parameter used by the SVM fit method.

  • c (float) – c parameter used by the SVM fit method.

Return type

None – function will save trained model to the iris_model/model_files directory