Ktrain

Latest version: v0.41.3

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

Scan your dependencies

Page 5 of 29

0.32.3

new:
- N/A

changed
- N/A

fixed:
- Changed NMF to accept optional parameters `nmf_alpha_W` and `nmf_alpha_H` based on changes in `scikit-learn==1.2.0`.
- Change `ktrain.utils` to check for TensorFlow before doing a version check, so that **ktrain** can be imported without TensorFlow being installed.

0.32.1

new:
- N/A

changed
- N/A

fixed:
- In TensorFlow 2.11, the `tf.optimizers.Optimizer` base class points the new keras optimizer that seems to have problems. Users should use legacy optimizers in `tf.keras.optimizers.legacy` with **ktrain** (which evidently will never be deleted). This means that, in TF 2.11, supplying a string representation of an optimizer like `"adam"` to `model.compile` uses the new optimizer instead of the legacy optimizers. In these cases, **ktrain** will issue a warning and automatically recompile the model with the default `tf.keras.optimizers.legacy.Adam` optimizer.

0.32.0

new:
- Support for TensorFlow 2.11. For now, as recommended in the [TF release notes](https://github.com/tensorflow/tensorflow/releases/tag/v2.11.0), **ktrain** has been changed to use the legacy optimizers in `tf.keras.optimizers.legacy`. This means that, when compiling Keras models, you should supply `tf.keras.optimizers.legacy.Adam()` instead of the string `"adam"`.
- Support for Python 3.10. Changed references from `CountVectorizer.get_field_names` to `CountVectorizer.get_field_names_out`. Updated supported versions in `setup.py`.

changed
- N/A

fixed:
- fixed error in docs

0.31.10

new:
- N/A

changed
- N/A

fixed:
- Adjusted tika imports due to issue with `/tmp/tika.log` in multi-user scenario

0.31.9

new:
- N/A

changed
- N/A

fixed:
- Adjustment for kwe
- Fixed problem with importing `ktrain` without TensorFlow installed

0.31.8

new:
- N/A

changed
- N/A

fixed:
- Fixed paragraph tokenization in `AnswerExtractor`

Page 5 of 29

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.