Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

读取pandas数据训练loss为nan #353

Open
nxgych opened this issue Dec 18, 2020 · 1 comment
Open

读取pandas数据训练loss为nan #353

nxgych opened this issue Dec 18, 2020 · 1 comment

Comments

@nxgych
Copy link

nxgych commented Dec 18, 2020

------
# DMatrix transition
xdm_train = xl.DMatrix(xtr, ytr)
xdm_test = xl.DMatrix(xte, yte)

# Training task
fm_model = xl.create_fm()  # Use factorization machine
fm_model.setOnDisk()
fm_model.setNoBin()
fm_model.setTrain(xdm_train)    # Training data
fm_model.setValidate(xdm_test)  # Validation data
------

[ ACTION ] Start to train ...
[------------] Epoch Train log_loss Test log_loss Test AUC Time cost (sec)
[ 5% ] 1 -nan -nan 0.500000 2.51
[ 10% ] 2 -nan -nan 0.500000 2.90
[ 15% ] 3 -nan -nan 0.500000 2.50
[ 20% ] 4 -nan -nan 0.500000 2.89

@kyle-pjk
Copy link

一样遇到这个问题。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants