My response variable follows a gamma distribution and I'm trying to use gammaRegressor from scikit-learn:
model = GammaRegressor()
model.fit(X_train_scaled, y_train)
pred_gamma = model.predict(X_test_scaled)
What are the shape and the scale parameters in this case and how does GammaRegressor calculate them?
This the shape and scale of my original data:
from scipy.stats import gamma
shape_k, loc, scale = gamma.fit(y_train)
print(shape_k, loc, scale)