aksnzhy / xlearn_doc_cn Goto Github PK
View Code? Open in Web Editor NEWxlearn 中文文档
License: Apache License 2.0
xlearn 中文文档
License: Apache License 2.0
能不能把打印logo和日志加一个开关啊?还要改源码。。。。
请教下:ffm模型的sklearn API - FFMModel 如何使用呢
选择FM模型,读入的是.csv / .txt文件,训练结果 Train log_loss 全为nan。求助,谢谢
import xlearn as xl
fm_model = xl.create_fm() # Use field-aware factorization machine
fm_model.setTrain("D:\software\git\tensorflow-DeepFM\example\data\train.csv") # Training data
param = {'task':'binary', 'lr':0.2, 'lambda':0.002, 'metric':'acc'}
fm_model.fit(param, 'D:\software\git\tensorflow-DeepFM\example\data\out\model.out')
fm_model.setTest("D:\software\git\tensorflow-DeepFM\example\data\test.csv") # Test data
fm_model.setSigmoid() # Convert output to 0-1
fm_model.predict("D:\software\git\tensorflow-DeepFM\example\data\out\model.out", "D:\software\git\tensorflow-DeepFM\example\data\out\output.txt")
结果:
Epoch Train log_loss Time cost (sec)
[ 10% ] 1 nan 0.29
[ 20% ] 2 nan 0.20
[ 30% ] 3 nan 0.20
[ 40% ] 4 nan 0.20
[ 50% ] 5 nan 0.20
[ 60% ] 6 nan 0.20
[ 70% ] 7 nan 0.20
[ 80% ] 8 nan 0.20
[ 90% ] 9 nan 0.20
[ 100% ] 10 nan 0.20
我在本地 windows /linux 系统上都安装了 xlearn , 都能进跑。
在公司服务器上安装了xlearn, 能够使用其加载数据等,
但是一旦训练,fit, 服务器就挂了。
过程:使用Visual Studio 2017编译以后,然后再python-package打开命令行,输入python setup.py install
结果:Traceback (most recent call last):
File "setup.py", line 29, in
LIB_PATH = os.path.relpath(libfile, CURRENT_DIR) for libfile in lib
nd_lib_path']
File "xlearn/libpath.py", line 63, in find_lib_path
'Cannot find xlearn Library in the candidate path'
XLearnLibraryNotFound: Cannot find xlearn Library in the candidate path
请问该如何解决呢?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.