-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from Kaleidophon/demo
Demo
- Loading branch information
Showing
78 changed files
with
7,374 additions
and
1,037 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
## 1.0.0 | ||
|
||
- Massive changes to repository structure, including restructuing of APIs and bug fixes. See the points below: | ||
- Demo notebook added, showcasing some common use cases. Take a look [here](https://github.com/Kaleidophon/nlp-uncertainty-zoo/blob/main/demo.ipynb) or [here](https://colab.research.google.com/drive/1-Pl5lvcnpbGL2ZXLGDDNqvJB7Ew8uIsS?usp=sharing). | ||
- API changes: | ||
- Instead of using a `model_params` dict when initializing a `Model` subclass, the necessary model arguments are spelled out | ||
explicitly, similarly to the API of scikit-learn` models. Furthermore, reasonable default values are set for most model parameters. | ||
- The `Module` class implements additional functionalities: | ||
- An `available_uncertainty_metrics` attribute gives some information about available uncertainty metrics, mapping from their names to their functions. | ||
- `get_sequence_representation()` was renamed to `get_sequence_representation_from_hidden()`. This was done to distinguish it from the new `get_sequence_classification()` function, which retrieves sequence representation directly from the inputs. | ||
- `get_hidden_representation()` defines how to obtain hidden representations from an input. | ||
- An explicit function called `compute_loss_weights()` was added to the `Model` class to allow to customize loss weights for unbalanced problems. | ||
- BERT-related models now have a `bert_class` argument, that allow the underlying model to be changed to a RoBERTa, DistilBert or similar model.' | ||
- Split `utils.uncertainty_eval` into `utils.uncertainty_eval` and `utils.calibration_eval`. | ||
- There are now explicit functions to evaluate calibration and uncertainty properties on model, specified in `utils.uncertainty_eval.evaluate_uncertainty()` and `utils.calibration_eval.evaluate_calibration()`. | ||
- Bug fixes: | ||
- Changing batch size during inference won't produce shape errors for LSTM models anymore. | ||
|
||
|
||
## 0.9.2 | ||
|
||
- Fix import issues concerning the `transformers` and `protobuf` packages mentioned in issues [#8](https://github.com/Kaleidophon/nlp-uncertainty-zoo/issues/8) and [#9](https://github.com/Kaleidophon/nlp-uncertainty-zoo/issues/9). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+921 Bytes
(100%)
docs/_build/doctrees/nlp_uncertainty_zoo.models.bayesian_lstm.doctree
Binary file not shown.
Binary file modified
BIN
+37.1 KB
(180%)
docs/_build/doctrees/nlp_uncertainty_zoo.models.bert.doctree
Binary file not shown.
Binary file modified
BIN
+5.04 KB
(110%)
docs/_build/doctrees/nlp_uncertainty_zoo.models.ddu_transformer.doctree
Binary file not shown.
Binary file modified
BIN
+3.86 KB
(100%)
docs/_build/doctrees/nlp_uncertainty_zoo.models.dpp_transformer.doctree
Binary file not shown.
Binary file modified
BIN
+8.54 KB
(110%)
docs/_build/doctrees/nlp_uncertainty_zoo.models.lstm.doctree
Binary file not shown.
Binary file modified
BIN
+17.1 KB
(120%)
docs/_build/doctrees/nlp_uncertainty_zoo.models.lstm_ensemble.doctree
Binary file not shown.
Binary file modified
BIN
+31 KB
(120%)
docs/_build/doctrees/nlp_uncertainty_zoo.models.model.doctree
Binary file not shown.
Binary file modified
BIN
+9.76 KB
(110%)
docs/_build/doctrees/nlp_uncertainty_zoo.models.sngp_transformer.doctree
Binary file not shown.
Binary file modified
BIN
+1.27 KB
(100%)
docs/_build/doctrees/nlp_uncertainty_zoo.models.spectral.doctree
Binary file not shown.
Binary file modified
BIN
+969 Bytes
(100%)
docs/_build/doctrees/nlp_uncertainty_zoo.models.st_tau_lstm.doctree
Binary file not shown.
Binary file modified
BIN
+9.51 KB
(120%)
docs/_build/doctrees/nlp_uncertainty_zoo.models.transformer.doctree
Binary file not shown.
Binary file modified
BIN
+9.82 KB
(110%)
docs/_build/doctrees/nlp_uncertainty_zoo.models.variational_lstm.doctree
Binary file not shown.
Binary file modified
BIN
+3.83 KB
(100%)
docs/_build/doctrees/nlp_uncertainty_zoo.models.variational_transformer.doctree
Binary file not shown.
Binary file modified
BIN
+90.4 KB
(710%)
docs/_build/doctrees/nlp_uncertainty_zoo.utils.data.doctree
Binary file not shown.
Binary file modified
BIN
+2.67 KB
(120%)
docs/_build/doctrees/nlp_uncertainty_zoo.utils.task_eval.doctree
Binary file not shown.
Binary file modified
BIN
-29.1 KB
(61%)
docs/_build/doctrees/nlp_uncertainty_zoo.utils.uncertainty_eval.doctree
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Sphinx build info version 1 | ||
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. | ||
config: f61e5bc8c4291e3961dccbf4275f2c58 | ||
config: 18c43478377692087fcbbbfc8f44aceb | ||
tags: 645f666f9bcd5a90fca523b33c5a78b7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.