mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-18 13:55:14 +02:00
Check for sympy
This commit is contained in:
parent
292e076a9a
commit
970e133bca
1 changed files with 18 additions and 14 deletions
|
|
@ -2,8 +2,12 @@
|
||||||
# Licensed under the BSD 3-clause license (see LICENSE.txt)
|
# Licensed under the BSD 3-clause license (see LICENSE.txt)
|
||||||
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
try:
|
||||||
import sympy as sym
|
import sympy as sym
|
||||||
|
sympy_available=True
|
||||||
from sympy.utilities.lambdify import lambdify
|
from sympy.utilities.lambdify import lambdify
|
||||||
|
except ImportError:
|
||||||
|
sympy_available=False
|
||||||
import link_functions
|
import link_functions
|
||||||
from scipy import stats, integrate
|
from scipy import stats, integrate
|
||||||
from scipy.special import gammaln, gamma, erf, polygamma
|
from scipy.special import gammaln, gamma, erf, polygamma
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue