You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure why (maybe im getting the wrong order in the factors) but R is giving me the wrong values for sensitivity. As you can see in Figure 1, the model detected the true value (Factor Activated) 6 times while the false megative was 14, therefore, my sens should be 0.3 (TP/(TP+FN), but when using summary for the Confusion Matrix (Figure2), it give me 0.742 of sensitivity. Why is R inverting the values?
Figure 1:
Figure 2:
Here is a CSV with the actual and predicted values that were used to calculate the tests MyData.csv
The text was updated successfully, but these errors were encountered:
You are getting these results because by default {yardstick} uses the first factor level (N_Activated in this case) as the basis for calculating metrics. This means that sensibility is calculated as 23/(23 + 8) = 0.742 as we see.
Not sure why (maybe im getting the wrong order in the factors) but R is giving me the wrong values for sensitivity. As you can see in Figure 1, the model detected the true value (Factor Activated) 6 times while the false megative was 14, therefore, my sens should be 0.3 (TP/(TP+FN), but when using summary for the Confusion Matrix (Figure2), it give me 0.742 of sensitivity. Why is R inverting the values?
Figure 1:
Figure 2:
Here is a CSV with the actual and predicted values that were used to calculate the tests
MyData.csv
The text was updated successfully, but these errors were encountered: