MCPcopy
hub / github.com/GPflow/GPflow / plot

Function plot

doc/sphinx/notebooks/theory/Sanity_check.pct.py:132–144  ·  view source on GitHub ↗
(m, color, ax)

Source from the content-addressed store, hash-verified

130
131# %%
132def plot(m, color, ax):
133 xx = np.linspace(-1, 11, 100)[:, None]
134 mu, var = m.predict_y(xx)
135 ax.plot(xx, mu, color, lw=2)
136 ax.fill_between(
137 xx[:, 0],
138 mu[:, 0] - 2 * np.sqrt(var[:, 0]),
139 mu[:, 0] + 2 * np.sqrt(var[:, 0]),
140 color=color,
141 alpha=0.2,
142 )
143 ax.plot(X, Y, "kx", mew=2)
144 ax.set_xlim(-1, 11)
145
146
147f, ax = plt.subplots(3, 2, sharex=True, sharey=True, figsize=(12, 9))

Callers 1

Calls 2

predict_yMethod · 0.45
plotMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…