Appelpy

Latest version: v0.4.2

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

Scan your dependencies

Page 1 of 2

0.4.0

:warning: Changes since last version:
- `model_selection_stats` attribute for models now has keys in snake case format.
- Functions for test statistics, e.g. heteroskedaticity test, now return dictionary instead of tuple so that the output is more explicit. More info is returned now in the output (e.g. degrees of freedom and distribution). Keys will be consistent across test functions.
- `rvp_plot` and `rvf_plot` now function as intended.

:tada: New features:
- Wald test function for joint hypothesis testing with native Python data structures
- Residual vs predictor plot (the rvp_plot) implemented properly
- Support for covariance keyword arguments (e.g. specify group column for cluster standard errors).
- `X_list` attribute for model objects

0.3.1

⚠️Changes since last version:
- Fix for one-regressor models: more robust predict method for linear models and Logit; X attribute for Logit is a dataframe
- Note: the predict method for models requires Numpy array of shape ( examples, regressors)
- Improve test coverage

0.3.0

⚠️Changes since last version:
- **Fluent interface for classes:** OLS, WLS, Logit & BadApples objects now require a `fit` call in order to do calculations. DummyEncoder and InteractionEncoder objects now have a `transform` method for returning dataframes with encoded columns, instead of the encode method (the dictionary parameters in the old encode method now sit in the object initialization).

For example:
- OLS models are now set up via the `model = OLS(df, y_list, X_list).fit()` pattern.
- DummyEncoder output dataframes can be set up via the `df_transformed = DummyEncoder(df, categorical_col_base_levels).transform()` pattern.

🎉 New features:
- `get_dataframe_columns_diff` utils function for returning diff between two dataframes' columns. columns_added and columns_removed attributes have been removed from encoder objects as this is a more general way of comparing dataframes during the pre-processing.
- Partial regression plot function handles case where regressor is already in dataframe.

0.2.1

⚠️ Fixes and changes since last version (with more extensive test coverage):
- Fix studentized residuals (now `resid_studentized`) and make available only for OLS
- Make weight attributes consistent for OLS and WLS
- Fix types for plot functions so that they return Figure instances
- Fix calculation of variance in `statistical_moments` function

🎉 Bonus feature:
- `breusch_pagan_studentized` option for heteroskedasticity test

0.2.0

⚠️ Major API changes since last version:
- Attributes of model objects that end in ‘_model’ no longer have that suffix, e.g. ‘X_model’ becomes ‘X’, ‘resid_model’ becomes ‘resid’. If model objects are given the ‘model’ name this makes text more parsimonious: model.resid is more pleasing than model.resid_model.
- Observations with NaN values are no longer dropped before modelling. Errors are now raised where the model dataset has any of these cases: NaN values; +inf or -inf values; string data; Pandas Category dtype.
- Fix: Jinja2 now a clear requirement (has been used for pd.Styler in standardized estimates)
- API now supports Python 3.6 or higher. Updates to dependencies.

🎉 New features:
- Partial regression plot
- Print statements for model fitting are now an optional parameter

0.1.1

Minor updates
- Add tests for features (replicate results from easily accessible datasets)
- significant_regressors fix

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.