crat.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:enhancement 作者: lwzswufe 项目源码 文件源码
def regress(y, x, test_x=[]):
    if len(test_x) == 0:
        test_x = x
    clf = DecisionTreeRegressor()
    clf.fit(x, y)
    y_p = clf.predict(test_x)
    plt.scatter(y, y_p)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号