transfer_learning_model module#

class edgeimpulse_api.models.transfer_learning_model.TransferLearningModel(
*,
name: StrictStr,
shortName: StrictStr,
description: StrictStr,
hasNeurons: StrictBool,
hasDropout: StrictBool,
defaultNeurons: StrictInt | None = None,
defaultDropout: float | None = None,
defaultLearningRate: float | None = None,
defaultTrainingCycles: float | None = None,
hasImageAugmentation: StrictBool | None = None,
type: KerasVisualLayerType,
learnBlockType: LearnBlockType | None = None,
organizationModelId: StrictInt | None = None,
implementationVersion: StrictInt | None = None,
repositoryUrl: StrictStr | None = None,
author: StrictStr,
blockType: BlockType,
customParameters: List[DSPGroupItem] | None = None,
displayCategory: BlockDisplayCategory | None = None,
)[source]#

Bases: BaseModel

class Config[source]#

Bases: object

allow_population_by_field_name = True#
validate_assignment = False#
author: StrictStr#
block_type: BlockType#
custom_parameters: List[DSPGroupItem] | None#
default_dropout: float | None#
default_learning_rate: float | None#
default_neurons: StrictInt | None#
default_training_cycles: float | None#
description: StrictStr#
display_category: BlockDisplayCategory | None#
classmethod from_dict(
obj: dict,
) TransferLearningModel[source]#

Create an instance of TransferLearningModel from a dict

classmethod from_json(
json_str: str,
) TransferLearningModel[source]#

Create an instance of TransferLearningModel from a JSON string

has_dropout: StrictBool#
has_image_augmentation: StrictBool | None#
has_neurons: StrictBool#
implementation_version: StrictInt | None#
learn_block_type: LearnBlockType | None#
name: StrictStr#
organization_model_id: StrictInt | None#
repository_url: StrictStr | None#
short_name: StrictStr#
to_dict()[source]#

Returns the dictionary representation of the model using alias

to_json() str[source]#

Returns the JSON representation of the model using alias

to_str() str[source]#

Returns the string representation of the model using alias

type: KerasVisualLayerType#