mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-15 06:52:39 +02:00
[plotly] starting plotly
This commit is contained in:
parent
cbb06f3efc
commit
e0d48a0558
18 changed files with 120 additions and 128 deletions
|
|
@ -12,7 +12,7 @@ except ImportError:
|
|||
rasm_available = False
|
||||
from .scg import SCG
|
||||
|
||||
class Optimizer():
|
||||
class Optimizer(object):
|
||||
"""
|
||||
Superclass for all the optimizers.
|
||||
|
||||
|
|
@ -56,16 +56,6 @@ class Optimizer():
|
|||
def opt(self, f_fp=None, f=None, fp=None):
|
||||
raise NotImplementedError("this needs to be implemented to use the optimizer class")
|
||||
|
||||
def plot(self):
|
||||
"""
|
||||
See GPy.plotting.matplot_dep.inference_plots
|
||||
"""
|
||||
import sys
|
||||
assert "matplotlib" in sys.modules, "matplotlib package has not been imported."
|
||||
from ...plotting.matplot_dep import inference_plots
|
||||
inference_plots.plot_optimizer(self)
|
||||
|
||||
|
||||
def __str__(self):
|
||||
diagnostics = "Optimizer: \t\t\t\t %s\n" % self.opt_name
|
||||
diagnostics += "f(x_opt): \t\t\t\t %.3f\n" % self.f_opt
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue