Accessing probabilities from a model as a trade condition #151
Answered
by
edtechre
markxbaker
asked this question in
Q&A
-
Hi, Trying to access the proba from a randomforest classifier in my back test to use as part of the condition to enter, e.g only enter if above 0.6 but having no luck - anyone tried similar with success? Short of training model separately and registering as a new column which defeats purpose of having all in one place, I can't think of any other any ideas? |
Beta Was this translation helpful? Give feedback.
Answered by
edtechre
Sep 27, 2024
Replies: 1 comment 1 reply
-
Hi @markxbaker, Have you tried passing a custom predict_fn to model()? https://www.pybroker.com/en/latest/reference/pybroker.model.html#pybroker.model.model |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
markxbaker
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @markxbaker,
Have you tried passing a custom predict_fn to model()? https://www.pybroker.com/en/latest/reference/pybroker.model.html#pybroker.model.model