Module h2o_wave_ml.utils
Functions
list_dai_instances
def list_dai_instances(access_token: str = '', refresh_token: str = '') ‑> List[Dict[~KT, ~VT]]
Gets a list of all available Driverless instances.
A token is required to authenticate with Steam if H2O_WAVE_ML_STEAM_REFRESH_TOKEN
is not set.
Args
access_token
- Optional access token to authenticate with Steam.
refresh_token
- Optional refresh token to authenticate with Steam.
Returns
A list of Driverless instances. The list contains a dictionary with name
, status
and created_by
items.
list_dai_multinodes
def list_dai_multinodes(access_token: str = '', refresh_token: str = '') ‑> List[str]
Gets a list of all available Driverless multinode instances.
A token is required to authenticate with Steam if H2O_WAVE_ML_STEAM_REFRESH_TOKEN
is not set.
Args
access_token
- Optional access token to authenticate with Steam.
refresh_token
- Optional refresh token to authenticate with Steam.
Returns
A list of Driverless multinode instances.
save_autodoc
def save_autodoc(project_id: str, output_dir_path: str, access_token: str = '', refresh_token: str = '') ‑> str
Saves an autodoc document from MLOps to the given location.
Access or refresh token is required in order to connect to MLOps.
Args
project_id
- MLOps project id.
output_dir_path
- A directory where the doc will be saved.
access_token
- Access token to authenticate with MLOps.
refresh_token
- Refresh token to authenticate with MLOps.
Returns
The file path to the saved report.