Linux服务器离线安装xgboost

1.环境准备

第一步,检查Python版本

$ python -V
Python 2.7.5

第二步,进入Anaconda官网

https://repo.continuum.io/archive/index.html

下载版本

Anaconda2-4.3.0-Linux-x86_64.sh

上传到服务上开始安装

sh Anaconda2-4.3.0-Linux-x86_64.sh

Welcome to Anaconda2 4.3.0 (by Continuum Analytics, Inc.)

In order to continue the installation process, please review the
license agreement. Please, press ENTER to continue
>>>

================ Anaconda License

Copyright 2016, Continuum Analytics, Inc.

All rights reserved under the 3-clause BSD License:

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the
    documentation and/or other materials provided with the distribution.

  • Neither the name of Continuum Analytics, Inc. nor the names of its contributors may be used to endorse or promote products derived from
    this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
“AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL CONTINUUM
ANALYTICS, INC. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Notice of Third Party Software Licenses

Anaconda contains open source software packages from third parties.
These are available on an “as is” basis and subject to their
individual license agreements. These licenses are available in
Anaconda or at http://docs.continuum.io/anaconda/pkg-docs . Any binary
packages of these third party tools you obtain via Anaconda are
subject to their individual licenses as well as the Anaconda license.
Continuum reserves the right to change which third party tools are
provided in Anaconda.

In particular, Anaconda contains re-distributable, run-time,
shared-library files from the Intel (TM) Math Kernel Library (“MKL
binaries”). You are specifically authorized to use the MKL binaries
with your installation of Anaconda. You are also authorized to
redistribute the MKL binaries with Anaconda or in the conda package
that contains them. If needed, instructions for removing the MKL
binaries after installation of Anaconda are available at
http://www.continuum.io.

Cryptography Notice
=================== This distribution includes cryptographic software. The country in which you currently reside may have restrictions on the
import, possession, use, and/or re-export to another country, of
encryption software. BEFORE using any encryption software, please
check your country’s laws, regulations and policies concerning the
import, possession, or use, and re-export of encryption software, to
see if this is permitted. See the Wassenaar Arrangement
http://www.wassenaar.org/ for more information.

Continuum Analytics has self-classified this software as Export
Commodity Control Number (ECCN) 5D002.C.1, which includes information
security software using or performing cryptographic functions with
asymmetric algorithms. The form and manner of this distribution makes
it eligible for export under the License Exception ENC Technology
Software Unrestricted (TSU) exception (see the BIS Export
Administration Regulations, Section
740.13) for both object code and source code.

The following packages are included in this distribution that relate
to cryptography:

openssl The OpenSSL Project is a collaborative effort to develop a
robust, commercial-grade, full-featured, and Open Source toolkit
implementing the Transport Layer Security (TLS) and Secure Sockets
Layer (SSL) protocols as well as a full-strength general purpose
cryptography library.

pycrypto A collection of both secure hash functions (such as SHA256
and RIPEMD160), and various encryption algorithms (AES, DES, RSA,
ElGamal, etc.).

pyopenssl A thin Python wrapper around (a subset of) the OpenSSL
library.

kerberos (krb5, non-Windows platforms) A network authentication
protocol designed to provide strong authentication for client/server
applications by using secret-key cryptography.

cryptography A Python library which exposes cryptographic recipes and
primitives.

Do you approve the license terms? [yes|no]
>>> Please answer ‘yes’ or ‘no’:
>>> yes

Anaconda2 will now be installed into this location:
/home/simon/anaconda2

  • Press ENTER to confirm the location
  • Press CTRL-C to abort the installation
  • Or specify a different location below

