learningmachine 2.3.0__tar.gz → 2.4.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. {learningmachine-2.3.0 → learningmachine-2.4.0}/PKG-INFO +1 -1
  2. {learningmachine-2.3.0 → learningmachine-2.4.0}/learningmachine/regression.py +12 -2
  3. {learningmachine-2.3.0 → learningmachine-2.4.0}/learningmachine.egg-info/PKG-INFO +1 -1
  4. {learningmachine-2.3.0 → learningmachine-2.4.0}/setup.py +1 -1
  5. {learningmachine-2.3.0 → learningmachine-2.4.0}/CONTRIBUTING.rst +0 -0
  6. {learningmachine-2.3.0 → learningmachine-2.4.0}/HISTORY.rst +0 -0
  7. {learningmachine-2.3.0 → learningmachine-2.4.0}/LICENSE +0 -0
  8. {learningmachine-2.3.0 → learningmachine-2.4.0}/MANIFEST.in +0 -0
  9. {learningmachine-2.3.0 → learningmachine-2.4.0}/README.md +0 -0
  10. {learningmachine-2.3.0 → learningmachine-2.4.0}/docs/Makefile +0 -0
  11. {learningmachine-2.3.0 → learningmachine-2.4.0}/docs/conf.py +0 -0
  12. {learningmachine-2.3.0 → learningmachine-2.4.0}/docs/contributing.rst +0 -0
  13. {learningmachine-2.3.0 → learningmachine-2.4.0}/docs/history.rst +0 -0
  14. {learningmachine-2.3.0 → learningmachine-2.4.0}/docs/index.rst +0 -0
  15. {learningmachine-2.3.0 → learningmachine-2.4.0}/docs/installation.rst +0 -0
  16. {learningmachine-2.3.0 → learningmachine-2.4.0}/docs/make.bat +0 -0
  17. {learningmachine-2.3.0 → learningmachine-2.4.0}/docs/readme.rst +0 -0
  18. {learningmachine-2.3.0 → learningmachine-2.4.0}/docs/usage.rst +0 -0
  19. {learningmachine-2.3.0 → learningmachine-2.4.0}/learningmachine/__init__.py +0 -0
  20. {learningmachine-2.3.0 → learningmachine-2.4.0}/learningmachine/base.py +0 -0
  21. {learningmachine-2.3.0 → learningmachine-2.4.0}/learningmachine/classifier.py +0 -0
  22. {learningmachine-2.3.0 → learningmachine-2.4.0}/learningmachine/utils.py +0 -0
  23. {learningmachine-2.3.0 → learningmachine-2.4.0}/learningmachine.egg-info/SOURCES.txt +0 -0
  24. {learningmachine-2.3.0 → learningmachine-2.4.0}/learningmachine.egg-info/dependency_links.txt +0 -0
  25. {learningmachine-2.3.0 → learningmachine-2.4.0}/learningmachine.egg-info/not-zip-safe +0 -0
  26. {learningmachine-2.3.0 → learningmachine-2.4.0}/learningmachine.egg-info/requires.txt +0 -0
  27. {learningmachine-2.3.0 → learningmachine-2.4.0}/learningmachine.egg-info/top_level.txt +0 -0
  28. {learningmachine-2.3.0 → learningmachine-2.4.0}/setup.cfg +0 -0
  29. {learningmachine-2.3.0 → learningmachine-2.4.0}/tests/__init__.py +0 -0
  30. {learningmachine-2.3.0 → learningmachine-2.4.0}/tests/test_learningmachine.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: learningmachine
3
- Version: 2.3.0
3
+ Version: 2.4.0
4
4
  Summary: Machine Learning with uncertainty quantification and interpretability
5
5
  Home-page: https://github.com/Techtonique/learningmachine_python
6
6
  Author: T. Moudiki
@@ -145,13 +145,23 @@ class Regressor(Base, RegressorMixin):
145
145
  return np.asarray(self.obj["predict"](X_r))
146
146
  return r_list_to_namedtuple(self.obj["predict"](X_r))
147
147
 
148
- def update(self, newx, newy):
148
+ def update(self, newx, newy, **kwargs):
149
149
  """
150
150
  update the model.
151
151
  """
152
+ params_dict = {}
153
+
154
+ for k, v in kwargs.items():
155
+ if k == "lambda_":
156
+ params_dict["lambda"] = v
157
+ elif "__" in k:
158
+ params_dict[k.replace("__", ".")] = v
159
+ else:
160
+ params_dict[k] = v
152
161
 
153
162
  newx_r = base.as_vector(FloatVector(newx))
154
163
 
155
- self.obj["update"](newx_r, base.as_numeric(FloatVector([newy])))
164
+ self.obj["update"](newx_r, base.as_numeric(FloatVector([newy])),
165
+ **params_dict)
156
166
 
157
167
  return self
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: learningmachine
3
- Version: 2.3.0
3
+ Version: 2.4.0
4
4
  Summary: Machine Learning with uncertainty quantification and interpretability
5
5
  Home-page: https://github.com/Techtonique/learningmachine_python
6
6
  Author: T. Moudiki
@@ -169,6 +169,6 @@ setup(
169
169
  packages=find_packages(include=["learningmachine", "learningmachine.*"]),
170
170
  test_suite="tests",
171
171
  url="https://github.com/Techtonique/learningmachine_python",
172
- version="2.3.0",
172
+ version="2.4.0",
173
173
  zip_safe=False,
174
174
  )
File without changes