Wsknn

Latest version: v1.2.3

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

Scan your dependencies

Page 2 of 3

0.1.5

- updated session selection algorithm, added `weighted_events` parameter that allows to weight the closest neighbours by the vector of weights,
- new tutorial with comparison of a different recommendation settings,
- updated documentation.

0.1.4

- updated scoring selection,
- package is stable.

0.1.4.dev2

- added `return_events_from_session` parameter to force algorithm to return items the same as in a given session if there are no other neighbors,
- `recommend()` method resets settings if provided (instead of `fit()`).

0.1.4.dev1

- `predict` method changed to `recommend`, accepts only List of Lists as the input,
- refactored scoring,
- added `recommend_any` parameter to force algorithm to return k-recommendations. If there is less than k recommendations, and this parameter is set to `True`, then algorithm returns missing products from the product pool at random,
- added `.dev` suffix to package version, to pinpoint the fact that package is still unstable.

0.1.3.post1

- Changed API with metrics.
- Fit method takes hyperparameters.
- Changed API for precision calculation.
- Session slicing bug corrected.

0.1.3

- Make predictions from the List of user actions,
- Include required event in the `predict` method parameters,
- Let user decide if scores are calculated from a sliding window or fixed-length size window (the latter protects from the counting the same results multiple times).

Page 2 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.