[/home/simon/anaconda2] >>> PREFIX=/home/simon/anaconda2
installing: python-2.7.13-0 …
installing: _license-1.1-py27_1 …
installing: alabaster-0.7.9-py27_0 …
installing: anaconda-client-1.6.0-py27_0 …
installing: anaconda-navigator-1.4.3-py27_0 …
installing: argcomplete-1.0.0-py27_1 …
installing: astroid-1.4.9-py27_0 …
installing: astropy-1.3-np111py27_0 …
installing: babel-2.3.4-py27_0 …
installing: backports-1.0-py27_0 …
installing: backports_abc-0.5-py27_0 …
installing: beautifulsoup4-4.5.3-py27_0 …
installing: bitarray-0.8.1-py27_0 …
installing: blaze-0.10.1-py27_0 …
installing: bokeh-0.12.4-py27_0 …
installing: boto-2.45.0-py27_0 …
installing: bottleneck-1.2.0-np111py27_0 …
installing: cairo-1.14.8-0 …
installing: cdecimal-2.3-py27_2 …
installing: cffi-1.9.1-py27_0 …
installing: chardet-2.3.0-py27_0 …
installing: chest-0.2.3-py27_0 …
installing: click-6.7-py27_0 …
installing: cloudpickle-0.2.2-py27_0 …
installing: clyent-1.2.2-py27_0 …
installing: colorama-0.3.7-py27_0 …
installing: configobj-5.0.6-py27_0 …
installing: configparser-3.5.0-py27_0 …
installing: contextlib2-0.5.4-py27_0 …
installing: cryptography-1.7.1-py27_0 …
installing: curl-7.52.1-0 …
installing: cycler-0.10.0-py27_0 …
installing: cython-0.25.2-py27_0 …
installing: cytoolz-0.8.2-py27_0 …
installing: dask-0.13.0-py27_0 …
installing: datashape-0.5.4-py27_0 …
installing: dbus-1.10.10-0 …
installing: decorator-4.0.11-py27_0 …
installing: dill-0.2.5-py27_0 …
installing: docutils-0.13.1-py27_0 …
installing: entrypoints-0.2.2-py27_0 …
installing: enum34-1.1.6-py27_0 …
installing: et_xmlfile-1.0.1-py27_0 …
installing: expat-2.1.0-0 …
installing: fastcache-1.0.2-py27_1 …
installing: flask-0.12-py27_0 …
installing: flask-cors-3.0.2-py27_0 …
installing: fontconfig-2.12.1-2 …
installing: freetype-2.5.5-2 …
installing: funcsigs-1.0.2-py27_0 …
installing: functools32-3.2.3.2-py27_0 …
installing: futures-3.0.5-py27_0 …
installing: get_terminal_size-1.0.0-py27_0 …
installing: gevent-1.2.1-py27_0 …
installing: glib-2.50.2-1 …
installing: greenlet-0.4.11-py27_0 …
installing: grin-1.2.1-py27_3 …
installing: gst-plugins-base-1.8.0-0 …
installing: gstreamer-1.8.0-0 …
installing: h5py-2.6.0-np111py27_2 …
installing: harfbuzz-0.9.39-2 …
installing: hdf5-1.8.17-1 …
installing: heapdict-1.0.0-py27_1 …
installing: icu-54.1-0 …
installing: idna-2.2-py27_0 …
installing: imagesize-0.7.1-py27_0 …
installing: ipaddress-1.0.18-py27_0 …
installing: ipykernel-4.5.2-py27_0 …
installing: ipython-5.1.0-py27_0 …
installing: ipython_genutils-0.1.0-py27_0 …
installing: ipywidgets-5.2.2-py27_1 …
installing: isort-4.2.5-py27_0 …
installing: itsdangerous-0.24-py27_0 …
installing: jbig-2.1-0 …
installing: jdcal-1.3-py27_0 …
installing: jedi-0.9.0-py27_1 …
installing: jinja2-2.9.4-py27_0 …
installing: jpeg-9b-0 …
installing: jsonschema-2.5.1-py27_0 …
installing: jupyter-1.0.0-py27_3 …
installing: jupyter_client-4.4.0-py27_0 …
installing: jupyter_console-5.0.0-py27_0 …
installing: jupyter_core-4.2.1-py27_0 …
installing: lazy-object-proxy-1.2.2-py27_0 …
installing: libffi-3.2.1-1 …
installing: libgcc-4.8.5-2 …
installing: libgfortran-3.0.0-1 …
installing: libiconv-1.14-0 …
installing: libpng-1.6.27-0 …
installing: libsodium-1.0.10-0 …
installing: libtiff-4.0.6-3 …
installing: libxcb-1.12-1 …
installing: libxml2-2.9.4-0 …
installing: libxslt-1.1.29-0 …
installing: llvmlite-0.15.0-py27_0 …
installing: locket-0.2.0-py27_1 …
installing: lxml-3.7.2-py27_0 …
installing: markupsafe-0.23-py27_2 …
installing: matplotlib-2.0.0-np111py27_0 …
installing: mistune-0.7.3-py27_0 …
installing: mkl-2017.0.1-0 …
installing: mkl-service-1.1.2-py27_3 …
installing: mpmath-0.19-py27_1 …
installing: multipledispatch-0.4.9-py27_0 …
installing: nbconvert-4.2.0-py27_0 …
installing: nbformat-4.2.0-py27_0 …
installing: networkx-1.11-py27_0 …
installing: nltk-3.2.2-py27_0 …
installing: nose-1.3.7-py27_1 …
installing: notebook-4.3.1-py27_0 …
installing: numba-0.30.1-np111py27_0 …
installing: numexpr-2.6.1-np111py27_2 …
installing: numpy-1.11.3-py27_0 …
installing: numpydoc-0.6.0-py27_0 …
installing: odo-0.5.0-py27_1 …
installing: openpyxl-2.4.1-py27_0 …
installing: openssl-1.0.2k-0 …
installing: pandas-0.19.2-np111py27_1 …
installing: partd-0.3.7-py27_0 …
installing: path.py-10.0-py27_0 …
installing: pathlib2-2.2.0-py27_0 …
installing: patsy-0.4.1-py27_0 …
installing: pcre-8.39-1 …
installing: pep8-1.7.0-py27_0 …
installing: pexpect-4.2.1-py27_0 …
installing: pickleshare-0.7.4-py27_0 …
installing: pillow-4.0.0-py27_0 …
installing: pip-9.0.1-py27_1 …
installing: pixman-0.34.0-0 …
installing: ply-3.9-py27_0 …
installing: prompt_toolkit-1.0.9-py27_0 …
installing: psutil-5.0.1-py27_0 …
installing: ptyprocess-0.5.1-py27_0 …
installing: py-1.4.32-py27_0 …
installing: pyasn1-0.1.9-py27_0 …
installing: pycairo-1.10.0-py27_0 …
installing: pycosat-0.6.1-py27_1 …
installing: pycparser-2.17-py27_0 …
installing: pycrypto-2.6.1-py27_4 …
installing: pycurl-7.43.0-py27_2 …
installing: pyflakes-1.5.0-py27_0 …
installing: pygments-2.1.3-py27_0 …
installing: pylint-1.6.4-py27_1 …
installing: pyopenssl-16.2.0-py27_0 …
installing: pyparsing-2.1.4-py27_0 …
installing: pyqt-5.6.0-py27_2 …
installing: pytables-3.3.0-np111py27_0 …
installing: pytest-3.0.5-py27_0 …
installing: python-dateutil-2.6.0-py27_0 …
installing: pytz-2016.10-py27_0 …
installing: pyyaml-3.12-py27_0 …
installing: pyzmq-16.0.2-py27_0 …
installing: qt-5.6.2-3 …
installing: qtawesome-0.4.3-py27_0 …
installing: qtconsole-4.2.1-py27_1 …
installing: qtpy-1.2.1-py27_0 …
installing: readline-6.2-2 …
installing: redis-3.2.0-0 …
installing: redis-py-2.10.5-py27_0 …
installing: requests-2.12.4-py27_0 …
installing: rope-0.9.4-py27_1 …
installing: scandir-1.4-py27_0 …
installing: scikit-image-0.12.3-np111py27_1 …
installing: scikit-learn-0.18.1-np111py27_1 …
installing: scipy-0.18.1-np111py27_1 …
installing: seaborn-0.7.1-py27_0 …
installing: setuptools-27.2.0-py27_0 …
installing: simplegeneric-0.8.1-py27_1 …
installing: singledispatch-3.4.0.3-py27_0 …
installing: sip-4.18-py27_0 …
installing: six-1.10.0-py27_0 …
installing: snowballstemmer-1.2.1-py27_0 …
installing: sockjs-tornado-1.0.3-py27_0 …
installing: sphinx-1.5.1-py27_0 …
installing: spyder-3.1.2-py27_0 …
installing: sqlalchemy-1.1.5-py27_0 …
installing: sqlite-3.13.0-0 …
installing: ssl_match_hostname-3.4.0.2-py27_1 …
installing: statsmodels-0.6.1-np111py27_1 …
installing: subprocess32-3.2.7-py27_0 …
installing: sympy-1.0-py27_0 …
installing: terminado-0.6-py27_0 …
installing: tk-8.5.18-0 …
installing: toolz-0.8.2-py27_0 …
installing: tornado-4.4.2-py27_0 …
installing: traitlets-4.3.1-py27_0 …
installing: unicodecsv-0.14.1-py27_0 …
installing: wcwidth-0.1.7-py27_0 …
installing: werkzeug-0.11.15-py27_0 …
installing: wheel-0.29.0-py27_0 …
installing: widgetsnbextension-1.2.6-py27_0 …
installing: wrapt-1.10.8-py27_0 …
installing: xlrd-1.0.0-py27_0 …
installing: xlsxwriter-0.9.6-py27_0 …
installing: xlwt-1.2.0-py27_0 …
installing: xz-5.2.2-1 …
installing: yaml-0.1.6-0 …
installing: zeromq-4.1.5-0 …
installing: zlib-1.2.8-3 …
installing: anaconda-4.3.0-np111py27_0 …
installing: ruamel_yaml-0.11.14-py27_1 …
installing: conda-4.3.8-py27_0 …

