Say I just loaded a logistic regression model from storage. How do I check that model's threshold in PySpark? From what I can see, the only way to do that is to dip into the Java object:
It seems like PySpark's version of LogisticRegressionModel should include this method.
Another issue is that it's not clear whether the threshold is for the raw prediction or the probability. Maybe it's obvious to machine learning practitioners, but I couldn't tell from reading the docs or skimming the code what the threshold was for exactly.