Releases: sassoftware/python-sasctl
Releases · sassoftware/python-sasctl
v1.11.7
Improvements
- Added
CodeFileclass to pzmm module for creating and uploading Python code files to SAS Intelligent Decisioning- New method
write_id_code_file()uploads a Python code file to a specified Viya folder and registers it with the Decisions service- Accepts code as a raw string, file path, or
Pathobject - Validates code format via the SAS Viya API before upload; can be disabled with
validate_code=False - Raises
ValueErrorif the file already exists in the target folder, if the folder is not found, or if validation fails - Cleans up the uploaded file if Decisions service registration fails
- Accepts code as a raw string, file path, or
- See
examples/pzmm_id_code_file_example.ipynbfor usage examples
- New method
v1.11.6
Improvements
- Added
create_requirements_txtparameter tocreate_requirements_json()function inwrite_json_files.pyto optionally generate a requirements.txt file alongside the requirements.json file.
v1.11.5
Improvements
- Added model versioning methods to
model_repository.pyto handle model version endpoints. - Allow for user to set custom timeout length for score testing in
score_model_with_cas.
v1.11.4
Improvements
- Improved
upload_local_modelto allow for SAS Model Manager to properly intake local ASTORE models.
v1.11.3
Improvements
- Added
upload_local_modeltotasks.py, which can be used to upload local directories to SAS Model Manager without any file generation.
v1.11.2
Bugfixes
- Updated
calculate_model_statisticsfunction inwrite_json_files.pyto improve ROC tables as well as model card files.
v1.11.1
Improvements
- Improved functionality for
score_definition.pyandscore_execution.py, allowing for more general usage of thescore_model_with_castask- Also allowed for model name to be passed into functions instead of requiring model UUID
- Pickle files now loaded with
pd.read_pickle()instead ofpickle.load()in score code, allowing for more flexibility between python environments
Bugfixes
- Updated
pzmm_generate_complete_model_card.ipynbto have better preprocessing function
v1.11.0
Changes
- Added
score_definition.pyandscore_execution.pyto allow for score testing within SAS Model Manager- Included optional use of CAS Gateway for faster scoring. Only available in environments where Gateway scoring is properly set up.
- Added ability to include data pre-processing function within python score code using the
preprocess_functionargument.
Bugfixes
- Fixed issue where settings file was improperly imported in some score code files.
v1.10.7
Bugfixes
- Fixed a bug that caused an error when performing SSL verification without a CA bundle specified.
v1.10.6
Improvements
- Refactor
tasks.pyto utilizesasctl.pzmmfunctions. - Add
model_infoclass to better capture model information.