Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chocolate Classification using DL #572

Merged

Conversation

Arihant-Bhandari
Copy link
Contributor

@Arihant-Bhandari Arihant-Bhandari commented May 15, 2024

Pull Request for DL-Simplified 💡

Issue Title : #553 [Model Enhancement]: Chocolate Classification using DL

Closes: #553 [Model Enhancement]: Chocolate Classification using DL

Describe the add-ons or changes you've made 📃

introduced a new CNN architecture incorporating NADAM and ELU as optimizer and activation respectively, attention mechanism on overall model, changed data loading mechanism, introduced true image-extension checking allowing removal of unwanted images based on extensions like .webp, increased metrics. To prevent overfitting L2 regularizer or Ridge Regression is introduced to the model.

Type of change ☑️

What sort of change have you made:

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Code style update (formatting, local variables)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested? ⚙️

Following metrics were used to evaluate the performance of the model:

Testing metrics on model:

Accuracy: 0.9696969696969697
Precision: 0.9090909090909091
Recall: 1.0
F1 Score: 0.9523809523809523
Confusion Matrix:
[[22 1]
[ 0 10]]
AUC: 0.9782608695652174

Testing Loss: 0.3878534436225891

Checklist: ☑️

  • My code follows the guidelines of this project.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly wherever it was hard to understand.
  • I have made corresponding changes to the documentation.
  • My changes generate no new warnings.
  • I have added things that prove my fix is effective or that my feature works.
  • Any dependent changes have been merged and published in downstream modules.

Copy link

Our team will soon review your PR. Thanks @Arihant-Bhandari :)

@Arihant-Bhandari
Copy link
Contributor Author

@abhisheks008 hi, i have started the PR, pls check codebase, if any issues, discrepancies or errors, i would be more than glad to correct. if any suggestions regarding commenting and all, i would be glad to hear them. Thank you for your time reviewing.

Copy link
Owner

@abhisheks008 abhisheks008 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you removed the existing .ipynb file? Please add your code into the existing file and enhance the project. No need to remove the existing project. Please update the notebook file.

@Arihant-Bhandari

@abhisheks008 abhisheks008 added Status: Requested Changes Changes requested. gssoc Girlscript Summer of Code 2024 labels May 16, 2024
@Arihant-Bhandari
Copy link
Contributor Author

Arihant-Bhandari commented May 16, 2024

@abhisheks008 hi, as told, i have updated things into the original file, updated README with metrics and image, as well as enhanced readability of the README, mentioned enhancers with name and GITHUB-ID. the model, the .ipynb file and README have been sent as part of evaluation, pls check. thank you for your time and patience.

the existing file was untouched before previous submission, i have added things into the original as well as included comments as mush as possible for readability.

@Arihant-Bhandari
Copy link
Contributor Author

ahh finally got what you talked abt on editing OG file, so sorry for this i guess i must have set outputs back to nill, i will correct this followup , extremely sorry for this mixup.

@abhisheks008
Copy link
Owner

ahh finally got what you talked abt on editing OG file, so sorry for this i guess i must have set outputs back to nill, i will correct this followup , extremely sorry for this mixup.

No problem.

@Arihant-Bhandari Arihant-Bhandari force-pushed the enhance_chocolate_detect branch from 0bfdc26 to 7ca289d Compare May 16, 2024 09:27
@Arihant-Bhandari
Copy link
Contributor Author

Arihant-Bhandari commented May 16, 2024

hi @abhisheks008 as told, re-did things, re-did README, enhanced README, added acc image, added saved model. file is the original with my work as well as graph code for just plotting accuracy. i also added signatures with ID's for both readme and model enhancement.

also i wanted to ask if you could edit the README on both this as well as Colour Detection using DL, the attached images have not been configured to display CNN Attention acc graph, pls edit both README.md files.

thank you for your time and patience.

@abhisheks008
Copy link
Owner

hi @abhisheks008 as told, re-did things, re-did README, enhanced README, added acc image, added saved model. file is the original with my work as well as graph code for just poltting accuracy. i also added signatures with ID's for both readme and model enhancement.

also i wanted to ask if you could edit the README on both this as well as Colour Detection using DL, the attached images have not been configured to display CNN Attention acc graph, pls edit both README.md files.

thank you for your time and patience.

If you wish you can do the changes, this will help you get an upgradation in the level of the issue. It's an opportunity for you to make this contribution as Level 3.
@Arihant-Bhandari

Copy link
Owner

@abhisheks008 abhisheks008 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

Please fix this issue.

@Arihant-Bhandari
Copy link
Contributor Author

Arihant-Bhandari commented May 16, 2024

