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
class QuantileEstimator(BaseEstimator, RegressorMixin):
def __init__(self, model):
"""
"""
self.alphas = [round(x, 1) for x in np.arange(0.1, 1, 0.1)]
self.model_factory = []
self.model = model
super().__init__()
def fit(self, X, y=None):
for a in self.alphas:
model_i = clone(self.model)
model_i = model_i.set_params(**{'alpha': a})
model_fitted = model_i.fit(X, y)
self.model_factory.append(model_fitted)
return self
def predict(self, X):
predictions = pd.DataFrame()
for a, m in zip(self.alphas, self.model_factory):
predictions["y_pred_" + str(a)] = m.predict(X)
return predictions
Sometimes it happens that following decile for individual predictiions has lower value than the previous one.
Any idea why that's happening? I understand that those are different models, but still as I set the same seed I would expect that the results for different deciles should be monotonic.
The text was updated successfully, but these errors were encountered:
This issue has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this.
Hi, I'm doing Quantile LightGBM, defined as follows:
Where QuantileEstimator is just:
Sometimes it happens that following decile for individual predictiions has lower value than the previous one.
![image](https://user-images.githubusercontent.com/72195667/95588201-66e06280-0a43-11eb-9c3e-acf78a7f016a.png)
Any idea why that's happening? I understand that those are different models, but still as I set the same seed I would expect that the results for different deciles should be monotonic.
The text was updated successfully, but these errors were encountered: