Skip to content

Commit

Permalink
Merge pull request #4 from godatadriven/dev
Browse files Browse the repository at this point in the history
Add details about uncertainty
  • Loading branch information
JasperHG90 authored Jan 5, 2021
2 parents 9d50b19 + 31544b1 commit 999b2f4
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ For additional examples, see the 'tests' and 'notebooks' folders.
## Creating your own model with Piven layer

You can use a Piven layer on any neural network architecture. The authors of the Piven paper use it on top of
a bunch of [CNN layers](https://github.com/elisim/piven/blob/master/imdb/main.py) to predict people's age.
[a pre-trained CNN](https://github.com/elisim/piven/blob/master/imdb/main.py) to predict people's age.

Suppose that you want to create an Model with a Piven output layer. Because this module uses the
[KerasRegressor](https://www.tensorflow.org/api_docs/python/tf/keras/wrappers/scikit_learn/KerasRegressor) wrapper
Expand Down Expand Up @@ -168,4 +168,22 @@ shrinks down to 0, you will observe smaller PI at the cost of lower coverage.
solver.

The default settings are those used by the paper's authors. You should probably leave them as they are unless you
know what you are doing. For further details, see pp. 4-5 of the paper cited above.
know what you are doing. For further details, see [1, pp. 4-5].

## Details: uncertainty

In statistics/ML, uncertainty is often subdivided into 'aleatoric' and 'epistemic' uncertainty. The former is associated
with randomness in the sense that any experiment that is not deterministic shows variability in its outcomes. The latter
type is associated with a lack of knowledge about the best model. Unlike aleatoric uncertainty, epistemic uncertainty
can be reduced by acquiring more information. [2].

Prediction intervals are always wider than confidence intervals, since confidence intervals try to capture epistemic
uncertainty only whereas prediction intervals seek to capture both types. See pages 2 and 5 in [1] for a discussion
on quantifying uncertainty.

## References

[1] Simhayev, Eli, Gilad Katz, and Lior Rokach. "PIVEN: A Deep Neural Network for Prediction Intervals with Specific Value Prediction." arXiv preprint arXiv:2006.05139 (2020).

[2] Hüllermeier, Eyke, and Willem Waegeman. "Aleatoric and epistemic uncertainty in machine learning: A tutorial introduction." arXiv preprint arXiv:1910.09457 (2019).

0 comments on commit 999b2f4

Please sign in to comment.