Permalink
Browse files

Previous data files can now be imported

Added support for previous data files to be imported into a gaussian
process learner.
  • Loading branch information...
1 parent 99d5c95 commit c2f6519e92c348957fb621c92ab6948d627a41b9 @michaelhush committed Mar 2, 2017
Showing with 4 additions and 2 deletions.
  1. +4 −2 mloop/learners.py
View
@@ -971,8 +971,10 @@ def __init__(self,
except KeyError:
self.has_local_minima = False
-
- super(GaussianProcessLearner,self).__init__(num_params=num_params,
+ if 'num_params' in kwargs:
+ super(GaussianProcessLearner,self).__init__(**kwargs)
+ else:
+ super(GaussianProcessLearner,self).__init__(num_params=num_params,
min_boundary=min_boundary,
max_boundary=max_boundary,
**kwargs)

0 comments on commit c2f6519

Please sign in to comment.