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

Error: Error in mobster:::check_input(x, K, samples, init, tail, epsilon, maxIter, : #43

Closed
arshah18 opened this issue Apr 19, 2022 · 2 comments

Comments

@arshah18
Copy link

arshah18 commented Apr 19, 2022

Hi,
I came across the following error. Do you think it is because I updated recently some packages? Could you please help me to fix this?

Thanks,

library(mobster)
library(tidyr)
library(dplyr)
example_data = Clusters(mobster::fit_example$best)
drivers_rows = c(2239, 3246, 3800)
example_data$is_driver = FALSE
example_data$driver_label = NA
example_data$is_driver[drivers_rows] = TRUE
example_data$driver_label[drivers_rows] = c("DR1", "DR2", "DR3")
# Fit and print the data
fit = mobster_fit(example_data, auto_setup = 'FAST')
​
 [ MOBSTER fit ] 

Error in mobster:::check_input(x, K, samples, init, tail, epsilon, maxIter, : There are some reserved names in the input data that cannot be used, please remove or rename columns: cluster, Tail, C1, C2
Traceback:

1. mobster_fit(example_data, auto_setup = "FAST")
2. mobster:::check_input(x, K, samples, init, tail, epsilon, maxIter, 
 .     fit.type, seed, model.selection, trace)
3. stop("There are some reserved names in the input data that cannot be used, please remove or rename columns: ", 
 .     paste0(fixed_names, collapse = ", "))
@caravagn
Copy link
Collaborator

Hello @arshah18 , I updated your comment to fix the layout (please do check that when you open issues).

Second, I see this error message

There are some reserved names in the input data that cannot be used, please remove or rename columns: cluster, Tail, C1, C2

Hoe about you follow the suggestion "please remove or rename columns ..."

@arshah18
Copy link
Author

It is working now. Thanks @caravagn!

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