:: Continuum Analytics, Inc. creating default environment…
installation finished. Do you wish the installer to prepend the
Anaconda2 install location to PATH in your /home/simon/.bashrc ?
[yes|no] [no] >>> yes

You may wish to edit your .bashrc or prepend the Anaconda2 install
location:

exportPATH=/home/simon/anaconda2/bin: PATH

Thank you for installing Anaconda2!

Share your notebooks and packages on Anaconda Cloud! Sign up for free:
https://anaconda.org

第三步,编译配置环境变量

[simon@Server1 ~]$ vi .bashrc
# .bashrc

# Source global definitions
if [ -f /etc/bashrc ]; then
        . /etc/bashrc
fi

# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=

# User specific aliases and functions
export PATH=/home/simon/anaconda2/bin:$PATH

2. 安装xgboost

第四步,进入~/xgboost/python-package目录安装,报错,因为找的是默认的python版本,权限不足

[simon@Server1 python-package]$ python setup.py install

提示:

Install libxgboost from: [‘../lib/libxgboost.so’]
running install
error: can’t create or remove files in install directory

The following error occurred while trying to add or remove files in the
installation directory:

[Errno 13] Permission denied: '/usr/lib/python2.7/site-packages/test-easy-install-15552.write-test'

The installation directory you specified (via –install-dir, –prefix, or
the distutils default setting) was:

