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

R Session aborted #41

Closed
naggefreschle opened this issue Mar 17, 2023 · 4 comments
Closed

R Session aborted #41

naggefreschle opened this issue Mar 17, 2023 · 4 comments

Comments

@naggefreschle
Copy link

In R Studio I receive the notification "R Session Aborted" when runnung ContentBased()
Additionally it shows:

Error in .ContentBased(inputs$processed_X, inputs$processed_U, inputs$processed_I, :
BLAS/LAPACK routine 'DLASCLS' gave error code -4

dim(X): 6043 2416
dim(U): 6038 4
dim(I): 2416 13

@david-cortes
Copy link
Owner

Thanks for the bug report. Will fix this soon, but in the meantime: calling ContentBased requires having the same number of rows in X and U, without padding either with NAs to accommodate the other.

@david-cortes
Copy link
Owner

Now it should (a) avoid aborting the R session when something like this fails; (b) throw an informative message if the data is not suitable for default option start_with_ALS=TRUE.

To install the latest version from github:

remotes::install_github("david-cortes/cmfrec")

@naggefreschle
Copy link
Author

I already saw the problem with different dimensions and fixed it.
I still receive the error about DLASCLS. Where is this coming from?
Rstudio is not aborting anymore

@david-cortes
Copy link
Owner

Thanks for the update. I've now expanded a bit the docs to add that option start_with_ALS=TRUE can lead to errors like this. If you are observing this error, you might probably need to pass start_with_ALS=FALSE and increase the number of iterations (maxiter), although it might be a symptom that there is something wrong with your data (e.g. empty or duplicate users/items).

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