transfer_learning_model module

TransferLearningModel

class edgeimpulse_api.models.transfer_learning_model.TransferLearningModel(
		**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

  • abbreviated_name: pydantic.types.StrictStr | None

  • author: pydantic.types.StrictStr

  • block_type: edgeimpulse_api.models.block_type.BlockType

  • custom_parameters: List[edgeimpulse_api.models.dsp_group_item.DSPGroupItem] | None

  • default_dropout: float | None

  • default_learning_rate: float | None

  • default_neurons: pydantic.types.StrictInt | None

  • default_training_cycles: float | None

  • description: pydantic.types.StrictStr

  • display_category: edgeimpulse_api.models.block_display_category.BlockDisplayCategory | None

  • has_dropout: pydantic.types.StrictBool

  • has_image_augmentation: pydantic.types.StrictBool | None

  • has_neurons: pydantic.types.StrictBool

  • implementation_version: pydantic.types.StrictInt | None

  • learn_block_type: edgeimpulse_api.models.learn_block_type.LearnBlockType | None

  • name: pydantic.types.StrictStr

  • organization_model_id: pydantic.types.StrictInt | None

  • repository_url: pydantic.types.StrictStr | None

  • short_name: pydantic.types.StrictStr

  • type: edgeimpulse_api.models.keras_visual_layer_type.KerasVisualLayerType

Static methods

from_dict

edgeimpulse_api.models.transfer_learning_model.from_dict(
		obj: dict
)> edgeimpulse_api.models.transfer_learning_model.TransferLearningModel

Create an instance of TransferLearningModel from a dict

Parameters

  • obj: dict

Return

edgeimpulse_api.models.transfer_learning_model.TransferLearningModel

from_json

edgeimpulse_api.models.transfer_learning_model.from_json(
		json_str: str
)> edgeimpulse_api.models.transfer_learning_model.TransferLearningModel

Create an instance of TransferLearningModel from a JSON string

Parameters

  • json_str: str

Return

edgeimpulse_api.models.transfer_learning_model.TransferLearningModel

Methods

to_dict

edgeimpulse_api.models.transfer_learning_model.to_dict(
		self
)

Returns the dictionary representation of the model using alias

Parameters

  • self

to_json

edgeimpulse_api.models.transfer_learning_model.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.transfer_learning_model.to_str(
		self
)> str

Returns the string representation of the model using alias

Parameters

  • self

Return

str

Last updated