You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've experienced clearly sub-optimal weightings when running the the WeightedProportion custom scikit-learn model. It is likely due to bad optimisation, perhaps getting stuck by local optima. So we need to explore the dependence of the results upon w_start.
self.coef_=np.atleast_2d(coef_) # return as column vector
self.mse=self.loss(W=self.coef_, X=X, y=y)
returnself
One way to approach making the results more reliable (more likely to represent the global minimum) is to use a particle swarm type approach where we run the optimisation multiple times, each with different w_start.
Look into the relevant fitting procedures in scikit-learn.
The text was updated successfully, but these errors were encountered:
I've experienced clearly sub-optimal weightings when running the the
WeightedProportion
custom scikit-learn model. It is likely due to bad optimisation, perhaps getting stuck by local optima. So we need to explore the dependence of the results uponw_start
.CausalPy/causalpy/skl_models.py
Lines 22 to 33 in 815c14c
One way to approach making the results more reliable (more likely to represent the global minimum) is to use a particle swarm type approach where we run the optimisation multiple times, each with different
w_start
.The text was updated successfully, but these errors were encountered: