XGBoost-From-Scratch
XGBoost-From-Scratch copied to clipboard
This repo contains a few tree based boosting algorithms implemented in python from scratch. This code relates to a medium.com article which I wrote explaining my journey to understanding how XGBoost w...
In file Naive-Gradient-Boosting.py,--line-210 please tell me what is this 'y' in return self.log_odds(y) + pred full code is here def predict(self, X): pred = np.zeros(X.shape[0]) for estimator in self.estimators: pred...
really good code thanks but do you have code for estimated probability of prediction ? as mentioned in https://stats.stackexchange.com/questions/350134/how-does-gradient-boosting-calculate-probability-estimates Per this discussion https://github.com/dmlc/xgboost/issues/5640 it is important to understand in details...