Run Objects¶
Ingejcting runners¶
RunGenerator¶
-
class
driftai.run.run_manage.RunGenerator[source]¶ Responsible of generating runs
Parameters: approach (RunnableApproach) – Approach containing the subdataset info and hyperparameters to generate the runs -
add_parameters(param)[source]¶ Adds an extra hyperparameter to run generator
Parameters: param (AbstractParameter) –
-
static
from_runnable_approach(runnable, extra_parameters=[])[source]¶ Given a runnable approach generates the runs
Parameters: runnable (RunnableApproach) – Returns: Return type: list(Run)
-
RunPool¶
Runners¶
-
class
driftai.run.runner.CloudRunner[source]¶ Bases:
driftai.run.runner.AbstractRunnerRuns an approach in a single machine using dask parallelization
-
class
driftai.run.runner.DaskRunner[source]¶ Bases:
driftai.run.runner.AbstractRunnerRuns an approach in a single machine using dask parallelization
-
class
driftai.run.runner.SingleRunner[source]¶ Bases:
driftai.run.runner.AbstractRunnerRuns an approach in a single machine
Run¶
-
class
driftai.run.Run[source]¶ -
static
collection(approach_id)[source]¶ Get table containing runs
Returns: Return type: TinyDB instance
-
get_info()[source]¶ Get the summary of a run instance
Returns: Dict containing a run summary: { "id": <unique identifier>, "approach_id": <approach id>, "subdataset": <subdataset id>, "run_parameters": <hyperparameters of the run>, "status": <run status>, "results": <dict summarizing driftai.Result instance>, "creation_date": <run creationd date>, "submitted_date": <when run starts>, "finish_date": <when run finishes>, "subdataset_set": <subdataset set> }
Return type: dict
-
get_test_data()[source]¶ Get the test data from the run related subdataset set
Returns: Containing records and its labels: { "X": list, "y": list }
Return type: dict
-
get_train_data()[source]¶ Get the train data from the run related subdataset set
Returns: Containing records and its labels: { "X": list, "y": list }
Return type: dict
-
id¶ Get the unique identifier of the Persistent instance
Returns: Unique identifier Return type: str
-
classmethod
load(approach_id, id_)[source]¶ Creates an instance of the cls class using the unique identifier
Parameters: id (str) – Unique identifier of the persistent instance Returns: Instance created using JSON data comming from tinydb Return type: Persistent
-
classmethod
load_from_data(data, **kwargs)[source]¶ Loads a Run from the data coming from TinyDB
Parameters: data (dict) – Dict containing the JSON data Raises: OptAppSubDatasetInfoFileWrongStructureException– If data has worng keysReturns: New Run instance Return type: driftai.Run
-
results¶ Get results
Returns: Return type: driftai.Result
-
static