Skip to content

Commit

Permalink
Fixed bug with array conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
Pringled committed Feb 15, 2025
1 parent ff4043f commit 5c9d397
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model2vec/inference/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def predict(
proba = self.head.predict_proba(encoded)
for vector in proba:
out_labels.append(self.classes_[vector > threshold])
return np.asarray(out_labels)
return np.asarray(out_labels, dtype=object)

return self.head.predict(encoded)

Expand Down

0 comments on commit 5c9d397

Please sign in to comment.