Model-tuner

Latest version: v0.0.20a0

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

Scan your dependencies

Page 2 of 3

0.0.14a

In previous versions, the `train_val_test_split` method allowed for stratification either by y (`stratify_y`) or by specified columns (`stratify_cols`), but not both at the same time. There are use cases where stratification by both the target variable (y) and specific columns is necessary to ensure a balanced and representative split across different data segments.

**Enhancement**

Modified the `train_val_test_split` method to support simultaneous stratification by both `stratify_y` and `stratify_cols`. This was inside the method achieved by implementing the following logic that ensures both y and the specified columns are considered during the stratification process.

python

stratify_key = pd.concat([X[stratify_cols], y], axis=1)

strat_key_val_test = pd.concat(
[X_valid_test[stratify_cols], y_valid_test], axis=1
)

0.0.13a

- Updated bootstrapper
- `evaluate_bootstrap_metrics`
- Added `notebooks/xgb_early_bootstrap_test.py` to test it
- Updated `requirements.txt` file for dev testing
- Fixed sampling error on low number of samples inside bootstrapper

0.0.12a

- `Xgboost` bug fixes
- Zenodo updates
- Pickle model fixes with `np` import
- `ADASYN` and `SMOTE` fix with no fit happening when calibrating

0.0.11a

- updated readme for `PyPI`
- previous version not saved on setup; re-release to 0.0.11a

0.0.10a

- updated readme for `PyPI`

0.0.09a

- number of estimators now extracted from `XGBoost` model object
- early stopping fixed

Page 2 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.