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

Expecting a single value: [extent=0] #55

Open
LefterisZ opened this issue May 30, 2024 · 2 comments
Open

Expecting a single value: [extent=0] #55

LefterisZ opened this issue May 30, 2024 · 2 comments

Comments

@LefterisZ
Copy link

Hello, I am getting the below error when updating RcppML from 0.3.7 to the current GitHub release.

The error arises when using either Rcpp_nmf_dense or Rcpp_nmf_sparse. It seems related to C++ since both functions are calling C++ code internally which I cannot figure out since my C++ knowledge is limited to non-existent!

I am using RcppML in one of my packages which will be published soon. Although I will revert to using the 0.3.7 version, where the error is not present, I would love to use and incorporate the latest version of RcppML with all the extra functionality it has!

I tried it even with a random 20x5 matrix:
A <- matrix(rnorm(100), ncol = 5, nrow = 20)

The Error:

<error/rlang_error>
Error:
! Expecting a single value: [extent=0].
Caused by error:
! Expecting a single value: [extent=0].
---
Backtrace:
    ▆
 1. └─RcppML::nmf(data = A, k = 2, maxit = 250, seed = 1)
 2.   └─RcppML:::Rcpp_nmf_dense(...)
@Yunuuuu
Copy link

Yunuuuu commented Jun 6, 2024

The same problem

@florekem
Copy link

This problem occurred to me as well, when running
RcppML::nmf()
Try to load package RcppML and run nmf() function:

library("RcppML")
model <- nmf()

Don't know why?

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

3 participants