Ktrain

Latest version: v0.41.3

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

Scan your dependencies

Page 21 of 29

0.13.2

New:
- N/A

Changed
- `TransformerSummarizer` accepts BART `model_name` as parameter


Fixed:
- N/A

0.13.1

New:
- support for link prediction with graph neural networks
- text summarization with pretrained BART (included in 0.13.1 but not in 0.13.0)
- `bigru` method now selects pretrained word vectors based on detected language

Changed
- instead of throwing error, default to English if `detect_lang` could not detect language from batch of texts
- `layers` argument moved to `TransformerEmbedding` constructor
- enforce specific version of TensorFlow due to undocumented breaking changes in newer TF versions
- `AdamWeightDecay` optimizer is now used to support global weight decay. Used when user
excplictly sets a weight decay


Fixed:
- force re-instantiation of `TransformerEmbedding` object with `sequence_tagger` function is re-invoked

0.12.3

New:
- Added `max_momentum` and `min_momentum` parameters to `autofit` and `fit_onecycle` to control cyclical momentum

Changed
- Prevent loading errors of previously saved NERPreprocessor objects


Fixed:
- N/A

0.12.2

New:
- N/A

Changed
- Require at least TensorFlow 2.1.0 is installed in `setup.py` due to TF 2.0.0 bug with `lr_find`
- Added lower bounds to scikit-learn and networkx versions


Fixed:
- N/A

0.12.1

New:
- N/A

Changed
- N/A


Fixed:
- check and ensure AllenNLP is installed when Elmo embeddings are selected for NER

0.12.0

New:
- BERT and Elmo embeddings for NER and other downstream tasks

Changed
- `wv_path_or_url` parameter moved from `entities_from*` to `sequence_taggers`
- Added `use_char` parameter and ensure it is not used unless `DISABLE_V2_BEHAVIOR` is enabled:
- `batch_size` argument added to `get_predictor` and `load_predictor`
- `eval_batch_size` argument added to `get_learner`
- added `val_pct` argument to `entities_from_array`


Fixed:
- properly set threshold in `text.eda` (PR 99)
- fixed error when no validation data is supplied to `entities_from_array`

Page 21 of 29

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.