Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Predicting probabilities using pyGAD #29

Closed
p-suresh-kumar started this conversation in Ideas
Discussion options

How to find predict probabilities of a classification model in the pyGAD.

or is there any function in pyGAD to find the ROC curve

You must be logged in to vote

Replies: 1 comment 2 replies

Comment options

PyGAD only optimizes the model and it has nothing to do with calculating metrics like accuracy or creating the ROC curve.

After PyGAD trains the model, then you can use the correct and predicted outputs with other libraries like scikit-learn to calculate the metrics for you.

Please let me know if you have any other questions.

You must be logged in to vote
2 replies
Comment options

Dear GAD,
Thank u v much for your response.
i m getting predictions from your pyGAD only. can u show me how to get the score of best model using sklearn after model training over

Comment options

You can compare the predictions to the correct outputs using the sklearn.metrics.accuracy_score() function. Please check this link: https://scikit-learn.org/stable/modules/generated/sklearn.metrics.accuracy_score.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /