Sam

Latest version: v5.0.0

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

Scan your dependencies

Page 11 of 13

2.0.8

Bugfixes
- `sam.validation.create_validation_pipe`: the imputation part is now correctly applied only to the `cols` columns in the df
- `sam.metrics.train_mean_r2`: now only adds non-nan values in np.arrays (previously would return nan R2)

2.0.7

Changes
- `sam.visualization.quantile_plot`: now accepts custom outliers with 'outlier' argument

Bugfixes
- `sam.visualization.quantile_plot`: now correctly shifts y_hat with predict_ahead

2.0.6

New functions
- New function: `sam.metrics.train_mean_r2` that evaluates r2 based on the train set mean
- New function: `sam.visualization.performance_evaluation_fixed_predict_ahead` that evaluates model performance with certain predict ahead.

2.0.5

Changes
- `sam.feature_engineering.automatic_rolling_engineering` now has new argument 'onehots'. The argument 'add_time_features' is now removed, as 'cyclicals' and 'onehots' now together make up both timefeatures

2.0.4

Changes
- `sam.feature_engineering.decompose_datetime` 'components' argument now support 'secondofday'

2.0.3

Changes
- `sam.visualization.quantile_plot` 'score' argument changed to 'title' to enhance generalizability

Page 11 of 13

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.