mingchaozhu / deeplearning Goto Github PK
View Code? Open in Web Editor NEWPython for《Deep Learning》,该书为《深度学习》(花书) 数学推导、原理剖析与源码级别代码实现
License: MIT License
Python for《Deep Learning》,该书为《深度学习》(花书) 数学推导、原理剖析与源码级别代码实现
License: MIT License
DL中文.pdf cannot be downloaded.
您好,我是一名学生。我在github上找到了您的项目,并参考其中的代码实现了xgboost,但是效果很差,模型几乎没有学到任何东西。希望能够得到您的帮助!感谢!
您好,在/code/chapter7.py中,第695行-699行
def _gain(self, y, y_pred):
# 计算信息
nominator = np.power((y * self.loss.grad(y, y_pred)).sum(), 2)
denominator = self.loss.hess(y, y_pred).sum()
return nominator / (denominator + self.lambd)
其中np.power((y*.......),这个乘以y是否是多余的呢?印象中似乎不需要这么做。
此外,我自己实现的xgboost和另外两个xgboost的开源实现都没有这个乘以y。
以下是三个xgboost实现的链接。
https://github.com/bufuchangfeng/DecisionTree/blob/master/XGBoost.ipynb
https://github.com/RRdmlearning/Machine-Learning-From-Scratch/blob/master/xgboost/xgboost_model.py
https://github.com/RudreshVeerkhare/CustomXGBoost/blob/master/CustomXGBoost.py
感谢您提供了如此有帮助的代码。
期待您的回复。
【2 线性代数.pdf】第2页公式(3)中:
应为
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.