Parameters
Parameter | Type | Default | Description |
---|---|---|---|
batch_size | int | 2048 | Number of vectors to process per training batch |
max_iters | int | 100 | Maximum number of training iterations |
tolerance | float | 1e-6 | Convergence tolerance for training completion |
max_memory | int | 0 | Maximum memory usage in MB (0 = unlimited) |
Training is a compute-intensive operation that may take several seconds to minutes depending on the index size and configuration.
Returns
None
Exceptions
Error
Error
- Throws if the API request fails due to network connectivity issues.
- Throws if authentication fails (invalid API key).
- Throws if the encryption key is invalid for the specified index.
- Throws if there are insufficient resources to complete training.
Training Errors
Training Errors
- Throws if the index has no vectors to train on.
- Throws if the index configuration is incompatible with training.
- Throws if training parameters are out of valid ranges.
- Throws if training fails to converge within the specified parameters.