Sasctl

Latest version: v1.10.3

Safety actively analyzes 626983 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 9

1.9.2

----------
**Improvements**
- Add recursive folder creation and an example.
- Add example for migrating models from SAS Viya 3.5 to SAS Viya 4.

**Bugfixes**
- Fixed improper json encoding for `pzmm_h2o_model_import.ipynb` example.
- Set urllib3 < 2.0.0 to allow requests to update their dependencies.
- Set pandas >= 0.24.0 to include df.to_list alias for df.tolist.
- Fix minor errors in h2o score code generation

1.9.1

----------
**Improvements**
- Updated handling of H2O models in `sasctl.pzmm`.
- Models are now saved with the appropriate `h2o` functions within the `sasctl.pzmm.PickleModel.pickle_trained_model` function.
- Example notebooks have been updated to reflect this change.

**Bugfixes**
- Added check for `sasctl.pzmm.JSONFiles.calculate_model_statsistics` function to replace float NaN values invalid for JSON files.
- Fixed issue where the `sasctl.pzmm.JSONFiles.write_model_properties` function was replacing the user-defined model_function argument.
- Added NpEncoder class to check for numpy values in JSON files. Numpy-types cannot be used in SAS Viya.

1.9.0

----------
**Improvements**
- `sasctl.pzmm` refactored to follow PEP8 standards, include type hinting, and major expansion of code coverage.
- `sasctl.pzmm` functions that can generate files can now run in-memory instead of writing to disk.
- Added custom KPI handling via `pzmm.model_parameters`, allowing users to interact with the KPI table generated by model performance via API.
- Added a method for scikit-learn models to generate hyperparameters as custom KPIs.
- Reworked the `pzmm.write_score_code()` logic to appropriately write score code for binary classification, multi-class classification, and regression models.
- Updated all examples based on `sasctl.pzmm` usage and model assets.
- Examples from older versions moved to `examples/ARCHIVE/vX.X`.
- DataStep or ASTORE models can include additional files when running `tasks.register_model()`.

**Bugfixes**
- Fixed an issue where invalid HTTP responses could cause an error when using `Session.version_info()`.

1.8.2

-------------------
**Improvements**
- `folders.get_folder()` can now handle folder paths and delegates (e.g. public).

**Bugfixes**
- Fixed an issue with `model_management.execute_model_workflow_definition()` where input values for
workflow prompts were not correctly submitted. Note that the `input=` parameter was renamed to
`prompts=` to avoid conflicting with the built-in `input()`.
- Fixed an issue with `pzmm.importModel.model_exists()` where project versions were incorrectly
compared, resulting in improper behavior when the project version already existed.
- Better handling for invalid project versions included.

1.8.1

----------
**Changes**
- Adjusted workflow for code coverage reporting. Prepped to add components in next release.
- Added `generate_requirements_json.ipynb` example.

**Bugfixes**
- Fixed improper math.fabs use in `sasctl.pzmm.writeJSONFiles.calculateFitStat()`.
- Fixed incorrect ast node walk for module collection in `sasctl.pzmm.writeJSONFiles.create_requirements_json()`.

1.8.0

-------------------
**Improvements**
- Added `Session.version_info()` to check which version of Viya the session is connected to.
- Updated the `properties=` parameter of `model_repository.create_model()` to accept a dictionary containing
custom property names and values, and to correctly indicate their type (numeric, string, date, datetime) when
passing the values to Viya.
- Added `services.saslogon` for creating and removing OAuth clients.
- Added `pzmm.JSONFiles.create_requirements_json()` to create the requirements.json file for model deployment
to containers based on the user's model assets and Python environment.

**Changes**
- Deprecated `core.platform_version()` in favor of `Session.version_info()`.
- A `RuntimeError` is now raised if an obsolete service is called on a Viya 4 session (sentiment_analysis,
text_categorization, and text_parsing)
- Replaced the JSON cassettes used for testing with compressed binary cassettes to save space.
- Updated the testing framework to allow regression testing of multiple Viya versions.
- Refactored the authentication functionality in `Session` to be more clear and less error prone. Relevant
functions were also made private to reduce clutter in the class's public interface.
- Began refactor for `sasctl.pzmm` to adhere to PEP8 guidelines and have better code coverage.

**Bugfixes**
- Fixed an issue with `register_model()` that caused invalid SAS score code to be generated when registering an
ASTORE model in Viya 3.5.
- Fixed a bug where calling a "get_item()" function and passing `None` would throw an error on most services instead
of returning `None`.
- Fixed a bug that caused the authentication flow to be interrupted if Kerberos was missing.

Page 2 of 9

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.