Script(script: str, args: Dict[str, Any], output_dir_arg: Optional[str] = None)¶
Implement a Script computable.
The obejct can be used to turn any script into a Flambé computable. This is useful when you want to rapidly integrate code. Note however that this computable does not enable checkpointing or linking to internal components as it does not have any attributes.
To use this object, your script needs to be in a pip installable, containing all dependencies. The script is run with the following command:
python -m script.py --arg1 value1 --arg2 value2
Run the evaluation.
Returns: Report dictionary to use for logging Return type: Dict[str, float]