Skip to content

Commit

Permalink
Release v0.3.4; add example 08 Multi Likelihood Classification
Browse files Browse the repository at this point in the history
  • Loading branch information
tdewolff committed May 3, 2023
1 parent ae777b9 commit 5d6df7d
Show file tree
Hide file tree
Showing 30 changed files with 15,537 additions and 412 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ Implemented likelihoods:

**[07 - Sparse Multi Input](https://games-uchile.github.io/mogptk/examples.html?q=07_Sparse_Multi_Input)** Use 8 input dimensions to train the Abalone data set using sparse GPs.

**[08 - Multi Likelihood Classification](https://games-uchile.github.io/mogptk/examples.html?q=08_Multi_Likelihood_Classification)** Use a different likelihood for each channel, one Bernoulli for classification and one StudentT's for regression.

## Examples

**[Airline passengers](https://games-uchile.github.io/mogptk/examples.html?q=example_airline_passengers)**: Regression using a single output spectral mixture on the yearly number of passengers of an airline.
Expand Down
64 changes: 32 additions & 32 deletions docs/data.html

Large diffs are not rendered by default.

54 changes: 27 additions & 27 deletions docs/dataset.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ <h1 class="title">Module <code>mogptk.dataset</code></h1>
<details class="source">
<summary>
<span>Expand source code</span>
<a href="https://github.com/GAMES-UChile/mogptk/blob/c4bfff1375a348c212618334e3ccb413bc873e0d/mogptk/dataset.py#L1-L719" class="git-link">Browse git</a>
<a href="https://github.com/GAMES-UChile/mogptk/blob/ae777b90752156fccdebbbca47263d68264ef6f1/mogptk/dataset.py#L1-L719" class="git-link">Browse git</a>
</summary>
<pre><code class="python">import copy

Expand Down Expand Up @@ -786,7 +786,7 @@ <h2 id="examples">Examples</h2>
<details class="source">
<summary>
<span>Expand source code</span>
<a href="https://github.com/GAMES-UChile/mogptk/blob/c4bfff1375a348c212618334e3ccb413bc873e0d/mogptk/dataset.py#L9-L32" class="git-link">Browse git</a>
<a href="https://github.com/GAMES-UChile/mogptk/blob/ae777b90752156fccdebbbca47263d68264ef6f1/mogptk/dataset.py#L9-L32" class="git-link">Browse git</a>
</summary>
<pre><code class="python">def LoadCSV(filename, x_col=0, y_col=1, y_err_col=None, name=None, **kwargs):
&#34;&#34;&#34;
Expand Down Expand Up @@ -842,7 +842,7 @@ <h2 id="examples">Examples</h2>
<details class="source">
<summary>
<span>Expand source code</span>
<a href="https://github.com/GAMES-UChile/mogptk/blob/c4bfff1375a348c212618334e3ccb413bc873e0d/mogptk/dataset.py#L34-L127" class="git-link">Browse git</a>
<a href="https://github.com/GAMES-UChile/mogptk/blob/ae777b90752156fccdebbbca47263d68264ef6f1/mogptk/dataset.py#L34-L127" class="git-link">Browse git</a>
</summary>
<pre><code class="python">def LoadDataFrame(df, x_col=0, y_col=1, y_err_col=None, name=None):
&#34;&#34;&#34;
Expand Down Expand Up @@ -984,7 +984,7 @@ <h2 id="examples">Examples</h2>
<details class="source">
<summary>
<span>Expand source code</span>
<a href="https://github.com/GAMES-UChile/mogptk/blob/c4bfff1375a348c212618334e3ccb413bc873e0d/mogptk/dataset.py#L133-L719" class="git-link">Browse git</a>
<a href="https://github.com/GAMES-UChile/mogptk/blob/ae777b90752156fccdebbbca47263d68264ef6f1/mogptk/dataset.py#L133-L719" class="git-link">Browse git</a>
</summary>
<pre><code class="python">class DataSet:
&#34;&#34;&#34;
Expand Down Expand Up @@ -1597,7 +1597,7 @@ <h2 id="examples">Examples</h2>
<details class="source">
<summary>
<span>Expand source code</span>
<a href="https://github.com/GAMES-UChile/mogptk/blob/c4bfff1375a348c212618334e3ccb413bc873e0d/mogptk/dataset.py#L304-L320" class="git-link">Browse git</a>
<a href="https://github.com/GAMES-UChile/mogptk/blob/ae777b90752156fccdebbbca47263d68264ef6f1/mogptk/dataset.py#L304-L320" class="git-link">Browse git</a>
</summary>
<pre><code class="python">def aggregate(self, duration, f=np.mean):
&#34;&#34;&#34;
Expand Down Expand Up @@ -1634,7 +1634,7 @@ <h2 id="examples">Examples</h2>
<details class="source">
<summary>
<span>Expand source code</span>
<a href="https://github.com/GAMES-UChile/mogptk/blob/c4bfff1375a348c212618334e3ccb413bc873e0d/mogptk/dataset.py#L232-L256" class="git-link">Browse git</a>
<a href="https://github.com/GAMES-UChile/mogptk/blob/ae777b90752156fccdebbbca47263d68264ef6f1/mogptk/dataset.py#L232-L256" class="git-link">Browse git</a>
</summary>
<pre><code class="python">def append(self, arg):
&#34;&#34;&#34;
Expand Down Expand Up @@ -1676,7 +1676,7 @@ <h2 id="examples">Examples</h2>
<details class="source">
<summary>
<span>Expand source code</span>
<a href="https://github.com/GAMES-UChile/mogptk/blob/c4bfff1375a348c212618334e3ccb413bc873e0d/mogptk/dataset.py#L258-L268" class="git-link">Browse git</a>
<a href="https://github.com/GAMES-UChile/mogptk/blob/ae777b90752156fccdebbbca47263d68264ef6f1/mogptk/dataset.py#L258-L268" class="git-link">Browse git</a>
</summary>
<pre><code class="python">def copy(self):
&#34;&#34;&#34;
Expand Down Expand Up @@ -1713,7 +1713,7 @@ <h2 id="examples">Examples</h2>
<details class="source">
<summary>
<span>Expand source code</span>
<a href="https://github.com/GAMES-UChile/mogptk/blob/c4bfff1375a348c212618334e3ccb413bc873e0d/mogptk/dataset.py#L287-L302" class="git-link">Browse git</a>
<a href="https://github.com/GAMES-UChile/mogptk/blob/ae777b90752156fccdebbbca47263d68264ef6f1/mogptk/dataset.py#L287-L302" class="git-link">Browse git</a>
</summary>
<pre><code class="python">def filter(self, start, end, dim=None):
&#34;&#34;&#34;
Expand Down Expand Up @@ -1754,7 +1754,7 @@ <h2 id="examples">Examples</h2>
<details class="source">
<summary>
<span>Expand source code</span>
<a href="https://github.com/GAMES-UChile/mogptk/blob/c4bfff1375a348c212618334e3ccb413bc873e0d/mogptk/dataset.py#L374-L394" class="git-link">Browse git</a>
<a href="https://github.com/GAMES-UChile/mogptk/blob/ae777b90752156fccdebbbca47263d68264ef6f1/mogptk/dataset.py#L374-L394" class="git-link">Browse git</a>
</summary>
<pre><code class="python">def get(self, index):
&#34;&#34;&#34;
Expand Down Expand Up @@ -1808,7 +1808,7 @@ <h2 id="examples">Examples</h2>
<details class="source">
<summary>
<span>Expand source code</span>
<a href="https://github.com/GAMES-UChile/mogptk/blob/c4bfff1375a348c212618334e3ccb413bc873e0d/mogptk/dataset.py#L584-L609" class="git-link">Browse git</a>
<a href="https://github.com/GAMES-UChile/mogptk/blob/ae777b90752156fccdebbbca47263d68264ef6f1/mogptk/dataset.py#L584-L609" class="git-link">Browse git</a>
</summary>
<pre><code class="python">def get_bnse_estimation(self, Q=1, n=1000, iters=200):
&#34;&#34;&#34;
Expand Down Expand Up @@ -1858,7 +1858,7 @@ <h2 id="examples">Examples</h2>
<details class="source">
<summary>
<span>Expand source code</span>
<a href="https://github.com/GAMES-UChile/mogptk/blob/c4bfff1375a348c212618334e3ccb413bc873e0d/mogptk/dataset.py#L418-L432" class="git-link">Browse git</a>
<a href="https://github.com/GAMES-UChile/mogptk/blob/ae777b90752156fccdebbbca47263d68264ef6f1/mogptk/dataset.py#L418-L432" class="git-link">Browse git</a>
</summary>
<pre><code class="python">def get_data(self, transformed=False):
&#34;&#34;&#34;
Expand Down Expand Up @@ -1898,7 +1898,7 @@ <h2 id="examples">Examples</h2>
<details class="source">
<summary>
<span>Expand source code</span>
<a href="https://github.com/GAMES-UChile/mogptk/blob/c4bfff1375a348c212618334e3ccb413bc873e0d/mogptk/dataset.py#L396-L416" class="git-link">Browse git</a>
<a href="https://github.com/GAMES-UChile/mogptk/blob/ae777b90752156fccdebbbca47263d68264ef6f1/mogptk/dataset.py#L396-L416" class="git-link">Browse git</a>
</summary>
<pre><code class="python">def get_index(self, index):
&#34;&#34;&#34;
Expand Down Expand Up @@ -1940,7 +1940,7 @@ <h2 id="examples">Examples</h2>
<details class="source">
<summary>
<span>Expand source code</span>
<a href="https://github.com/GAMES-UChile/mogptk/blob/c4bfff1375a348c212618334e3ccb413bc873e0d/mogptk/dataset.py#L335-L346" class="git-link">Browse git</a>
<a href="https://github.com/GAMES-UChile/mogptk/blob/ae777b90752156fccdebbbca47263d68264ef6f1/mogptk/dataset.py#L335-L346" class="git-link">Browse git</a>
</summary>
<pre><code class="python">def get_input_dims(self):
&#34;&#34;&#34;
Expand Down Expand Up @@ -1983,7 +1983,7 @@ <h2 id="examples">Examples</h2>
<details class="source">
<summary>
<span>Expand source code</span>
<a href="https://github.com/GAMES-UChile/mogptk/blob/c4bfff1375a348c212618334e3ccb413bc873e0d/mogptk/dataset.py#L558-L582" class="git-link">Browse git</a>
<a href="https://github.com/GAMES-UChile/mogptk/blob/ae777b90752156fccdebbbca47263d68264ef6f1/mogptk/dataset.py#L558-L582" class="git-link">Browse git</a>
</summary>
<pre><code class="python">def get_ls_estimation(self, Q=1, n=10000):
&#34;&#34;&#34;
Expand Down Expand Up @@ -2029,7 +2029,7 @@ <h2 id="examples">Examples</h2>
<details class="source">
<summary>
<span>Expand source code</span>
<a href="https://github.com/GAMES-UChile/mogptk/blob/c4bfff1375a348c212618334e3ccb413bc873e0d/mogptk/dataset.py#L361-L372" class="git-link">Browse git</a>
<a href="https://github.com/GAMES-UChile/mogptk/blob/ae777b90752156fccdebbbca47263d68264ef6f1/mogptk/dataset.py#L361-L372" class="git-link">Browse git</a>
</summary>
<pre><code class="python">def get_names(self):
&#34;&#34;&#34;
Expand Down Expand Up @@ -2061,7 +2061,7 @@ <h2 id="examples">Examples</h2>
<details class="source">
<summary>
<span>Expand source code</span>
<a href="https://github.com/GAMES-UChile/mogptk/blob/c4bfff1375a348c212618334e3ccb413bc873e0d/mogptk/dataset.py#L546-L556" class="git-link">Browse git</a>
<a href="https://github.com/GAMES-UChile/mogptk/blob/ae777b90752156fccdebbbca47263d68264ef6f1/mogptk/dataset.py#L546-L556" class="git-link">Browse git</a>
</summary>
<pre><code class="python">def get_nyquist_estimation(self):
&#34;&#34;&#34;
Expand Down Expand Up @@ -2093,7 +2093,7 @@ <h2 id="examples">Examples</h2>
<details class="source">
<summary>
<span>Expand source code</span>
<a href="https://github.com/GAMES-UChile/mogptk/blob/c4bfff1375a348c212618334e3ccb413bc873e0d/mogptk/dataset.py#L348-L359" class="git-link">Browse git</a>
<a href="https://github.com/GAMES-UChile/mogptk/blob/ae777b90752156fccdebbbca47263d68264ef6f1/mogptk/dataset.py#L348-L359" class="git-link">Browse git</a>
</summary>
<pre><code class="python">def get_output_dims(self):
&#34;&#34;&#34;
Expand Down Expand Up @@ -2125,7 +2125,7 @@ <h2 id="examples">Examples</h2>
<details class="source">
<summary>
<span>Expand source code</span>
<a href="https://github.com/GAMES-UChile/mogptk/blob/c4bfff1375a348c212618334e3ccb413bc873e0d/mogptk/dataset.py#L466-L479" class="git-link">Browse git</a>
<a href="https://github.com/GAMES-UChile/mogptk/blob/ae777b90752156fccdebbbca47263d68264ef6f1/mogptk/dataset.py#L466-L479" class="git-link">Browse git</a>
</summary>
<pre><code class="python">def get_prediction_data(self):
&#34;&#34;&#34;
Expand Down Expand Up @@ -2176,7 +2176,7 @@ <h2 id="examples">Examples</h2>
<details class="source">
<summary>
<span>Expand source code</span>
<a href="https://github.com/GAMES-UChile/mogptk/blob/c4bfff1375a348c212618334e3ccb413bc873e0d/mogptk/dataset.py#L611-L638" class="git-link">Browse git</a>
<a href="https://github.com/GAMES-UChile/mogptk/blob/ae777b90752156fccdebbbca47263d68264ef6f1/mogptk/dataset.py#L611-L638" class="git-link">Browse git</a>
</summary>
<pre><code class="python">def get_sm_estimation(self, Q=1, method=&#39;BNSE&#39;, optimizer=&#39;Adam&#39;, iters=200, params={}):
&#34;&#34;&#34;
Expand Down Expand Up @@ -2228,7 +2228,7 @@ <h2 id="examples">Examples</h2>
<details class="source">
<summary>
<span>Expand source code</span>
<a href="https://github.com/GAMES-UChile/mogptk/blob/c4bfff1375a348c212618334e3ccb413bc873e0d/mogptk/dataset.py#L450-L464" class="git-link">Browse git</a>
<a href="https://github.com/GAMES-UChile/mogptk/blob/ae777b90752156fccdebbbca47263d68264ef6f1/mogptk/dataset.py#L450-L464" class="git-link">Browse git</a>
</summary>
<pre><code class="python">def get_test_data(self, transformed=False):
&#34;&#34;&#34;
Expand Down Expand Up @@ -2267,7 +2267,7 @@ <h2 id="examples">Examples</h2>
<details class="source">
<summary>
<span>Expand source code</span>
<a href="https://github.com/GAMES-UChile/mogptk/blob/c4bfff1375a348c212618334e3ccb413bc873e0d/mogptk/dataset.py#L434-L448" class="git-link">Browse git</a>
<a href="https://github.com/GAMES-UChile/mogptk/blob/ae777b90752156fccdebbbca47263d68264ef6f1/mogptk/dataset.py#L434-L448" class="git-link">Browse git</a>
</summary>
<pre><code class="python">def get_train_data(self, transformed=False):
&#34;&#34;&#34;
Expand Down Expand Up @@ -2303,7 +2303,7 @@ <h2 id="examples">Examples</h2>
<details class="source">
<summary>
<span>Expand source code</span>
<a href="https://github.com/GAMES-UChile/mogptk/blob/c4bfff1375a348c212618334e3ccb413bc873e0d/mogptk/dataset.py#L322-L333" class="git-link">Browse git</a>
<a href="https://github.com/GAMES-UChile/mogptk/blob/ae777b90752156fccdebbbca47263d68264ef6f1/mogptk/dataset.py#L322-L333" class="git-link">Browse git</a>
</summary>
<pre><code class="python">def has_test_data(self):
&#34;&#34;&#34;
Expand Down Expand Up @@ -2350,7 +2350,7 @@ <h2 id="examples">Examples</h2>
<details class="source">
<summary>
<span>Expand source code</span>
<a href="https://github.com/GAMES-UChile/mogptk/blob/c4bfff1375a348c212618334e3ccb413bc873e0d/mogptk/dataset.py#L640-L680" class="git-link">Browse git</a>
<a href="https://github.com/GAMES-UChile/mogptk/blob/ae777b90752156fccdebbbca47263d68264ef6f1/mogptk/dataset.py#L640-L680" class="git-link">Browse git</a>
</summary>
<pre><code class="python">def plot(self, pred=None, title=None, figsize=None, legend=True, transformed=False):
&#34;&#34;&#34;
Expand Down Expand Up @@ -2432,7 +2432,7 @@ <h2 id="examples">Examples</h2>
<details class="source">
<summary>
<span>Expand source code</span>
<a href="https://github.com/GAMES-UChile/mogptk/blob/c4bfff1375a348c212618334e3ccb413bc873e0d/mogptk/dataset.py#L682-L719" class="git-link">Browse git</a>
<a href="https://github.com/GAMES-UChile/mogptk/blob/ae777b90752156fccdebbbca47263d68264ef6f1/mogptk/dataset.py#L682-L719" class="git-link">Browse git</a>
</summary>
<pre><code class="python">def plot_spectrum(self, title=None, method=&#39;ls&#39;, per=None, maxfreq=None, figsize=None, log=False, transformed=True, n=1001):
&#34;&#34;&#34;
Expand Down Expand Up @@ -2491,7 +2491,7 @@ <h2 id="examples">Examples</h2>
<details class="source">
<summary>
<span>Expand source code</span>
<a href="https://github.com/GAMES-UChile/mogptk/blob/c4bfff1375a348c212618334e3ccb413bc873e0d/mogptk/dataset.py#L481-L503" class="git-link">Browse git</a>
<a href="https://github.com/GAMES-UChile/mogptk/blob/ae777b90752156fccdebbbca47263d68264ef6f1/mogptk/dataset.py#L481-L503" class="git-link">Browse git</a>
</summary>
<pre><code class="python">def set_prediction_data(self, X):
&#34;&#34;&#34;
Expand Down Expand Up @@ -2541,7 +2541,7 @@ <h2 id="examples">Examples</h2>
<details class="source">
<summary>
<span>Expand source code</span>
<a href="https://github.com/GAMES-UChile/mogptk/blob/c4bfff1375a348c212618334e3ccb413bc873e0d/mogptk/dataset.py#L505-L544" class="git-link">Browse git</a>
<a href="https://github.com/GAMES-UChile/mogptk/blob/ae777b90752156fccdebbbca47263d68264ef6f1/mogptk/dataset.py#L505-L544" class="git-link">Browse git</a>
</summary>
<pre><code class="python">def set_prediction_range(self, start, end, n=None, step=None):
&#34;&#34;&#34;
Expand Down Expand Up @@ -2605,7 +2605,7 @@ <h2 id="examples">Examples</h2>
<details class="source">
<summary>
<span>Expand source code</span>
<a href="https://github.com/GAMES-UChile/mogptk/blob/c4bfff1375a348c212618334e3ccb413bc873e0d/mogptk/dataset.py#L270-L285" class="git-link">Browse git</a>
<a href="https://github.com/GAMES-UChile/mogptk/blob/ae777b90752156fccdebbbca47263d68264ef6f1/mogptk/dataset.py#L270-L285" class="git-link">Browse git</a>
</summary>
<pre><code class="python">def transform(self, transformer):
&#34;&#34;&#34;
Expand Down
Loading

0 comments on commit 5d6df7d

Please sign in to comment.