hi @abhisheks008 as told, re-did things, re-did README, enhanced README, added acc image, added saved model. file is the original with my work as well as graph code for just poltting accuracy. i also added signatures with ID's for both readme and model enhancement.
also i wanted to ask if you could edit the README on both this as well as Colour Detection using DL, the attached images have not been configured to display CNN Attention acc graph, pls edit both README.md files.
thank you for your time and patience.

If you wish you can do the changes, this will help you get an upgradation in the level of the issue. It's an opportunity for you to make this contribution as Level 3. @Arihant-Bhandari

hi so the thing is, when i originally pushed the file, the link in the Colour Detection README was for the bin in my own repo, on pushing the link changed to DL-Simplified bin, so if i want to add changes to that i would have to be issuing a README Enhancement issue for it. similarly for Chocolate detection, thats the issue with image you have tagged as change. my code file is ready i have made all the necessary changes for this issue's completion.

hence i would like to know your opinion on the grading scheme for these PRs, would you allow another issue to be raised for both project's README enhancements for images at same time in single issue ?

thanks for listening

@Arihant-Bhandari
Copy link
Contributor Author

the image bin link is not updated dynamically on push to this repo's image directory, so if you go back to Colour Detection using DL folder, the README would have CNN-Attention image missing since the link is set on my cloned repo, which is not getting picked due to different repos.

@Arihant-Bhandari
Copy link
Contributor Author

i was checking up on things in the repo and noticed this, hence leaving the Chocolate classification README with empty link so that a new issue can be raised and committed to setting link properly

@Arihant-Bhandari
Copy link
Contributor Author

would you accept raising this issue to level3 if i were to say, update that README in this PR ? so this PR would finally include edited .ipynb file with CNN-ATTENTION, model for this, readme file with missing picture link whcih i will update in the next proeject i had asked you for , and finally the image file for this project.

@abhisheks008
Copy link
Owner

If you can do the changes in this PR itself then only it can be raised to Level 3. If you are planning to enhance the READMEs by creating separate issues then, you'll get 1 point each for every README enhancement. Project admins had a clear discussion with the core team regarding the README enhancment issues, as many are using generative scripts and making changes in the README. That's why I am not accepting any README enhancement issues from the contributors.

@Arihant-Bhandari
Copy link
Contributor Author

Ohhhh , cool then , I will edit the colour detection README , push in this PR and let you know , thanks for replying @abhisheks008

@Arihant-Bhandari
Copy link
Contributor Author

@abhisheks008 i have edited the files as required, kindly review and approve the PR, thank you for your time and patience in guiding me ❤️.

@Arihant-Bhandari
Copy link
Contributor Author

@abhisheks008 i have changed the README so that it can pick up the image from your end as soon as this PR is merged, i just configured the paths pointing towards your file which is currently nonexistent but will start existing on PR merge. the image is one of the commits i am pushing in this PR.

@abhisheks008
Copy link
Owner

image

Please fix this issue.

Hi @Arihant-Bhandari this issue is not fixed yet! :(

@Arihant-Bhandari
Copy link
Contributor Author

Hi, the issue is coming up because the link is the future repo's link , the moment this PR is pushed , the link will be active to be displayed on the README

@Arihant-Bhandari
Copy link
Contributor Author

If I were to add the link on my repo and push it will not be able to trace back the link to pushed files, that's why I have made things so that the moment this PR is pushed , things start working on the README.md end.

@abhisheks008
Copy link
Owner

No need to put that, use the existing/current URL, GitHub will automatically fix that once that is merged in the main repo.

@Arihant-Bhandari Arihant-Bhandari force-pushed the enhance_chocolate_detect branch from 565f3f4 to c230cdb Compare May 17, 2024 04:44
@Arihant-Bhandari
Copy link
Contributor Author

Arihant-Bhandari commented May 17, 2024

@abhisheks008 hi , I have fixed all issues , pls check

Appropriate files have been added , README for colour detection has been corrected , README for chocolate detection has been enhanced , best model for CNN-Attention has been added as part of submission along side original code and ACCURACY graph for CNN-Attention

Copy link
Owner

@abhisheks008 abhisheks008 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Phew! Your PR is approved and ready to be merged.
@Arihant-Bhandari

Show some love and support by starring this repository 🌟

@abhisheks008 abhisheks008 added Status: Approved Approved PR by the PA. level 3 Level 3 for GSSOC and removed Status: Requested Changes Changes requested. labels May 17, 2024
@abhisheks008 abhisheks008 merged commit fac5465 into abhisheks008:main May 17, 2024
@Arihant-Bhandari
Copy link
Contributor Author

thank you for your time and patience for this project, really glad to work on this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gssoc Girlscript Summer of Code 2024 level 3 Level 3 for GSSOC Points Updated Status: Approved Approved PR by the PA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Model Enhancement]: Chocolate Classification using DL
2 participants