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

Topic modeling for #TidyTuesday Taylor Swift lyrics | Julia Silge #97

Open
utterances-bot opened this issue Jan 22, 2024 · 4 comments
Open

Comments

@utterances-bot
Copy link

Topic modeling for #TidyTuesday Taylor Swift lyrics | Julia Silge

A data science blog

https://juliasilge.com/blog/taylor-swift/

Copy link

Am getting an error message

tidy(topic_model, matrix = "lift")
Error in UseMethod("tidy") :
no applicable method for 'tidy' applied to an object of class "STM"

@juliasilge
Copy link
Owner

@AlinneVeiga you'll need to make sure that you have installed tidytext and then also load the package via library(tidytext).

If you still have problems, can you create a reprex (a minimal reproducible example) for this? The goal of a reprex is to make it easier for us to recreate your problem so that we can understand it and/or fix it. If you've never heard of a reprex before, you may want to start with the tidyverse.org help page. Thanks! 🙌

Copy link

hi julia i have multioutputs (the target variable represent 7 variables ) , i tried this code rain %>%
recipe(CARTE_VISA+DECES+MRH+PACK_BLEDI_ARE+TOUT_EN_UN+COMPTE_D_EPARGNE_ZERO+COMPTES_DEVISES~.) and does not work , is there any way to predict these

@juliasilge
Copy link
Owner

@mohamedelhilaltek It's hard to tell from just that info. Can you create a reprex (a minimal reproducible example) for this? The goal of a reprex is to make it easier for others to recreate your problem so that we can understand it and/or fix it. If you've never heard of a reprex before, you may want to start with the tidyverse.org help page. For classification where the outcome has more than 2 levels, you can use an example data such as scat (predict the Species).

Once you have a reprex, I recommend posting on RStudio Community, which is a great forum for getting help with these kinds of modeling questions. Thanks! 🙌

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

4 participants