Utils Module APIs
The SageMaker JumpStart Industry utils module.
- smjsindustry.finance.utils.get_freq_label(date_value: str, freq: str) Callable
Gets frequency label for the date value.
- Parameters
date_value (str) – The date value.
freq (str) – The frequency value specifies how the date field should be aggregated, by year, quarter, month, week, day. Available values:
{'Y', 'Q', 'M', 'W', 'D'}
, default'Q'
.
- Returns
The function call to get date aggregated by certain frequency.
- Return type
python function
- smjsindustry.finance.utils.load_image_uri_config()
Loads the JSON config for the image URI.
- Returns
The JSON object of the image URI config.
- Return type
JSON object
- smjsindustry.finance.utils.retrieve_image(region)
Retrieves the Amazon ECR image URI for the Docker image matching the given region.
- Parameters
region (str) – The AWS Region.
- Returns
the Amazon ECR image URI for the corresponding Docker image.
- Return type
str