machine-learning - Why does xLearn fit function causes kernel crashes in Jupyter?
问题描述
I'm trying to make CTR (Click through rate) prediction using a python module named 'xlearn'. It enables me to implement a FFM (field-aware factorisation machine) quite easily.
However, I have a problem with the fit function ( supposed to train the model) which crashes the kernel of my jupyter notebook without any error messages.
Here is the code :
import xlearn as xl
ffm_model = xl.create_ffm()
param = {'task':'binary', 'lr':0.2, 'lambda':0.002, 'metric':'acc'}
ffm_model.setTrain('ffm_train.txt')
ffm_model.fit(param, "./model.out") #this line crashes the kernel
I've already tried to fit the model just after python ffm_model = xl.create_ffm()
this also crashes the kernel without any error messages ...
Don't hesitate to share your ideas I'm really stuck here.
解决方案
我没有意识到 xLearn 模块在终端中显示错误消息: Xlearn Imgae 错误消息
推荐阅读
- html - 为什么在 1440 像素宽度的屏幕上查看时,我的社交媒体页脚图标在屏幕外?
- python - 在多个空格但不是单个空格上拆分字符串
- java - 如果条件为真,我如何每秒自动运行一个按钮,直到 de 条件成立?
- github - 在 /blog 目录中安装 Gatsby
- python - 我的 base 10 或一般代码有什么问题
- java - 如何在 TextView 中压倒自动调整大小?
- javascript - Redux 商店在刷新浏览器时不刷新(清除)
- amazon-web-services - S3 存储桶策略不允许 Athena 执行查询
- php - 根据在 WooCommerce 中选择的运输方式添加费用
- python - 从整数列表中返回元素的索引值