-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Andrew Fowlie
committed
Jun 27, 2023
1 parent
70c0848
commit ad1fb97
Showing
1 changed file
with
46 additions
and
0 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,46 @@ | ||
More examples | ||
============= | ||
|
||
Motorcyle data | ||
^^^^^^^^^^^^^^ | ||
|
||
This is a classic dataset featuring unknown heteroscedastic noise. | ||
|
||
.. figure:: ../../example/motorcycle_data.png | ||
:scale: 70% | ||
:align: center | ||
:alt: Motorcycle dataset | ||
|
||
Motorcycle dataset. | ||
|
||
The noise increases near 10 and 30. We model it with our TGP. | ||
|
||
.. literalinclude:: ../../example/motorcycle.py | ||
:language: python | ||
|
||
The result correctly models the heteroscedastic noise in the distinct regions. | ||
|
||
.. figure:: ../../example/motorcycle_tgp.png | ||
:scale: 70% | ||
:align: center | ||
:alt: TGP model | ||
|
||
TGP model of motorcyle dataset. The grey bars show the locations of partitions. | ||
|
||
|
||
Step-functions | ||
^^^^^^^^^^^^^^ | ||
|
||
The data contains step-functions, which ordinary GPs struggle with. | ||
|
||
.. literalinclude:: ../../example/step_functions.py | ||
:language: python | ||
|
||
The step is modeled appropriately by the TGP: | ||
|
||
.. figure:: ../../example/step_functions_tgp.png | ||
:scale: 70% | ||
:align: center | ||
:alt: TGP model | ||
|
||
TGP model of step functions. The grey bars show the locations of partitions. |