keras_config module
KerasConfig
class edgeimpulse_api.models.keras_config.KerasConfig(
**data: Any
)
Create a new model by parsing and validating input data from keyword arguments.
Raises ValidationError if the input data cannot be parsed to form a valid model.
Parameters
**data: Any
Bases
pydantic.main.BaseModel
pydantic.utils.Representation
Class variables
Config
The type of the None singleton.akida_edge_learning_config: edgeimpulse_api.models.akida_edge_learning_config.AkidaEdgeLearningConfig | None
The type of the None singleton.anomaly_capacity: edgeimpulse_api.models.anomaly_capacity.AnomalyCapacity | None
The type of the None singleton.augmentation_policy_image: edgeimpulse_api.models.augmentation_policy_image_enum.AugmentationPolicyImageEnum
The type of the None singleton.augmentation_policy_spectrogram: edgeimpulse_api.models.augmentation_policy_spectrogram.AugmentationPolicySpectrogram | None
The type of the None singleton.auto_class_weights: pydantic.types.StrictBool | None
The type of the None singleton.batch_size: pydantic.types.StrictInt | None
The type of the None singleton.block_parameters: edgeimpulse_api.models.block_parameters.BlockParameters | None
The type of the None singleton.custom_parameters: Dict[str, pydantic.types.StrictStr] | None
The type of the None singleton.custom_validation_metadata_key: pydantic.types.StrictStr | None
The type of the None singleton.default_batch_size: pydantic.types.StrictInt
The type of the None singleton.dependencies: edgeimpulse_api.models.dependency_data.DependencyData
The type of the None singleton.last_shown_model_variant: edgeimpulse_api.models.keras_model_variant_enum.KerasModelVariantEnum | None
The type of the None singleton.learning_rate: float
The type of the None singleton.minimum_confidence_rating: float
The type of the None singleton.mode: pydantic.types.StrictStr
The type of the None singleton.name: pydantic.types.StrictStr
The type of the None singleton.profile_int8: pydantic.types.StrictBool
The type of the None singleton.script: pydantic.types.StrictStr
The type of the None singleton.selected_model_type: edgeimpulse_api.models.keras_model_type_enum.KerasModelTypeEnum
The type of the None singleton.shape: pydantic.types.StrictStr
The type of the None singleton.show_advanced_training_settings: pydantic.types.StrictBool
The type of the None singleton.show_augmentation_training_settings: pydantic.types.StrictBool
The type of the None singleton.skip_embeddings_and_memory: pydantic.types.StrictBool
The type of the None singleton.thresholds: List[edgeimpulse_api.models.block_threshold.BlockThreshold]
The type of the None singleton.train_test_split: float | None
The type of the None singleton.trained: pydantic.types.StrictBool
The type of the None singleton.training_cycles: pydantic.types.StrictInt
The type of the None singleton.transfer_learning_models: List[edgeimpulse_api.models.transfer_learning_model.TransferLearningModel]
The type of the None singleton.type: edgeimpulse_api.models.learn_block_type.LearnBlockType | None
The type of the None singleton.use_learned_optimizer: pydantic.types.StrictBool | None
The type of the None singleton.visual_layers: List[edgeimpulse_api.models.keras_visual_layer.KerasVisualLayer]
The type of the None singleton.
Static methods
from_dict
edgeimpulse_api.models.keras_config.from_dict(
obj: dict
) ‑> edgeimpulse_api.models.keras_config.KerasConfig
Create an instance of KerasConfig from a dict
Parameters
obj: dict
Return
edgeimpulse_api.models.keras_config.KerasConfig
from_json
edgeimpulse_api.models.keras_config.from_json(
json_str: str
) ‑> edgeimpulse_api.models.keras_config.KerasConfig
Create an instance of KerasConfig from a JSON string
Parameters
json_str: str
Return
edgeimpulse_api.models.keras_config.KerasConfig
mode_validate_enum
edgeimpulse_api.models.keras_config.mode_validate_enum(
v
)
Parameters
v
Methods
to_dict
edgeimpulse_api.models.keras_config.to_dict(
self
)
Returns the dictionary representation of the model using alias
Parameters
self
to_json
edgeimpulse_api.models.keras_config.to_json(
self,
indent=None
) ‑> str
Returns the JSON representation of the model using alias
Parameters
self
indent=None
Return
str
to_str
edgeimpulse_api.models.keras_config.to_str(
self
) ‑> str
Returns the string representation of the model using alias
Parameters
self
Return
str
Last updated
Was this helpful?