Formulae

Latest version: v0.5.3

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

Scan your dependencies

Page 2 of 3

0.3.2

Maintenance and fixes

- Fixed a bug in `CategoricalBox` because it failed to convert categorical series to numpy arrays. Now it works. (72)

0.3.1

Maintenance and fixes

- Renamed `ResponseVector` to `ResponseMatrix` (71)
- Renamed `design_vector` to `design_matrix` in `ResponseMatrix`(71)
- Updated docstrings in `formulae/matrices.py` (71)

Deprecation

- Removed `binary` and `success` attributes from `ResponseMatrix` (71)

0.3.0

New features

- We can create our own encodings such as Treatment or Sum encoding. These are subclasses of `Encoding`.
- Added two aliases `T` and `S` that are shorthands of `C(var, Treatment)` and `C(var, Sum)` respectively.
- DesignVector, CommonEffectsMatrix and GroupEffectsMatrix now retrieve their values when passed to `np.array()` and `np.asarray()`.
- Add `poly()` stateful transform.
- `na_action` in `design_matrices()` can be `"pass"` which means not to drop or raise error about missing values. It just keeps them (69)
- `design_matrices()` gains a new argument `extra_namespace`. It allows us to pass a dictionary of transformations that are made available in the environment where the formula is evaluated (70)

Maintenance and fixes

- Fixed a bug in the addition of lower order terms when the original higher order term wasn't full-rank.
- Columns for categorical terms are integer by default. They are casted to float only if there are other float-valued columns in the design matrix.
- Updated __str__ and __repr__ methods of `ResponseVector`, `CommonEffectsMatrix`, and `GroupEffectsMatrix`.
- Added __str__ and __repr__ methods for `DesignMatrices`.
- Added __get_item__ method for `DesignMatrices`.
- Added support for comparison operators within function calls.

0.2.0

- Added `bs()`, a stateful transformation for basis splines (52)
- Subset notation in response terms can now be an identifier. It is interpreted as a string (52)
- `True`, `False` and `None` are correctly evaluated in function calls arguments now (53)
- The `.set_type()` on each term used to be called twice. Now we call it once (53)
- Added the function `get_function_from_module()`. Now we don't use Python's `eval()` anymore (53)

0.1.4

- Revert changes back to v0.1.2

0.1.3

- Revert changes back to v0.1.1

Page 2 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.