Tpcp

Latest version: v2.0.0

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

Scan your dependencies

Page 4 of 9

0.26.1

Fixed

- The testing modules are now registered as pytest files, which should result in verbose assert statements, making
debugging easier.

0.26.0

Added

- TypedIterator (https://github.com/mad-lab-fau/tpcp/pull/100): A new helper that makes iterating over things and accumulating results much easier.

Changed

- Improved typing of "safe" decorators (https://github.com/mad-lab-fau/tpcp/pull/100).
This should fix wrong IDE typehints.
- Now using py39 type typehints

0.25.1

Fixed

- Ignored names in the testing mixin are now correctly ignored both-ways.
I.e. it allows to document additional parameters as well, not just leave out parameters.

0.25.0

Added

- The Scorer class now has the ability to score datapoints in parallel.
This can be enabled by setting the `n_jobs` parameter of the `Scorer` class to something larger than 1.
(https://github.com/mad-lab-fau/tpcp/pull/95)
- The `PyTestSnapshotTest` class does now support comparing dataframes with datetime columns.
(https://github.com/mad-lab-fau/tpcp/pull/97)
- The `validate` function was introduced to enable validation of an algorithm on arbitrary data without parameter
optimization.
(https://github.com/mad-lab-fau/tpcp/pull/99)
- Fixed the bug that the functions `optimize` and `cross_validate` were crashing when `progress_bar` was deactivated.
- New example about caching.
(https://github.com/mad-lab-fau/tpcp/pull/98)

Changed

- In line with numpy and some other packages, we drop Python 3.8 support

0.24.0

For all changes in this release see: https://github.com/mad-lab-fau/tpcp/pull/85

Deprecated

- The properties `group` and `groups` of the `Dataset` class are deprecated and will be removed in a future
release.
They are replaced by the `group_label` and `group_labels` properties of the `Dataset` class.
This renaming was done to make it more clear that these properties return the labels of the groups and not the
groups themselves.
- The `create_group_labels` method of the `Dataset` class is deprecated and will be removed in a future release.
It is replaced by the `create_string_group_labels` method of the `Dataset` class.
This renaming was done to avoid confusion with the new names for `groups` and `group`

Added

- Added `index_as_tuples` method to the `Dataset` class.
It returns the full index of the dataset as a list of named tuples regardless of the current grouping.
This might be helpful to extract the label information of a datapoint, when `group` requires to handle multiple cases,
as your code expects the dataset in different grouped versions.

Changed

- **BREAKING CHANGE (with Deprecation)**: The `group` property of the `Dataset` class is now called `group_label`.
- **BREAKING CHANGE**: The `group_label` property now always returns named tuples of strings
(even for single groups where it used to return strings!).
- **BREAKING CHANGE (with Deprecation)**: The `groups` property of the `Dataset` class is now called `group_labels`.
- **BREAKING CHANGE**: The `group_labels` property always returns a list of named tuples of strings
(even for single groups where it used to return a list of strings!).
- **BREAKING CHANGE**: The parameter `groups` of the `get_subset` method of the `Dataset` class is now called
`group_labels` and always expects a list of named tuples of strings.

0.23.0

Added
- We migrated some testing utilities from other libraries to tpcp and exposed some algorithm test helper
that previously only existed in the tests folder via the actual tpcp API.
This should make testing algorithms and pipelines developed with tpcp easier.
These new features are now available in the `tpcp.testing` module.
(https://github.com/mad-lab-fau/tpcp/pull/89)

Page 4 of 9

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.