/usr/lib/python2.7/site-packages/

Perhaps your account does not have write access to this directory? If the
installation directory is a system-owned directory, you may need to sign in
as the administrator or “root” account. If you do not have administrative
access to this machine, you may wish to choose a different installation
directory, preferably one that is listed in your PYTHONPATH environment
variable.

For information on other options, you may wish to consult the
documentation at:

https://pythonhosted.org/setuptools/easy_install.html

Please make the appropriate changes for your system and try again.

第五步,更改python版本
修改~/.bashrc,增加

alias python='/home/simon/anaconda2/bin/python2.7'

然后

source ~/.bashrc

输入python命令检查一下,变成了Anaconda Python,OK。

[simon@Server1 ~]$ python

显示:

Python 2.7.13 |Anaconda 4.3.0 (64-bit)| (default, Dec 20 2016, 23:09:15)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org

第六步,继续安装
继续进入~/xgboost/python-package目录安装

[simon@Server1 python-package]$ python setup.py install

显示为:

Install libxgboost from: [‘../lib/libxgboost.so’]
running install
running bdist_egg
running egg_info
creating xgboost.egg-info
writing requirements to xgboost.egg-info/requires.txt
writing xgboost.egg-info/PKG-INFO
writing top-level names to xgboost.egg-info/top_level.txt
writing dependency_links to xgboost.egg-info/dependency_links.txt
writing manifest file ‘xgboost.egg-info/SOURCES.txt’
reading manifest file ‘xgboost.egg-info/SOURCES.txt’
reading manifest template ‘MANIFEST.in’
warning: no files found matching ‘*’ under directory ‘xgboost/include’
warning: no files found matching ‘*’ under directory ‘xgboost/src’
warning: no files found matching ‘*’ under directory ‘xgboost/make’
warning: no files found matching ‘*’ under directory ‘xgboost/rabit’
warning: no files found matching ‘*’ under directory ‘xgboost/lib’
warning: no files found matching ‘*’ under directory ‘xgboost/dmlc-core’
warning: no previously-included files matching ‘*.o’ found anywhere in distribution
warning: no previously-included files matching ‘*.a’ found anywhere in distribution
warning: no previously-included files matching ‘*.pyo’ found anywhere in distribution
warning: no previously-included files matching ‘*.pyc’ found anywhere in distribution
writing manifest file ‘xgboost.egg-info/SOURCES.txt’
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build
creating build/lib
creating build/lib/xgboost
copying xgboost/callback.py -> build/lib/xgboost
copying xgboost/compat.py -> build/lib/xgboost
copying xgboost/core.py -> build/lib/xgboost
copying xgboost/libpath.py -> build/lib/xgboost
copying xgboost/plotting.py -> build/lib/xgboost
copying xgboost/rabit.py -> build/lib/xgboost
copying xgboost/sklearn.py -> build/lib/xgboost
copying xgboost/training.py -> build/lib/xgboost
copying xgboost/init.py -> build/lib/xgboost
copying xgboost/VERSION -> build/lib/xgboost
copying xgboost/build-python.sh -> build/lib/xgboost
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/xgboost
copying build/lib/xgboost/callback.py -> build/bdist.linux-x86_64/egg/xgboost
copying build/lib/xgboost/compat.py -> build/bdist.linux-x86_64/egg/xgboost
copying build/lib/xgboost/core.py -> build/bdist.linux-x86_64/egg/xgboost
copying build/lib/xgboost/libpath.py -> build/bdist.linux-x86_64/egg/xgboost
copying build/lib/xgboost/plotting.py -> build/bdist.linux-x86_64/egg/xgboost
copying build/lib/xgboost/rabit.py -> build/bdist.linux-x86_64/egg/xgboost
copying build/lib/xgboost/sklearn.py -> build/bdist.linux-x86_64/egg/xgboost
copying build/lib/xgboost/training.py -> build/bdist.linux-x86_64/egg/xgboost
copying build/lib/xgboost/init.py -> build/bdist.linux-x86_64/egg/xgboost
copying build/lib/xgboost/VERSION -> build/bdist.linux-x86_64/egg/xgboost
copying build/lib/xgboost/build-python.sh -> build/bdist.linux-x86_64/egg/xgboost
byte-compiling build/bdist.linux-x86_64/egg/xgboost/callback.py to callback.pyc
byte-compiling build/bdist.linux-x86_64/egg/xgboost/compat.py to compat.pyc
byte-compiling build/bdist.linux-x86_64/egg/xgboost/core.py to core.pyc
byte-compiling build/bdist.linux-x86_64/egg/xgboost/libpath.py to libpath.pyc
byte-compiling build/bdist.linux-x86_64/egg/xgboost/plotting.py to plotting.pyc
byte-compiling build/bdist.linux-x86_64/egg/xgboost/rabit.py to rabit.pyc
byte-compiling build/bdist.linux-x86_64/egg/xgboost/sklearn.py to sklearn.pyc
byte-compiling build/bdist.linux-x86_64/egg/xgboost/training.py to training.pyc
byte-compiling build/bdist.linux-x86_64/egg/xgboost/init.py to init.pyc
installing package data to build/bdist.linux-x86_64/egg
running install_data
copying ../lib/libxgboost.so -> build/bdist.linux-x86_64/egg/xgboost
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying xgboost.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying xgboost.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying xgboost.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying xgboost.egg-info/not-zip-safe -> build/bdist.linux-x86_64/egg/EGG-INFO
copying xgboost.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying xgboost.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
creating dist
creating ‘dist/xgboost-0.6-py2.7.egg’ and adding ‘build/bdist.linux-x86_64/egg’ to it
removing ‘build/bdist.linux-x86_64/egg’ (and everything under it)
Processing xgboost-0.6-py2.7.egg
creating /data/ss_deploy/anaconda2/lib/python2.7/site-packages/xgboost-0.6-py2.7.egg
Extracting xgboost-0.6-py2.7.egg to /data/ss_deploy/anaconda2/lib/python2.7/site-packages
Adding xgboost 0.6 to easy-install.pth file

