reagent.validators package
Submodules
reagent.validators.model_validator module
- class reagent.validators.model_validator.ModelValidator
Bases:
objectBase class for model validator. All validator should subclass from this so that they can be registered in the workflows.
- REGISTRY = {}
- REGISTRY_FROZEN = False
- REGISTRY_NAME = 'ModelValidator'
- abstract do_validate(training_output: reagent.workflow.types.RLTrainingOutput, result_history: Optional[List[reagent.workflow.types.RLTrainingOutput]] = None, input_table_spec: Optional[reagent.workflow.types.TableSpec] = None) reagent.core.result_registries.ValidationResult
This method takes RLTrainingOutput so that it can extract anything it might need from it.
- validate(training_output: reagent.workflow.types.RLTrainingOutput, result_history: Optional[List[reagent.workflow.types.RLTrainingOutput]] = None, input_table_spec: Optional[reagent.workflow.types.TableSpec] = None)
This method takes RLTrainingOutput so that it can extract anything it might need from it.
reagent.validators.no_validation module
- class reagent.validators.no_validation.NoValidation
Bases:
reagent.validators.model_validator.ModelValidatorThis is an example of how to create a validator. This validator performs no validation. In your own validator, you would want to have validate() performs some validation.
- do_validate(training_output: reagent.workflow.types.RLTrainingOutput, result_history: Optional[List[reagent.workflow.types.RLTrainingOutput]] = None, input_table_spec: Optional[reagent.workflow.types.TableSpec] = None) reagent.core.result_types.NoValidationResults
This method takes RLTrainingOutput so that it can extract anything it might need from it.
reagent.validators.union module
- class reagent.validators.union.ModelValidator__Union(NoValidation: Optional[reagent.validators.no_validation.NoValidation] = None)
Bases:
reagent.core.tagged_union.TaggedUnion- NoValidation: Optional[reagent.validators.no_validation.NoValidation] = None
- make_union_instance(instance_class=None)