The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
How to get F_score in Naive Bayes sentiment analysis
HeikoeWin786
Member Posts: 64 Contributor I
Dear all,
I am getting an error when I connect the performance matrix (binomial) to the model.
I need to calculate F_score as my datasets is imbalance..
Will be truly appreciated if anyone of you faced this issue before or can suggest me the way out here.
thanks a lot in advance,
regards,
Heikoe
I am getting an error when I connect the performance matrix (binomial) to the model.
I need to calculate F_score as my datasets is imbalance..
Will be truly appreciated if anyone of you faced this issue before or can suggest me the way out here.
thanks a lot in advance,
regards,
Heikoe
Tagged:
0
Best Answer
-
jacobcybulski Member, University Professor Posts: 391 UnicornYes, pretty much spot on, you can balance the training set to avoid the model bias but you apply the model to a test set which has a mix of label classes which is representative of the population. Just ensure that if you do any pre-processing for training you will need to do exactly the same pre-processing for a test set (except the class balancing) , using the pre-processing models from the training run (you can save them and then retrieve them later).
5
Answers
Lindon Ventures
Data Science Consulting from Certified RapidMiner Experts
Hello Jacob, thanks a lot for explanation. For this, if I understood correctly,
1) Retrieve training dataset --> SMOTE --> Pre-processing the data (Process data to doc) --> NBC --> Store the model
2) Retrieve training dataset --> Pre-processing the data (Process data to doc) -->apply the model (which we stored in step 1)
Am I correct?
thanks much,
Heikoe
Fully understood, Jacob. I will try as advised. Much appreciated for your time and help.
Regards,
Heikoe