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

Multi class data set #36

Closed
EmilHvitfeldt opened this issue Nov 13, 2021 · 3 comments
Closed

Multi class data set #36

EmilHvitfeldt opened this issue Nov 13, 2021 · 3 comments

Comments

@EmilHvitfeldt
Copy link
Member

I'm been working with {themis} documentation, and I had a hard time finding a good example data set that

  1. Includes multiple classes (4 or more)
  2. Didn't have any missing data in the response
  3. Be a reasonable response for the data set

for now, I'm using the credit_data data set with the Home variables but I need to do some prep work

credit_data0 <- credit_data %>%
  filter(Home != "ignore") %>%
  mutate(Home = as.character(Home))

For illustration, it works fine, but I worry about giving the wrong signal by balancing over an obvious non-response

@topepo
Copy link
Member

topepo commented Nov 15, 2021

I suggest using this one:

library(tidymodels)
#> Registered S3 method overwritten by 'tune':
#>   method                   from   
#>   required_pkgs.model_spec parsnip
data(hpc_data)

hpc_data %>% count(class)
#> # A tibble: 4 × 2
#>   class     n
#>   <fct> <int>
#> 1 VF     2211
#> 2 F      1347
#> 3 M       514
#> 4 L       259

Created on 2021-11-15 by the reprex package (v2.0.0)

@EmilHvitfeldt
Copy link
Member Author

Perfect! I felt like I overlooked an example

@github-actions
Copy link

This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.

@github-actions github-actions bot locked and limited conversation to collaborators Mar 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants