Skip to content

Commit 0d089ab

Browse files
committed
generalize model calls
1 parent 1554296 commit 0d089ab

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

vetiver/handlers/sklearn.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,4 @@ def handler_predict(self, input_data, check_prototype: bool, **kw):
4646
else input_data
4747
)
4848

49-
if prediction_type in ["predict_proba", "predict_log_proba"]:
50-
return getattr(self.model, prediction_type)(input_data).tolist()
51-
52-
return self.model.predict(input_data).to_list()
49+
return getattr(self.model, prediction_type)(input_data).tolist()

0 commit comments

Comments
 (0)