Package clarifai2.dto.model
Enum ModelTrainingStatus
- java.lang.Object
-
- java.lang.Enum<ModelTrainingStatus>
-
- clarifai2.dto.model.ModelTrainingStatus
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ModelTrainingStatus>
public enum ModelTrainingStatus extends java.lang.Enum<ModelTrainingStatus>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MODEL_TRAINING_NO_DATA
Model training had no dataMODEL_TRAINING_ONE_VS_N_SINGLE_CLASS
Custom model training was ONE_VS_N but with a single classMODEL_TRAINING_TIMED_OUT
Training took longer than the server allowsMODEL_TRAINING_UNEXPECTED_REDELIVERY_ERROR
Training request was unexpectedly redelivered, contact [email protected] if this continues to happen.MODEL_TRAINING_UNKNOWN_ERROR
Training threw an unknown errorMODEL_TRAINING_WAITING_ERROR
Training got error waiting on asset pipeline to finishNO_POSITIVE_EXAMPLES
There are no positive examples for this model, so it cannot be trained.NOT_YET_TRAINED
This model hasn't been trained.TRAINED
This model has been trained.TRAINING_IN_PROGRESS
This model is currently being trained by the server.TRAINING_QUEUED
This model is in the queue to be trained by the server.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ModelTrainingStatus
deserialize(StatusOuterClass.Status status)
boolean
isError()
boolean
isTerminalEvent()
int
statusCode()
static ModelTrainingStatus
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ModelTrainingStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TRAINED
public static final ModelTrainingStatus TRAINED
This model has been trained.
-
TRAINING_IN_PROGRESS
public static final ModelTrainingStatus TRAINING_IN_PROGRESS
This model is currently being trained by the server.
-
NOT_YET_TRAINED
public static final ModelTrainingStatus NOT_YET_TRAINED
This model hasn't been trained. UseClarifaiClient.trainModel(String)
orModel.train()
to train it.
-
TRAINING_QUEUED
public static final ModelTrainingStatus TRAINING_QUEUED
This model is in the queue to be trained by the server.
-
MODEL_TRAINING_NO_DATA
public static final ModelTrainingStatus MODEL_TRAINING_NO_DATA
Model training had no data
-
NO_POSITIVE_EXAMPLES
public static final ModelTrainingStatus NO_POSITIVE_EXAMPLES
There are no positive examples for this model, so it cannot be trained. Please add at least one positive example for each of the model's concepts before trying to train it.
-
MODEL_TRAINING_ONE_VS_N_SINGLE_CLASS
public static final ModelTrainingStatus MODEL_TRAINING_ONE_VS_N_SINGLE_CLASS
Custom model training was ONE_VS_N but with a single class
-
MODEL_TRAINING_TIMED_OUT
public static final ModelTrainingStatus MODEL_TRAINING_TIMED_OUT
Training took longer than the server allows
-
MODEL_TRAINING_WAITING_ERROR
public static final ModelTrainingStatus MODEL_TRAINING_WAITING_ERROR
Training got error waiting on asset pipeline to finish
-
MODEL_TRAINING_UNKNOWN_ERROR
public static final ModelTrainingStatus MODEL_TRAINING_UNKNOWN_ERROR
Training threw an unknown error
-
MODEL_TRAINING_UNEXPECTED_REDELIVERY_ERROR
public static final ModelTrainingStatus MODEL_TRAINING_UNEXPECTED_REDELIVERY_ERROR
Training request was unexpectedly redelivered, contact [email protected] if this continues to happen.
-
-
Method Detail
-
values
public static ModelTrainingStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ModelTrainingStatus c : ModelTrainingStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ModelTrainingStatus valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
isError
public boolean isError()
-
isTerminalEvent
public boolean isTerminalEvent()
-
statusCode
public int statusCode()
-
deserialize
public static ModelTrainingStatus deserialize(StatusOuterClass.Status status)
-
-