Ktrain

Latest version: v0.41.3

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

Scan your dependencies

Page 23 of 29

0.9.4

New:
- N/A

Changed:
- changed pandas dependency to `>=1.0.1` due to bug in pandas 1.0

Fixed:
- N/A

0.9.3

New:
- N/A

Changed:
- Transformed data containers for transformers, NER, and graph -node classification to be
instances of `ktrain.data.Dataset`.

Fixed:
- fixed `images_from_array` so that y labels are correctly 1-hot-encoded when necessary
- correct tokenization for `bert-base-japanese` Transformer models from PR 57

0.9.2

New:
- N/A

Changed:
- Removed Exception when `distilbert` is selected in `text_classifier` for non-English language after
[Hugging Face fixed the reported bug](https://github.com/huggingface/transformers/issues/2462).

Fixed:
- XLNet models like `xlnet-base-cased` now works after casting input arrays to `int32`
- modified `TextPredictor.explain` to propogate correct error message from `eli5` for multilabel text classification.

0.9.1

New:
- N/A

Changed:
- N/A

Fixed:
- fixed `utils.nclasses_from_data` for `ktrain.Dataset` instances
- prevent `detect_lang` failing when Pandas Series is supplied

0.9.0

New:
- support for out-of-the-box text regression in both the `Transformer` API and conventional API (i.e., `text.text_regression_model`).

Changed:
- `text.TextPreprocessor` prints sequence length statistics

Fixed:
- auto-detect language when using `Transformer` class to prevent printing `en` as default

0.8.3

New:
- N/A

Changed:
- `MultiArrayDataset` accepts list of Numpy arrays

Fixed:
- fixed incorrect activation in `TextPredictor` for multi-label Transformer models
- fixed `top_losses` for regression tasks

Page 23 of 29

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.