Builder(component: Schema, destination: str, storage: str = 'local', compress: bool = False, pickle_only: bool = False, pickle_module=dill, pickle_protocol=DEFAULT_PROTOCOL)¶
Implement a Builder.
A builder is a simple object that can be used to create any Component post-experiment, and export it to a local or remote location.
Currently supports local, and S3 locations.
The secrets that the user provides. For example, ‘config[“AWS”][“ACCESS_KEY”]’
run(self, force: bool = False, **kwargs)¶
Run the Builder.
Save an object locally.
Parameters: force (bool) – Wheter to use a non-empty folder or not
Get a boto Session
Save an object to s3 using awscli
Parameters: force (bool) – Wheter to use a non-empty bucket folder or not
Exporter(**kwargs: Dict[str, Any])¶
Implement an Exporter computable.
This object can be viewed as a dummy computable. It is useful to group objects into a block when those get save, to more easily refer to them later on, for instance in an object builder.
Run the exporter.
Returns: False, as this is a single step Component. Return type: bool