tuner package
check_tuner
Check the current state of the tuner and optionally waits until the tuner has completed.
Parameters
timeout_sec: Optional[int] = None
wait_for_completion: bool = True
Return
edgeimpulse_api.models.optimize_state_response.OptimizeStateResponse
get_tuner_run_state
Retrieve the current state of the tuner run.
Returns: OptimizeStateResponse: The OptimizeStateResponse object representing the current Tuner state.
Parameters
tuner_coordinator_job_id: int
Return
edgeimpulse_api.models.optimize_state_response.OptimizeStateResponse
list_tuner_runs
List the tuner runs that have been done in the current project.
Returns: ListTunerRunsResponse: An object containing all the tuner runs
Return
edgeimpulse_api.models.list_tuner_runs_response.ListTunerRunsResponse
print_tuner_coordinator_logs
Retrieve and print logs for the tuner coordinator job.
Returns: None
Parameters
limit: int = 500
Return
None
print_tuner_job_logs
Retrieve and print logs for the tuner job.
Returns: None
Parameters
limit: int = 500
Return
None
set_impulse_from_trial
Replace the current Impulse configuration with one found in a trial fromm the tuner.
Parameters
trial_id: str
timeout_sec: Optional[float] = None
wait_for_completion: Optional[bool] = True
Return
edgeimpulse_api.models.start_job_response.StartJobResponse
start_custom_tuner
Start a tuner job with custom configuration.
Parameters
config: edgeimpulse_api.models.optimize_config.OptimizeConfig
Return
edgeimpulse_api.models.start_job_response.StartJobResponse
start_tuner
Start the EON tuner with default settings. Use start_custom_tuner
to specify config.
Parameters
space: List[edgeimpulse_api.models.tuner_space_impulse.TunerSpaceImpulse]
target_device: str
target_latency: int
tuning_max_trials: Optional[int] = None
name: Optional[str] = None
Return
edgeimpulse_api.models.start_job_response.StartJobResponse
tuner_report_as_df
Get a tuner trial report dataframe with model metrics and block configuration.
This method needs pandas to be installed.
Generate a dataframe on the tuner trials including used input, model, learn block configuration and model validation metrics.
Parameters
state: edgeimpulse_api.models.optimize_state_response.OptimizeStateResponse
Last updated