optimization_api module

OptimizationApi

class edgeimpulse_api.api.optimization_api.OptimizationApi(
		api_client=None
)

Parameters

  • api_client=None

Methods

edgeimpulse_api.api.optimization_api.complete_search(
		self,
		project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})],
		job_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Job ID', extra={})],
		tuner_complete_search: edgeimpulse_api.models.tuner_complete_search.TunerCompleteSearch,
		**kwargs
)> edgeimpulse_api.models.generic_api_response.GenericApiResponse

Complete EON tuner run

Complete EON tuner run and mark it as succesful

Parameters

  • self

  • project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})]

  • job_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Job ID', extra={})]

  • tuner_complete_search: edgeimpulse_api.models.tuner_complete_search.TunerCompleteSearch

  • **kwargs

Return

edgeimpulse_api.models.generic_api_response.GenericApiResponse

create_trial

edgeimpulse_api.api.optimization_api.create_trial(
		self,
		project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})],
		job_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Job ID', extra={})],
		tuner_create_trial_impulse: edgeimpulse_api.models.tuner_create_trial_impulse.TunerCreateTrialImpulse,
		**kwargs
)> edgeimpulse_api.models.generic_api_response.GenericApiResponse

Create trial

Create trial

Parameters

  • self

  • project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})]

  • job_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Job ID', extra={})]

  • tuner_create_trial_impulse: edgeimpulse_api.models.tuner_create_trial_impulse.TunerCreateTrialImpulse

  • **kwargs

Return

edgeimpulse_api.models.generic_api_response.GenericApiResponse

delete_state

edgeimpulse_api.api.optimization_api.delete_state(
		self,
		project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})],
		**kwargs
)> edgeimpulse_api.models.generic_api_response.GenericApiResponse

Delete EON tuner state

Completely clears the EON tuner state for this project.

Parameters

  • self

  • project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})]

  • **kwargs

Return

edgeimpulse_api.models.generic_api_response.GenericApiResponse

end_trial

edgeimpulse_api.api.optimization_api.end_trial(
		self,
		project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})],
		job_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Job ID', extra={})],
		trial_id: Annotated[pydantic.types.StrictStr, FieldInfo(default=Ellipsis, description='trial ID', extra={})],
		**kwargs
)> edgeimpulse_api.models.generic_api_response.GenericApiResponse

End EON tuner trial

End an EON trial early. This can for example be used to implement early stopping.

Parameters

  • self

  • project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})]

  • job_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Job ID', extra={})]

  • trial_id: Annotated[pydantic.types.StrictStr, FieldInfo(default=Ellipsis, description='trial ID', extra={})]

  • **kwargs

Return

edgeimpulse_api.models.generic_api_response.GenericApiResponse

get_all_learn_blocks

edgeimpulse_api.api.optimization_api.get_all_learn_blocks(
		self,
		project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})],
		**kwargs
)> edgeimpulse_api.models.all_learn_blocks_response.AllLearnBlocksResponse

Get all available learn blocks

Get all available learn blocks

Parameters

  • self

  • project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})]

  • **kwargs

Return

edgeimpulse_api.models.all_learn_blocks_response.AllLearnBlocksResponse

get_config

edgeimpulse_api.api.optimization_api.get_config(
		self,
		project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})],
		**kwargs
)> edgeimpulse_api.models.optimize_config_response.OptimizeConfigResponse

Get config

Get config

Parameters

  • self

  • project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})]

  • **kwargs

Return

edgeimpulse_api.models.optimize_config_response.OptimizeConfigResponse

get_dsp_parameters

edgeimpulse_api.api.optimization_api.get_dsp_parameters(
		self,
		project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})],
		organization_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Organization ID', extra={})],
		organization_dsp_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Organization DSP ID', extra={})],
		**kwargs
)> edgeimpulse_api.models.optimize_dsp_parameters_response.OptimizeDSPParametersResponse

Retrieves DSP block parameters

Retrieves DSP block parameters

Parameters

  • self

  • project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})]

  • organization_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Organization ID', extra={})]

  • organization_dsp_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Organization DSP ID', extra={})]

  • **kwargs

Return

edgeimpulse_api.models.optimize_dsp_parameters_response.OptimizeDSPParametersResponse

get_space

edgeimpulse_api.api.optimization_api.get_space(
		self,
		project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})],
		**kwargs
)> edgeimpulse_api.models.optimize_space_response.OptimizeSpaceResponse

Search space

Search space

Parameters

  • self

  • project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})]

  • **kwargs

Return

edgeimpulse_api.models.optimize_space_response.OptimizeSpaceResponse

get_state

edgeimpulse_api.api.optimization_api.get_state(
		self,
		project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})],
		**kwargs
)> edgeimpulse_api.models.optimize_state_response.OptimizeStateResponse

