GithubHelp home page GithubHelp logo

Comments (7)

aksnzhy avatar aksnzhy commented on May 21, 2024

你可以添加

export PYTHONPATH=你的xlearn路径/python

到~/.bashrc 下试试。

记得 source ~/.bashrc

from xlearn.

xxllp avatar xxllp commented on May 21, 2024

我在windows 上装出现的问题,但是我在linux下安装也有其他问题,python 包安装好了调用会报错。建议你们整个whl的安装包,省得大家编译。谢谢

from xlearn.

aksnzhy avatar aksnzhy commented on May 21, 2024

xLearn 目前还不能支持 windows,可能会在下一个版本里开始支持。

from xlearn.

xxllp avatar xxllp commented on May 21, 2024

这个倒没啥,但是安装还是比较蛋疼。这个能支持多大的数据

from xlearn.

aksnzhy avatar aksnzhy commented on May 21, 2024

在单机上我们测试过 1 TB 的数据。

from xlearn.

sambling avatar sambling commented on May 21, 2024

xLearn does not currently support Windows and may start supporting it in the next release.

I have problems with Windows, but I have other problems with linux installation. If the python package is installed, the call will report an error. I suggest you install the entire whl package, saving everyone to compile. Thank you

Is this still the case? I used the Cygwin installation instructions and used the pypi source file to install and am getting the same error.

from xlearn.

ismael-elatifi avatar ismael-elatifi commented on May 21, 2024

I faced the same issue and finally managed to install xlearn on Windows 10 with MINGW64 (Git Bash) and Visual Studio 16 2019.
Here are the commands I used :

git clone https://github.com/aksnzhy/xlearn.git
cd xlearn
mkdir build
cd build
cmake ../
cmake --build .

The build should end with an output like this :
########
xlearn_train.vcxproj -> ....\xlearn\build\Debug\xlearn_train.exe
Building Custom Rule ..../xlearn/CMakeLists.txt_
########

cp ./test/c_api/Debug/xlearn_api.dll ../python-package/xlearn/   # THIS IS THE KEY COMMAND TO SOLVE THE PROBLEM BY MAKING THE DLL VISIBLE
cd ../python-package/
pip install .

pip install should end with an output like this :
#########
Successfully built xlearn
Installing collected packages: xlearn
Successfully installed xlearn-0.4.4

#########

Then the import xlearn should pass ok.
And you can run this example script to test your installation :
python ../demo/classification/scikit_learn_demo/example_FM_wine.py

But I still have the issue that it is working only when running the code from command like with the command above.
The same code as in the example does not run inside a Jupyter notebook or inside Pycharm (with same Python 3.8).
In Jupyter or Pycharm the kernel crashes when calling .fit() ...

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.