Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup src #419

Merged
merged 10 commits into from
Nov 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions docs/examples/graph_kernels.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# %% [markdown]
# # Graph Kernels
#
Expand All @@ -23,6 +22,7 @@
import matplotlib as mpl
import matplotlib.pyplot as plt
import networkx as nx
import optax as ox

with install_import_hook("gpjax", "beartype.beartype"):
import gpjax as gpx
Expand Down Expand Up @@ -154,11 +154,14 @@
# With a posterior defined, we can now optimise the model's hyperparameters.

# %%
opt_posterior, training_history = gpx.fit_scipy(
opt_posterior, training_history = gpx.fit(
model=posterior,
objective=jit(gpx.ConjugateMLL(negative=True)),
objective=gpx.ConjugateMLL(negative=True),
train_data=D,
)
optim=ox.adam(learning_rate=0.01),
num_iters=1000,
key=key
)

# %% [markdown]
#
Expand Down
308 changes: 0 additions & 308 deletions docs/examples/regression_mo.py

This file was deleted.

Loading