Skip to content

Classification Using Factorization Machines #21

Closed
@ThakurRajAnand

Description

@ThakurRajAnand

Thank you for this great package. Somehow, FM is not returning the probabilities for a classification problem and I can't find any parameter to force that as well. Please have a look at my code below and let me know if I am missing something

fm <- FactorizationMachine$new(learning_rate_w = learning_rate, rank = rank, lambda_w = lambda1, lambda_v = lambda2, task = "classification", intercept = TRUE, learning_rate_v = learning_rate)
fm$fit(trainSparse, target, n_iter = iter)
pred <- fm$predict(testSparse)

Code runs without any issues but returns class.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions