A Comparative Study of TF-IDF and Count Vectorizer under Random State Changes in a Random Forest Classifier for Emotion Detection
| dc.contributor.author | Kooptiwoot S. | |
| dc.contributor.author | Kooptiwoot S. | |
| dc.contributor.correspondence | Kooptiwoot S. | |
| dc.contributor.other | Mahidol University | |
| dc.date.accessioned | 2026-05-10T18:23:30Z | |
| dc.date.available | 2026-05-10T18:23:30Z | |
| dc.date.issued | 2026-01-01 | |
| dc.description.abstract | In machine learning processes, parameter settings affect model accuracy. Text-based emotion detection requires stable and accurate models, making parameter choices, such as the random state, increasingly important. Previous studies usually set the random state to 42, claiming that this should be the best for obtaining good accuracy. This study examined random state settings, experimenting with values from 1 to 720 and observing the results in accuracy. In addition, a dataset was employed for emotion detection using the Random Forest (RF) classifier with two vectorizers, TF-IDF and Count. The results show that different random state settings affect model accuracy. In the training subset, the TF-IDF vectorizer offered higher and more stable accuracy than the Count vectorizer. However, the Count vectorized achieved higher accuracy on both the validation and test sets. | |
| dc.identifier.citation | Engineering Technology and Applied Science Research Vol.16 No.2 (2026) , 33247-33252 | |
| dc.identifier.doi | 10.48084/etasr.16158 | |
| dc.identifier.eissn | 17928036 | |
| dc.identifier.issn | 22414487 | |
| dc.identifier.scopus | 2-s2.0-105037642873 | |
| dc.identifier.uri | https://repository.li.mahidol.ac.th/handle/123456789/116645 | |
| dc.rights.holder | SCOPUS | |
| dc.subject | Materials Science | |
| dc.subject | Computer Science | |
| dc.subject | Engineering | |
| dc.title | A Comparative Study of TF-IDF and Count Vectorizer under Random State Changes in a Random Forest Classifier for Emotion Detection | |
| dc.type | Article | |
| mu.datasource.scopus | https://www.scopus.com/inward/record.uri?partnerID=HzOxMe3b&scp=105037642873&origin=inward | |
| oaire.citation.endPage | 33252 | |
| oaire.citation.issue | 2 | |
| oaire.citation.startPage | 33247 | |
| oaire.citation.title | Engineering Technology and Applied Science Research | |
| oaire.citation.volume | 16 | |
| oairecerif.author.affiliation | Siriraj Hospital | |
| oairecerif.author.affiliation | Suan Sunandha Rajabhat University |
