mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-07-02 16:01:03 +02:00
[plotly] starting plotly
This commit is contained in:
parent
cbb06f3efc
commit
e0d48a0558
18 changed files with 120 additions and 128 deletions
|
|
@ -13,7 +13,10 @@ try:
|
|||
import matplotlib
|
||||
from .matplot_dep import plot_definitions
|
||||
plotting_library = plot_definitions.MatplotlibPlots()
|
||||
|
||||
if lib == 'plotly':
|
||||
import plotly
|
||||
from .plotly_dep import plot_definitions
|
||||
plotting_library = plot_definitions.PlotlyPlots()
|
||||
#===========================================================================
|
||||
except (ImportError, NameError):
|
||||
raise
|
||||
|
|
@ -63,4 +66,6 @@ if config.get('plotting', 'library') is not 'none':
|
|||
Kern.plot_covariance = gpy_plot.kernel_plots.plot_covariance
|
||||
Kern.plot_covariance = gpy_plot.kernel_plots.plot_ARD
|
||||
|
||||
from ..inference.optimization import Optimizer
|
||||
Optimizer.plot = gpy_plot.inference_plots.plot_optimizer
|
||||
# Variational plot!
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue