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

logistic loss not working? #129

Closed
josepablog opened this issue Dec 5, 2016 · 1 comment
Closed

logistic loss not working? #129

josepablog opened this issue Dec 5, 2016 · 1 comment

Comments

@josepablog
Copy link

josepablog commented Dec 5, 2016

I trained a model lfm with logistic loss.

lfm = lightfm.LightFM(no_components=1, loss="logistic")
lfm.fit(sparse_positive, epochs=100)
lfm.predict(students,  items)

Returns:

array([ 7.49537325,  8.20262432,  7.60994577, ...,  4.16664028,
        5.1302681 ,  3.18788409])

Shouldn't the output be bounded [0..1]?

@maciejkula
Copy link
Collaborator

I think what's happening is that the sigmoid function is simply not applied to the outputs.

Arguably it should be, but I'm hesitant to make this fix as it would change the public API in a way that's not backwards-compatible.

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