Skip to content

Commit

Permalink
Merge pull request #325 from vcozzolino/bug-324
Browse files Browse the repository at this point in the history
Fix regression bug in JobBase class.
  • Loading branch information
kubeedge-bot authored Jun 21, 2022
2 parents 7d5aa0f + 92f83fc commit 946f92a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/sedna/core/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ def run(self):

class JobBase:
""" sedna feature base class """
parameters = Context

def __init__(self, estimator, config=None):
self.config = BaseConfig()
if config:
Expand Down Expand Up @@ -158,7 +160,7 @@ def evaluate(self, data, post_process=None, **kwargs):
return callback_func(res) if callback_func else res

def get_parameters(self, param, default=None):
return Context.get_parameters(param=param, default=default)
return self.parameters.get_parameters(param=param, default=default)

def report_task_info(self, task_info, status, results=None, kind="train"):
message = {
Expand Down

0 comments on commit 946f92a

Please sign in to comment.