sasctl.utils package#
Subpackages#
- sasctl.utils.pymas package
- sasctl.utils.pyml2ds package
Submodules#
sasctl.utils.astore module#
- sasctl.utils.astore.create_files_from_astore(table)[source]#
Generate files for importing a model from an ASTORE.
- Parameters:
- tableswat.CASTable
The CAS table containing the ASTORE.
- Returns:
- dict
Dictionary of filename: content pairs.
- sasctl.utils.astore.create_package(table, input=None)[source]#
Create an importable model package from a CAS table.
- Parameters:
- tableswat.CASTable
The CAS table containing an ASTORE or score code.
- inputDataFrame, type, list of type, or dict of str: type, optional
The expected type for each input value of the target function. Can be omitted if target function includes type hints. If a DataFrame is provided, the columns will be inspected to determine type information. If a single type is provided, all columns will be assumed to be that type, otherwise a list of column types or a dictionary of column_name: type may be provided.
- Returns:
- BytesIO
A byte stream representing a ZIP archive which can be imported.
See also
model_repository.import_model_from_zip
- sasctl.utils.astore.create_package_from_astore(table)[source]#
Create an importable model package from an ASTORE.
- Parameters:
- tableswat.CASTable
The CAS table containing the ASTORE.
- Returns:
- BytesIO
A byte stream representing a ZIP archive which can be imported.
See also
model_repository.import_model_from_zip
- sasctl.utils.astore.create_package_from_datastep(table, input=None)[source]#
Create an importable model package from a score code table.
- Parameters:
- tableswat.CASTable
The CAS table containing the score code.
- inputDataFrame, type, list of type, or dict of str: type, optional
The expected type for each input value of the target function. Can be omitted if target function includes type hints. If a DataFrame is provided, the columns will be inspected to determine type information. If a single type is provided, all columns will be assumed to be that type, otherwise a list of column types or a dictionary of column_name: type may be provided.
- Returns:
- BytesIO
A byte stream representing a ZIP archive which can be imported.
See also
model_repository.import_model_from_zip