summaryrefslogtreecommitdiffstats
path: root/spline.py
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@outlook.com>2016-07-15 11:57:27 +0800
committerAaron LI <aaronly.me@outlook.com>2016-07-15 11:57:27 +0800
commit90700c438a46d931c133d5e60f6a4d9f17fa7c16 (patch)
treed50f5af33496673412e576568a079deefb1fe3bd /spline.py
parent00d7997f951597af142cf3a435f51c7e40d63baa (diff)
downloadcexcess-90700c438a46d931c133d5e60f6a4d9f17fa7c16.tar.bz2
spline.py: add a new error case
Diffstat (limited to 'spline.py')
-rw-r--r--spline.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/spline.py b/spline.py
index 352f905..f90ddff 100644
--- a/spline.py
+++ b/spline.py
@@ -98,6 +98,9 @@ class SmoothSpline(Spline):
# using method "REML" will failed with error:
# Error in gam.reparam(UrS, sp, grderiv) :
# NA/NaN/Inf in foreign function call (arg 3)
+ # or with error:
+ # Error in eigen(hess1, symmetric = TRUE) :
+ # infinite or missing values in 'x'
print("WARNING: 'mgcv.gam()' using method 'REML' failed!",
file=sys.stderr)
self.spline = self.mgcv.gam(