optimization_api module#
- class edgeimpulse_api.api.optimization_api.OptimizationApi(api_client=None)[source]#
Bases:
object
- create_trial(
- project_id: StrictInt[StrictInt],
- job_id: StrictInt[StrictInt],
- tuner_create_trial_impulse: TunerCreateTrialImpulse,
- **kwargs,
Create trial
Create trial
- Parameters:
project_id (int) – Project ID (required)
job_id (int) – Job ID (required)
tuner_create_trial_impulse (TunerCreateTrialImpulse) – (required)
async_req (bool, optional) – Whether to execute the request asynchronously.
_preload_content (bool, optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.
_request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- Returns:
Returns the result object. If the method is called asynchronously, returns the request thread.
- Return type:
- delete_state(
- project_id: StrictInt[StrictInt],
- **kwargs,
Delete EON tuner state
Completely clears the EON tuner state for this project.
- Parameters:
project_id (int) – Project ID (required)
async_req (bool, optional) – Whether to execute the request asynchronously.
_preload_content (bool, optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.
_request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- Returns:
Returns the result object. If the method is called asynchronously, returns the request thread.
- Return type:
- get_config(
- project_id: StrictInt[StrictInt],
- **kwargs,
Get config
Get config
- Parameters:
project_id (int) – Project ID (required)
async_req (bool, optional) – Whether to execute the request asynchronously.
_preload_content (bool, optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.
_request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- Returns:
Returns the result object. If the method is called asynchronously, returns the request thread.
- Return type:
- get_dsp_parameters(
- project_id: StrictInt[StrictInt],
- organization_id: StrictInt[StrictInt],
- organization_dsp_id: StrictInt[StrictInt],
- **kwargs,
Retrieves DSP block parameters
Retrieves DSP block parameters
- Parameters:
project_id (int) – Project ID (required)
organization_id (int) – Organization ID (required)
organization_dsp_id (int) – Organization DSP ID (required)
async_req (bool, optional) – Whether to execute the request asynchronously.
_preload_content (bool, optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.
_request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- Returns:
Returns the result object. If the method is called asynchronously, returns the request thread.
- Return type:
- get_space(
- project_id: StrictInt[StrictInt],
- **kwargs,
Search space
Search space
- Parameters:
project_id (int) – Project ID (required)
async_req (bool, optional) – Whether to execute the request asynchronously.
_preload_content (bool, optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.
_request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- Returns:
Returns the result object. If the method is called asynchronously, returns the request thread.
- Return type:
- get_state(
- project_id: StrictInt[StrictInt],
- **kwargs,
Retrieves the EON tuner state
Retrieves the EON tuner state
- Parameters:
project_id (int) – Project ID (required)
async_req (bool, optional) – Whether to execute the request asynchronously.
_preload_content (bool, optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.
_request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- Returns:
Returns the result object. If the method is called asynchronously, returns the request thread.
- Return type:
- get_transfer_learning_models(
- project_id: StrictInt[StrictInt],
- **kwargs,
Retrieves available transfer learning models
Retrieves available transfer learning models
- Parameters:
project_id (int) – Project ID (required)
async_req (bool, optional) – Whether to execute the request asynchronously.
_preload_content (bool, optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.
_request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- Returns:
Returns the result object. If the method is called asynchronously, returns the request thread.
- Return type:
- get_trial_logs(
- project_id: StrictInt[StrictInt],
- trial_id: StrictStr[StrictStr],
- **kwargs,
Get trial logs
Get the logs for a trial.
- Parameters:
project_id (int) – Project ID (required)
trial_id (str) – trial ID (required)
async_req (bool, optional) – Whether to execute the request asynchronously.
_preload_content (bool, optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.
_request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- Returns:
Returns the result object. If the method is called asynchronously, returns the request thread.
- Return type:
- get_tuner_run_state(
- project_id: StrictInt[StrictInt],
- tuner_coordinator_job_id: StrictInt[StrictInt],
- **kwargs,
Retrieves EON tuner state for a run.
Retrieves the EON tuner state for a specific run.
- Parameters:
project_id (int) – Project ID (required)
tuner_coordinator_job_id (int) – Tuner coordinator job ID (required)
async_req (bool, optional) – Whether to execute the request asynchronously.
_preload_content (bool, optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.
_request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- Returns:
Returns the result object. If the method is called asynchronously, returns the request thread.
- Return type:
- get_window_settings(
- project_id: StrictInt[StrictInt],
- **kwargs,
Get window settings
Get window settings
- Parameters:
project_id (int) – Project ID (required)
async_req (bool, optional) – Whether to execute the request asynchronously.
_preload_content (bool, optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.
_request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- Returns:
Returns the result object. If the method is called asynchronously, returns the request thread.
- Return type:
- list_tuner_runs(
- project_id: StrictInt[StrictInt],
- **kwargs,
List all tuner runs
List all the tuner runs for a project.
- Parameters:
project_id (int) – Project ID (required)
async_req (bool, optional) – Whether to execute the request asynchronously.
_preload_content (bool, optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.
_request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- Returns:
Returns the result object. If the method is called asynchronously, returns the request thread.
- Return type:
- score_trial(
- project_id: StrictInt[StrictInt],
- tuner_create_trial_impulse: TunerCreateTrialImpulse,
- **kwargs,
Score trial
Score trial
- Parameters:
project_id (int) – Project ID (required)
tuner_create_trial_impulse (TunerCreateTrialImpulse) – (required)
async_req (bool, optional) – Whether to execute the request asynchronously.
_preload_content (bool, optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.
_request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- Returns:
Returns the result object. If the method is called asynchronously, returns the request thread.
- Return type:
- update_config(
- project_id: StrictInt[StrictInt],
- optimize_config: OptimizeConfig,
- **kwargs,
Update config
Update config
- Parameters:
project_id (int) – Project ID (required)
optimize_config (OptimizeConfig) – (required)
async_req (bool, optional) – Whether to execute the request asynchronously.
_preload_content (bool, optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.
_request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- Returns:
Returns the result object. If the method is called asynchronously, returns the request thread.
- Return type:
- update_tuner_run(
- project_id: StrictInt[StrictInt],
- tuner_coordinator_job_id: StrictInt[StrictInt],
- update_tuner_run_request: UpdateTunerRunRequest,
- **kwargs,
Update EON tuner state
Updates the EON tuner state for a specific run.
- Parameters:
project_id (int) – Project ID (required)
tuner_coordinator_job_id (int) – Tuner coordinator job ID (required)
update_tuner_run_request (UpdateTunerRunRequest) – (required)
async_req (bool, optional) – Whether to execute the request asynchronously.
_preload_content (bool, optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.
_request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- Returns:
Returns the result object. If the method is called asynchronously, returns the request thread.
- Return type: