juliasilge.com icon indicating copy to clipboard operation
juliasilge.com copied to clipboard

Topic modeling for #TidyTuesday Taylor Swift lyrics | Julia Silge

Open utterances-bot opened this issue 1 year ago • 4 comments

Topic modeling for #TidyTuesday Taylor Swift lyrics | Julia Silge

A data science blog

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

utterances-bot avatar Jan 22 '24 19:01 utterances-bot

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"

AlinneVeiga avatar Jan 22 '24 19:01 AlinneVeiga

@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! 🙌

juliasilge avatar Jan 22 '24 20:01 juliasilge

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

mohamedelhilaltek avatar May 10 '24 05:05 mohamedelhilaltek

@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! 🙌

juliasilge avatar May 10 '24 14:05 juliasilge