Skip to content

Commit

Permalink
update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
dirmeier committed Mar 1, 2024
1 parent 233ca76 commit 7c7e5b1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
8 changes: 3 additions & 5 deletions examples/experimental/gaussian_process.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
"""
Gaussian process regression
===========================
"""Gaussian process regression.
This example implements the training and prediction of a Gaussian process
regression model.
Expand All @@ -12,12 +10,12 @@
"""

import argparse
import jax

import matplotlib.patches as mpatches
import matplotlib.pyplot as plt
from jax import numpy as jnp
from jax import random as jr
from jax.config import config

from ramsey.data import sample_from_gaussian_process
from ramsey.experimental import (
Expand All @@ -26,7 +24,7 @@
train_gaussian_process,
)

config.update("jax_enable_x64", True)
jax.config.update("jax_enable_x64", True)


def data(key, rho, sigma, n=1000):
Expand Down
8 changes: 3 additions & 5 deletions examples/experimental/sparse_gaussian_process.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
"""
Sparse Gaussian process regression
==================================
"""Sparse Gaussian process regression example.
This example implements the training and prediction of a sparse Gaussian process
regression model.
Expand All @@ -13,12 +11,12 @@
"""

import argparse
import jax

import matplotlib.patches as mpatches
import matplotlib.pyplot as plt
from jax import numpy as jnp
from jax import random as jr
from jax.config import config

from ramsey.data import sample_from_gaussian_process
from ramsey.experimental import (
Expand All @@ -27,7 +25,7 @@
train_sparse_gaussian_process,
)

config.update("jax_enable_x64", True)
jax.config.update("jax_enable_x64", True)


def data(key, rho, sigma, n=1000):
Expand Down

0 comments on commit 7c7e5b1

Please sign in to comment.