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:
table (swat.cas.table.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:
table (swat.cas.table.CASTable) – The CAS table containing an ASTORE or score code.
input (pandas.DataFrame, type, list of type, or dict of str, 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
- sasctl.utils.astore.create_package_from_astore(table)[source]#
Create an importable model package from an ASTORE.
- Parameters:
table (swat.cas.table.CASTable) – The CAS table containing the ASTORE.
- Returns:
BytesIO – A byte stream representing a ZIP archive which can be imported.
See also
- sasctl.utils.astore.create_package_from_datastep(table, input=None)[source]#
Create an importable model package from a score code table.
- Parameters:
table (swat.cas.table.CASTable) – The CAS table containing the score code.
input (pandas.DataFrame, type, list of type, or dict of str, 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