train_model()
- 1 Minute to read
train_model()
- 1 Minute to read
Article summary
Did you find this summary helpful?
Thank you for your feedback
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
Arguments | Type | Default value | Description |
---|---|---|---|
model | str | - | Name of the model. |
type | str | - | Type of the model. |
model_name | str | - | Name of the model to be trained. |
data_path | str | - | Path to the folder containing the training data. |
model_params | dict | {} | Parameters for the model. |
Return
Type | Description |
---|---|
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?