Ktrain

Latest version: v0.41.3

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

Scan your dependencies

Page 9 of 29

0.27.2

New:
- N/A

Changed
- N/A

Fixed:
- check for `logits` attribute when predicting using `transformers`
- change raised Exception to warning for longer sequence lengths for `transformers`

0.27.1

New:
- N/A

Changed
- Added `method` parameter to `tabular.causal_inference_model`.

Fixed:
- N/A

0.27.0

New:
- Added `tabular.causal_inference_model` function for causal inference support.

Changed
- N/A

Fixed:
- N/A

0.26.5

New:
- N/A

Changed
- added `query` parameter to `SimpleQA.ask` so that an alternative query can be used to retrieve contexts from corpus
- added `chardet` as dependency for `stellargraph`

Fixed:
- fixed issue with `TopicModel.build` when `threshold=None`

0.26.4

New:
- API documenation index

Changed
- Added warning when a TensorFlow version of selected `transformers` model is not available and the PyTorch version is being downloaded and converted instead using `from_pt=True`.

Fixed:
- Fixed `utils.metrics_from_model` to support alternative metrics
- Check for AUC `ktrain.utils` "inspect" function

0.26.3

New:
- N/A

Changed
- `shallownlp.ner.NER.predict` processes lists of sentences in batches resulting in faster predictions
- `batch_size` argument added to `shallownlp.ner.NER.predict`
- added `verbose` parameter to `ktrain.text.textutils.extract_copy` to optionally see why each skipped document was skipped

Fixed:
- Changed `TextPredictor.save` to save Hugging Face tokenizer files locally to ensure they can be easily reloaded when `text.Transformer` is supplied with local path.
- For `transformers` models, the `predictor.preproc.model_name` variable is automatically updated to be new `Predictor` folder to avoid having users manually update `model_name`. Applies
when a local path is supplied to `text.Transformer` and resultant `Predictor` is moved to new machine.

Page 9 of 29

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.