Ktrain

Latest version: v0.41.3

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

Scan your dependencies

Page 19 of 29

0.15.3

New:
- N/A

Changed
- [**breaking change**] The `multilabel` argument in `text.Transformer` constructor was moved to `Transformer.get_classifier` and now correctly allows
users to forcibly configure model for multilabel task regardless as to what data suggests. However, it is recommended to leave this value as `None`.
- The methods `predictor.save`, `ktrain.load_predictor`, `learner.save_model`, `learner.load_model` all now accept a path to folder where
all files (e.g., model file, `.preproc` file) will be saved. If path does not exist, it will be created.
This should not be a breaking change as the `load*` methods will still look for files in the old location if model or predictor was saved
using an older version of *ktrain*.

Fixed:
- N/A

0.15.2

New:
- N/A

Changed
- Added `n_samples` argument to `TextPredictor.explain` to address slowness of `explain` on Google Colab
- Lock to version 0.21.3 of `scikit-learn` to ensure old-style explanations are generated from `TextPredictor.explain`

Fixed:
- added missing `import pickle` to ensure saved topic models can be loaded

0.15.1

New:
- N/A

Changed
- Changed `Transformer.preprocess*` methods to accept sentence pairs for sentence pair classification

Fixed:
- N/A

0.15.0

New:
- Out-of-the-box support for image regression
- `vision.images_from_df` function to load image data from *pandas* DataFrames

Changed
- references to `fit_generator` and `predict_generator` converted to `fit` and `predict`

Fixed:
- Resolved issue with multilabel detection returning `False` for valid multilabel problems when data is in form of generator

0.14.7

New:
- Added `TFDataset` class for use as wrapper around arbitrary `tf.data.Dataset` objects for use in *ktrain*

Changed
- Added `NERPreprocessor.preprocess_train_from_conll2003`
- Removed extraneous imports from `text.__init__.py` and `vision.__init__.py`
- `classes` argument in `images_from_array` changed to `class_names`

Fixed:
- ensure NER data is properly prepared `text.ner.learner.validate`
- fixed typo with `df` reference in `images_from_fname`

0.14.6

New:
- If no validation data is supplied to `images_from_array`, training data is split to generate validation data

Changed
- issue warning if Learner cannot save original weights
- `images_from_array` accepts labels in the form of integer class IDs

Fixed:
- fix pandas `SettingwithCopyWarning` from `images_from_csv`
- fixed issue with `return_proba=True` including class labels for multilabel image classification
- resolved issue with class labels not being set correctly in `images_from_array`
- lock to `cchardet==2.1.5` due to [this issue](https://stackoverflow.com/questions/60784527/ktrain-importerror-dll-load-failed-the-specified-module-could-not-be-found)
- fixed `y_from_data` from NumpyArrayIterators in image classification

Page 19 of 29

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.