mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-05 01:32:40 +02:00
39 lines
No EOL
937 B
Python
39 lines
No EOL
937 B
Python
# Copyright (c) 2012, GPy authors (see AUTHORS.txt).
|
|
# Licensed under the BSD 3-clause license (see LICENSE.txt)
|
|
import warnings
|
|
warnings.filterwarnings("ignore", category=DeprecationWarning)
|
|
|
|
import core
|
|
from core.parameterization import transformations, priors
|
|
constraints = transformations
|
|
import models
|
|
import mappings
|
|
import inference
|
|
import util
|
|
import examples
|
|
import likelihoods
|
|
import testing
|
|
from numpy.testing import Tester
|
|
from nose.tools import nottest
|
|
import kern
|
|
import plotting
|
|
|
|
# Direct imports for convenience:
|
|
from core import Model
|
|
from core.parameterization import Param, Parameterized, ObsAr
|
|
|
|
@nottest
|
|
def tests():
|
|
Tester(testing).test(verbose=10)
|
|
|
|
|
|
def load(file_path):
|
|
"""
|
|
Load a previously pickled model, using `m.pickle('path/to/file.pickle)'
|
|
|
|
:param file_name: path/to/file.pickle
|
|
"""
|
|
import cPickle as pickle
|
|
with open(file_path, 'rb') as f:
|
|
m = pickle.load(f)
|
|
return m |