Retrieves the EON tuner state

Retrieves the EON tuner state

Parameters

  • self

  • project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})]

  • **kwargs

Return

edgeimpulse_api.models.optimize_state_response.OptimizeStateResponse

get_transfer_learning_models

edgeimpulse_api.api.optimization_api.get_transfer_learning_models(
		self,
		project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})],
		**kwargs
)> edgeimpulse_api.models.optimize_transfer_learning_models_response.OptimizeTransferLearningModelsResponse

Retrieves available transfer learning models

Retrieves available transfer learning models

Parameters

  • self

  • project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})]

  • **kwargs

Return

edgeimpulse_api.models.optimize_transfer_learning_models_response.OptimizeTransferLearningModelsResponse

get_trial_logs

edgeimpulse_api.api.optimization_api.get_trial_logs(
		self,
		project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})],
		trial_id: Annotated[pydantic.types.StrictStr, FieldInfo(default=Ellipsis, description='trial ID', extra={})],
		**kwargs
)> edgeimpulse_api.models.log_stdout_response.LogStdoutResponse

Get trial logs

Get the logs for a trial.

Parameters

  • self

  • project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})]

  • trial_id: Annotated[pydantic.types.StrictStr, FieldInfo(default=Ellipsis, description='trial ID', extra={})]

  • **kwargs

Return

edgeimpulse_api.models.log_stdout_response.LogStdoutResponse

get_tuner_run_state

edgeimpulse_api.api.optimization_api.get_tuner_run_state(
		self,
		project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})],
		tuner_coordinator_job_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Tuner coordinator job ID', extra={})],
		**kwargs
)> edgeimpulse_api.models.optimize_state_response.OptimizeStateResponse

Retrieves EON tuner state for a run.

Retrieves the EON tuner state for a specific run.

Parameters

  • self

  • project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})]

  • tuner_coordinator_job_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Tuner coordinator job ID', extra={})]

  • **kwargs

Return

edgeimpulse_api.models.optimize_state_response.OptimizeStateResponse

get_window_settings

edgeimpulse_api.api.optimization_api.get_window_settings(
		self,
		project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})],
		**kwargs
)> edgeimpulse_api.models.window_settings_response.WindowSettingsResponse

Get window settings

Get window settings

Parameters

  • self

  • project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})]

  • **kwargs

Return

edgeimpulse_api.models.window_settings_response.WindowSettingsResponse

list_tuner_runs

edgeimpulse_api.api.optimization_api.list_tuner_runs(
		self,
		project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})],
		**kwargs
)> edgeimpulse_api.models.list_tuner_runs_response.ListTunerRunsResponse

List all tuner runs

List all the tuner runs for a project.

Parameters

  • self

  • project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})]

  • **kwargs

Return

edgeimpulse_api.models.list_tuner_runs_response.ListTunerRunsResponse

score_trial

edgeimpulse_api.api.optimization_api.score_trial(
		self,
		project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})],
		tuner_create_trial_impulse: edgeimpulse_api.models.tuner_create_trial_impulse.TunerCreateTrialImpulse,
		**kwargs
)> edgeimpulse_api.models.score_trial_response.ScoreTrialResponse

Score trial

Score trial

Parameters

  • self

  • project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})]

  • tuner_create_trial_impulse: edgeimpulse_api.models.tuner_create_trial_impulse.TunerCreateTrialImpulse

  • **kwargs

Return

edgeimpulse_api.models.score_trial_response.ScoreTrialResponse

update_config

edgeimpulse_api.api.optimization_api.update_config(
		self,
		project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})],
		optimize_config: edgeimpulse_api.models.optimize_config.OptimizeConfig,
		**kwargs
)> edgeimpulse_api.models.generic_api_response.GenericApiResponse

Update config

Update config

Parameters

  • self

  • project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})]

  • optimize_config: edgeimpulse_api.models.optimize_config.OptimizeConfig

  • **kwargs

Return

edgeimpulse_api.models.generic_api_response.GenericApiResponse

update_tuner_run

edgeimpulse_api.api.optimization_api.update_tuner_run(
		self,
		project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})],
		tuner_coordinator_job_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Tuner coordinator job ID', extra={})],
		update_tuner_run_request: edgeimpulse_api.models.update_tuner_run_request.UpdateTunerRunRequest,
		**kwargs
)> edgeimpulse_api.models.generic_api_response.GenericApiResponse

Update EON tuner state

Updates the EON tuner state for a specific run.

Parameters

  • self

  • project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})]

  • tuner_coordinator_job_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Tuner coordinator job ID', extra={})]

  • update_tuner_run_request: edgeimpulse_api.models.update_tuner_run_request.UpdateTunerRunRequest

  • **kwargs

Return

edgeimpulse_api.models.generic_api_response.GenericApiResponse

Last updated