GithubHelp home page GithubHelp logo

How to install? about xlearn HOT 8 CLOSED

aksnzhy avatar aksnzhy commented on May 21, 2024
How to install?

from xlearn.

Comments (8)

KhaledTo avatar KhaledTo commented on May 21, 2024

This might be useful: https://github.com/aksnzhy/xlearn/blob/master/doc/install.md

from xlearn.

aksnzhy avatar aksnzhy commented on May 21, 2024

You can build xlearn by using cmake. Please see the details in installation page.

from xlearn.

weiweijiuzaizhe avatar weiweijiuzaizhe commented on May 21, 2024

I found there is something wrong in multi-thread compling.
If you use command:
make -j4
sometimes you will meet the error:

[ 34%] Building CXX object src/loss/CMakeFiles/loss.dir/cross_entropy_loss.cc.o
c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
make[2]: *** [gtest/CMakeFiles/gtest.dir/src/gtest-all.cc.o] Error 4
make[1]: *** [gtest/CMakeFiles/gtest.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 35%] Linking CXX shared library libscore.so
[ 36%] Building CXX object src/loss/CMakeFiles/loss.dir/metric.cc.o

If you use command:
make
the compile task will always success.

from xlearn.

aksnzhy avatar aksnzhy commented on May 21, 2024

Thanks for your issue !
But I have never meet this problem and it seems that this error comes from the compiler, not xLearn.
Can you share your compiler and OS information ?

from xlearn.

weiweijiuzaizhe avatar weiweijiuzaizhe commented on May 21, 2024

my compiler and OS information

[root@****:/root 2017-11-28 17:23:38]#cat /proc/version
Linux version 3.10.0-693.2.2.el7.x86_64 ([email protected]) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-16) (GCC) ) #1 SMP Tue Sep 12 22:26:13 UTC 2017
[root@****:/root 2017-11-28 17:25:47]#make -v 
GNU Make 3.82
Built for x86_64-redhat-linux-gnu
Copyright (C) 2010  Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

from xlearn.

HyperGroups avatar HyperGroups commented on May 21, 2024

problem with install the python-interface
Traceback (most recent call last):
File "setup.py", line 15, in
LIB_PATH = [os.path.relpath(libfile, CURRENT_DIR) for libfile in libpath'find_lib_path']
File "xlearn/libpath.py", line 45, in find_lib_path
'Cannot find xlearn Library in the candidate path'
builtin.XLearnLibraryNotFound: Cannot find xlearn Library in the candidate path

from xlearn.

mrgloom avatar mrgloom commented on May 21, 2024

I have build it with gcc 4.9 with no problem.

Also I found that it have setup.py under xlearn/build/python-package and installed it this way:
https://stackoverflow.com/questions/1471994/what-is-setup-py

And after adding to ~/.bashrc export PYTHONPATH=/home/user/deep_learning/data3/xlearn/python-package/xlearn
I get error on import:

Python 3.6.2 |Anaconda custom (64-bit)| (default, Sep 30 2017, 18:42:57) 
[GCC 7.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import xlearn as xl
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/user/deep_learning/data3/xlearn/python-package/xlearn/xlearn.py", line 5, in <module>
    from base import _LIB, XLearnHandle
  File "/home/user/deep_learning/data3/xlearn/python-package/xlearn/base.py", line 20, in <module>
    _LIB = _load_lib()
  File "/home/user/deep_learning/data3/xlearn/python-package/xlearn/base.py", line 13, in _load_lib
    lib_path = find_lib_path()
  File "/home/user/deep_learning/data3/xlearn/python-package/xlearn/libpath.py", line 45, in find_lib_path
    'Cannot find xlearn Library in the candidate path'
libpath.XLearnLibraryNotFound: Cannot find xlearn Library in the candidate path

from xlearn.

aksnzhy avatar aksnzhy commented on May 21, 2024

Did you build your libxlearn library successfully? You can check it in lib directory.

from xlearn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.