Installed /data/ss_deploy/anaconda2/lib/python2.7/site-packages/xgboost-0.6-py2.7.egg
Processing dependencies for xgboost==0.6
Searching for scipy==0.18.1
Best match: scipy 0.18.1
Adding scipy 0.18.1 to easy-install.pth file

Using /data/ss_deploy/anaconda2/lib/python2.7/site-packages
Searching for numpy==1.11.3
Best match: numpy 1.11.3
Adding numpy 1.11.3 to easy-install.pth file

Using /data/ss_deploy/anaconda2/lib/python2.7/site-packages
Finished processing dependencies for xgboost==0.6

验证安装是否成功

第七步,验证安装是否成功
找个例子看看是否安装成功,进入~/xgboost/demo/guide-python目录

[simon@Server1 guide-python]$ python basic_walkthrough.py

显示为:

[10:10:39] 6513x127 matrix with 143286 entries loaded from ../data/agaricus.txt.train
[10:10:39] 1611x127 matrix with 35442 entries loaded from ../data/agaricus.txt.test
[0] eval-error:0.042831 train-error:0.046522
[1] eval-error:0.021726 train-error:0.022263
error=0.021726
[10:10:39] 1611x127 matrix with 35442 entries loaded from dtest.buffer
start running example of build DMatrix from scipy.sparse CSR Matrix
[0] eval-error:0.042831 train-error:0.046522
[1] eval-error:0.021726 train-error:0.022263
start running example of build DMatrix from scipy.sparse CSC Matrix
[0] eval-error:0.042831 train-error:0.046522
[1] eval-error:0.021726 train-error:0.022263
start running example of build DMatrix from numpy array
[0] eval-error:0.042831 train-error:0.046522
[1] eval-error:0.021726 train-error:0.022263

安装成功。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值