Fortune Telling Collection - Fortune-telling birth date - How to calculate the hit rate of ks curve of logistic regression model?
How to calculate the hit rate of ks curve of logistic regression model?
To calculate the hit rate, it is necessary to set a threshold first. The samples with the model prediction score greater than or equal to this threshold are regarded as positive examples, and the samples with less than this threshold are regarded as counter examples. Then, according to the comparison result between the actual tag and the predicted tag, the number of samples predicted as positive cases is counted and divided by the total number of samples predicted as positive cases, and the hit rate can be obtained.
For example, if the threshold is set to 0.5 and 100 samples are predicted as positive cases, and 80 of them are actually positive cases, the hit rate is 80%.
It should be noted that the hit rate is only one aspect of the sample prediction effect and cannot be used as an evaluation index alone. In practical application, the performance of the model can be comprehensively evaluated by combining other indicators such as accuracy, recall and F 1 value.
In a word, when calculating the hit rate in the ks curve of logistic regression model, it is necessary to set a threshold to count the proportion of positive cases in the samples predicted as positive cases. In the model evaluation, it is necessary to combine other indicators for comprehensive evaluation.
- Previous article:Famous scholar Zhao, good guy and bad guy, score.
- Next article:Xinyu dialect fortune telling _ Xinyu dialect fortune telling, hilarious.
- Related articles
- Sanjay fortune telling _ Sanjay's real name
- Funny Guizhou fortune telling
- Is fortune telling true? Is fortune telling true? Is fortune telling true or false?
- What does fate mean? What does fate mean?
- Girlfriend addicted to fortune telling
- Fortune telling is a job.
- Born in 1988 at 8:00-9:00 am on the tenth day of the ninth lunar month, female, what is her fate? What are the five elements missing? How to overcome it?
- How to calculate the five elements of numerology of a birth and the life span of a birth?
- Which star girls are born hard to marry?
- Do you blame Huang Taiji for the tragedy of Da Yuer? The person I trusted the most revealed the secret. Poor dourgen.