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 when "# Test our predict_model() function" #6

Open
aephidayatuloh opened this issue May 17, 2019 · 1 comment
Open

Error when "# Test our predict_model() function" #6

aephidayatuloh opened this issue May 17, 2019 · 1 comment

Comments

@aephidayatuloh
Copy link

I try to reproduce the work using code from customer_churn.R. But when I ran this block of code bellow (line 150-152), I get the error

> # Test our predict_model() function
> predictions <- predict_model(x = model_keras, newdata = x_test_tbl, type = 'raw') %>% tibble::as_tibble()
Error in `dimnames<-.data.frame`(`*tmp*`, value = list(n)) : 
  invalid 'dimnames' given for data frame

Can you help me to figure out way to solve this?
Thank you

@neural-oracle
Copy link

Hi ... I had same error ... solution to your problem - if still relevant or for future users - should be this one:
thomasp85/lime#139
seems that keras package has new nomen clature ... thus either run the customer churn code with old version of keras and tensor flow ... or update the code by inserting the suggested ... sequential.... as shown under the link above

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