{ "cells": [ { "cell_type": "markdown", "metadata": { "toc": true }, "source": [ "
The Mushroom Edibility Classifier is an MVP for CNN multiclass classification model.
\n",
"It has been trained after gathering 5500 mushroom images through Web Scraping techniques from the following web sites:
\n",
"- Mushroom World
\n",
"- Wild Food UK
\n",
"- Fungipedia<\n",
"
Note: model created solely and exclusively for academic purposes. The results provided by the model should never be considered definitive as the accuracy of the model is not guaranteed.
\n", "\n", "MODEL METRICS:
\n", "\n", " | precision | \n", "recall | \n", "f1-score | \n", "support | \n", "
---|---|---|---|---|
Edible | \n", "0.61 | \n", "0.70 | \n", "0.65 | \n", "481 | \n", "
Inedible | \n", "0.67 | \n", "0.69 | \n", "0.68 | \n", "439 | \n", "
Poisonous | \n", "0.52 | \n", "0.28 | \n", "0.36 | \n", "192 | \n", "
\n", " | ||||
Global Accuracy | \n", "\n", " | \n", " | 0.63 | \n", "1112 | \n", "
Macro Average | \n", "0.60 | \n", "0.56 | \n", "0.57 | \n", "1112 | \n", "
Weighted Average | \n", "0.62 | \n", "0.63 | \n", "0.61 | \n", "1112 | \n", "
Author: Íñigo Sarralde Alzórriz
\n", "\n", "\n", "'''\n", "\n", "iface = gr.Interface(fn=predict_image, \n", " inputs=image, \n", " outputs=label,\n", " interpretation='default',\n", " title = title,\n", " description = description,\n", " theme = 'darkpeach',\n", " examples = examples,\n", " thumbnail = thumbnail,\n", " article = article,\n", " allow_flagging = False,\n", " allow_screenshot = False, \n", " )\n", "iface.launch()" ] } ], "metadata": { "accelerator": "GPU", "colab": { "collapsed_sections": [ "eRTY-COfOwwD", "ip1P14xN-uSX", "VaNHXO2N_Hv-", "mhPpAK2bMyQZ", "rEI-mXrkU4ku" ], "name": "PrevioTFM3.ipynb", "provenance": [] }, "kernelspec": { "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.8.12" }, "toc": { "base_numbering": 1, "nav_menu": {}, "number_sections": true, "sideBar": true, "skip_h1_title": false, "title_cell": "Table of Contents", "title_sidebar": "Contents", "toc_cell": true, "toc_position": { "height": "877px", "left": "70px", "top": "111.125px", "width": "316.771px" }, "toc_section_display": true, "toc_window_display": false } }, "nbformat": 4, "nbformat_minor": 1 }