We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1554296 commit 0d089abCopy full SHA for 0d089ab
vetiver/handlers/sklearn.py
@@ -46,7 +46,4 @@ def handler_predict(self, input_data, check_prototype: bool, **kw):
46
else input_data
47
)
48
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()
+ return getattr(self.model, prediction_type)(input_data).tolist()
0 commit comments