Skip to content

Commit

Permalink
Merge pull request #20 from Jeanselme/patch-2
Browse files Browse the repository at this point in the history
Change fit return to match Sklearn format
  • Loading branch information
Chirag Nagpal authored Dec 28, 2020
2 parents 4093ba5 + 7b1b943 commit e66f5db
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dsm/dsm_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ def fit(self, x, t, e, vsize=0.15,

self.torch_model = model.eval()
self.fitted = True

return self

def _prepocess_test_data(self, x):
return torch.from_numpy(x)
Expand Down

0 comments on commit e66f5db

Please sign in to comment.