Skip to content

Commit

Permalink
Enabling dump from SupervisedModel
Browse files Browse the repository at this point in the history
  • Loading branch information
mmerce committed Apr 19, 2022
1 parent 2a94d18 commit e56317b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
6 changes: 6 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
History
-------

7.2.2 (2022-04-20)
~~~~~~~~~~~~~~~~~~

- Enabling dump from SupervisedModel class.


7.2.1 (2022-04-19)
~~~~~~~~~~~~~~~~~~

Expand Down
8 changes: 8 additions & 0 deletions bigml/supervised.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,3 +134,11 @@ def predict_probability(self, *args, **kwargs):
except TypeError:
del new_kwargs["missing_strategy"]
return self.local_model.predict_probability(*args, **new_kwargs)

def dump(self, **kwargs):
"""Delegate to local model"""
self.local_model.dump(**kwargs)

def dumps(self):
"""Delegate to local model"""
return self.local_model.dumps()
2 changes: 1 addition & 1 deletion bigml/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '7.2.1'
__version__ = '7.2.2'

0 comments on commit e56317b

Please sign in to comment.