Skip to content

Commit

Permalink
fix tests, replace mse with squared_error for tree based algorithms f…
Browse files Browse the repository at this point in the history
…rom sklearn (#595)
  • Loading branch information
pplonski committed Dec 30, 2022
1 parent 6850fb7 commit 66a3f52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion supervised/preprocessing/label_encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,5 @@ def to_json(self):
def from_json(self, data_json):
keys = np.array(list(data_json.keys()))
if len(keys) == 2 and "False" in keys and "True" in keys:
keys = [False, True]
keys = np.array([False, True])
self.lbl.classes_ = keys

0 comments on commit 66a3f52

Please sign in to comment.