train_model()
  • 1 Minute to read

train_model()


Article summary

This function prepares the image data from a given list of images and names sends it to train the model, and returns the training information as a dictionary.

Reference

Arguments

ArgumentsTypeDefault valueDescription
modelstr-
Name of the model.
typestr
-
Type of the model.
model_namestr-
Name of the model to be trained.
data_pathstr-
Path to the folder containing the training data.
model_paramsdict
{}
Parameters for the model.

Return

TypeDescription
dict
Dict representing the results of the training process, converted from a JSON string.

Exceptions

  • RayaCVInvalidModel
  • RayaCVDiffImageNamesSize
  • RayaCVInvalidImageFormat

See the complete list of cv exceptions.


Was this article helpful?

What's Next