zoukankan      html  css  js  c++  java
  • Ubuntu16.04安装xgboost

    1.Python下安装方法

    git clone --recursive https://github.com/dmlc/xgboost
    cd xgboost
    make -j4
    cd python-package/
    sudo python setup.py install
    

    如果在import xgboost后,遇到问题

    OSError: /home/common/anaconda2/lib/python2.7/site-packages/scipy/sparse/../../../../libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /home/common/coding/coding/Scala/xgboost/python-package/xgboost/../../lib/libxgboost.so)
    

    解决方法

    conda install libgcc
    

    2.Java下安装方法

    请先在Python下安装好,因为上面的gcc版本问题会影响到java下xgboost的编译和安装

    先更新

    git pull && git submodule init && git submodule update && git submodule status
    

    然后参考

    http://xgboost.readthedocs.io/en/latest/jvm/
    

    几个xgboost的Scala实现方法

    https://www.elenacuoco.com/2016/10/10/scala-spark-xgboost-classification/
    http://blog.csdn.net/luoyexuge/article/details/71422270
    http://blog.csdn.net/luoyexuge/article/details/71422270
    
  • 相关阅读:
    HTML5标签变化
    接口测试基础入门学习
    1.1Axure简介
    win 7命令行大全
    程序集强签名
    源代码的文件头格式化
    redmine2.3环境搭建
    静态成员和方法的使用场合及利弊分析
    .Net Memory Profiler入门
    TransactionScope类
  • 原文地址:https://www.cnblogs.com/tonglin0325/p/6978890.html
Copyright © 2011-2022 走看看