From e3f410bbdc7bbdb76c4f166743bb2e6c1740e596 Mon Sep 17 00:00:00 2001 From: Irina Degtiareva <81694642+irinadidid@users.noreply.github.com> Date: Mon, 17 Jan 2022 15:32:20 +0300 Subject: [PATCH] Delete baking_project-2.ipynb --- baking_project-2.ipynb | 3983 ---------------------------------------- 1 file changed, 3983 deletions(-) delete mode 100644 baking_project-2.ipynb diff --git a/baking_project-2.ipynb b/baking_project-2.ipynb deleted file mode 100644 index dd734e5..0000000 --- a/baking_project-2.ipynb +++ /dev/null @@ -1,3983 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "metadata": { - "id": "YzYu-XRFJrhk" - }, - "source": [ - "### Dependencies \n" - ] - }, - { - "cell_type": "code", - "execution_count": 1, - "metadata": { - "id": "m7v7WNo4dNqw" - }, - "outputs": [], - "source": [ - "import os\n", - "import math\n", - "import numpy as np\n", - "import pandas as pd\n", - "import tensorflow as tf\n", - "import matplotlib.pyplot as plt\n", - "import json\n", - "import platform\n", - "import time\n", - "import pathlib\n" - ] - }, - { - "cell_type": "code", - "execution_count": 2, - "metadata": { - "colab": { - "base_uri": "https://localhost:8080/" - }, - "id": "UAqSrdVLhyDp", - "outputId": "e6c5278d-9329-4a68-fe1c-f4b12542c55a" - }, - "outputs": [ - { - "output_type": "stream", - "name": "stdout", - "text": [ - "Python version: 3.7.12\n", - "Tensorflow version: 2.7.0\n", - "Keras version: 2.7.0\n" - ] - } - ], - "source": [ - "print('Python version:', platform.python_version())\n", - "print('Tensorflow version:', tf.__version__)\n", - "print('Keras version:', tf.keras.__version__)" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "id": "AHnTupAX1I-a" - }, - "source": [ - "### Uploading the initial data" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "id": "ohSCowjg2PBI" - }, - "source": [ - "We will upload the data from Google drive, however the data scourse is https://www.kaggle.com/shuyangli94/food-com-recipes-and-user-interactions" - ] - }, - { - "cell_type": "code", - "execution_count": 3, - "metadata": { - "colab": { - "base_uri": "https://localhost:8080/" - }, - "id": "8Zu_JHw5iTof", - "outputId": "07cbbe2c-28a1-4db2-93bc-afc78e202651" - }, - "outputs": [ - { - "output_type": "stream", - "name": "stdout", - "text": [ - "Drive already mounted at /content/drive; to attempt to forcibly remount, call drive.mount(\"/content/drive\", force_remount=True).\n" - ] - } - ], - "source": [ - "from google.colab import drive\n", - "drive.mount('/content/drive')" - ] - }, - { - "cell_type": "code", - "execution_count": 4, - "metadata": { - "id": "x_63QbWisXFb" - }, - "outputs": [], - "source": [ - "path = '/content/drive/MyDrive/data/RAW_recipes.csv'\n", - "data = pd.read_csv(path)" - ] - }, - { - "cell_type": "code", - "execution_count": 5, - "metadata": { - "colab": { - "base_uri": "https://localhost:8080/", - "height": 613 - }, - "id": "bjR8EHDMuhSN", - "outputId": "c6f51539-445b-44b3-f17b-cd0140da8d3c" - }, - "outputs": [ - { - "output_type": "execute_result", - "data": { - "text/html": [ - "\n", - "
\n", - " | name | \n", - "id | \n", - "minutes | \n", - "contributor_id | \n", - "submitted | \n", - "tags | \n", - "nutrition | \n", - "n_steps | \n", - "steps | \n", - "description | \n", - "ingredients | \n", - "n_ingredients | \n", - "
---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", - "arriba baked winter squash mexican style | \n", - "137739 | \n", - "55 | \n", - "47892 | \n", - "2005-09-16 | \n", - "['60-minutes-or-less', 'time-to-make', 'course... | \n", - "[51.5, 0.0, 13.0, 0.0, 2.0, 0.0, 4.0] | \n", - "11 | \n", - "['make a choice and proceed with recipe', 'dep... | \n", - "autumn is my favorite time of year to cook! th... | \n", - "['winter squash', 'mexican seasoning', 'mixed ... | \n", - "7 | \n", - "
1 | \n", - "a bit different breakfast pizza | \n", - "31490 | \n", - "30 | \n", - "26278 | \n", - "2002-06-17 | \n", - "['30-minutes-or-less', 'time-to-make', 'course... | \n", - "[173.4, 18.0, 0.0, 17.0, 22.0, 35.0, 1.0] | \n", - "9 | \n", - "['preheat oven to 425 degrees f', 'press dough... | \n", - "this recipe calls for the crust to be prebaked... | \n", - "['prepared pizza crust', 'sausage patty', 'egg... | \n", - "6 | \n", - "
2 | \n", - "all in the kitchen chili | \n", - "112140 | \n", - "130 | \n", - "196586 | \n", - "2005-02-25 | \n", - "['time-to-make', 'course', 'preparation', 'mai... | \n", - "[269.8, 22.0, 32.0, 48.0, 39.0, 27.0, 5.0] | \n", - "6 | \n", - "['brown ground beef in large pot', 'add choppe... | \n", - "this modified version of 'mom's' chili was a h... | \n", - "['ground beef', 'yellow onions', 'diced tomato... | \n", - "13 | \n", - "
3 | \n", - "alouette potatoes | \n", - "59389 | \n", - "45 | \n", - "68585 | \n", - "2003-04-14 | \n", - "['60-minutes-or-less', 'time-to-make', 'course... | \n", - "[368.1, 17.0, 10.0, 2.0, 14.0, 8.0, 20.0] | \n", - "11 | \n", - "['place potatoes in a large pot of lightly sal... | \n", - "this is a super easy, great tasting, make ahea... | \n", - "['spreadable cheese with garlic and herbs', 'n... | \n", - "11 | \n", - "
4 | \n", - "amish tomato ketchup for canning | \n", - "44061 | \n", - "190 | \n", - "41706 | \n", - "2002-10-25 | \n", - "['weeknight', 'time-to-make', 'course', 'main-... | \n", - "[352.9, 1.0, 337.0, 23.0, 3.0, 0.0, 28.0] | \n", - "5 | \n", - "['mix all ingredients& boil for 2 1 / 2 hours ... | \n", - "my dh's amish mother raised him on this recipe... | \n", - "['tomato juice', 'apple cider vinegar', 'sugar... | \n", - "8 | \n", - "
\n", - " | name | \n", - "id | \n", - "minutes | \n", - "contributor_id | \n", - "submitted | \n", - "tags | \n", - "nutrition | \n", - "n_steps | \n", - "steps | \n", - "description | \n", - "ingredients | \n", - "n_ingredients | \n", - "
---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", - "arriba baked winter squash mexican style | \n", - "137739 | \n", - "55 | \n", - "47892 | \n", - "2005-09-16 | \n", - "['60-minutes-or-less', 'time-to-make', 'course... | \n", - "[51.5, 0.0, 13.0, 0.0, 2.0, 0.0, 4.0] | \n", - "11 | \n", - "['make a choice and proceed with recipe', 'dep... | \n", - "autumn is my favorite time of year to cook! th... | \n", - "['winter squash', 'mexican seasoning', 'mixed ... | \n", - "7 | \n", - "
1 | \n", - "a bit different breakfast pizza | \n", - "31490 | \n", - "30 | \n", - "26278 | \n", - "2002-06-17 | \n", - "['30-minutes-or-less', 'time-to-make', 'course... | \n", - "[173.4, 18.0, 0.0, 17.0, 22.0, 35.0, 1.0] | \n", - "9 | \n", - "['preheat oven to 425 degrees f', 'press dough... | \n", - "this recipe calls for the crust to be prebaked... | \n", - "['prepared pizza crust', 'sausage patty', 'egg... | \n", - "6 | \n", - "
2 | \n", - "all in the kitchen chili | \n", - "112140 | \n", - "130 | \n", - "196586 | \n", - "2005-02-25 | \n", - "['time-to-make', 'course', 'preparation', 'mai... | \n", - "[269.8, 22.0, 32.0, 48.0, 39.0, 27.0, 5.0] | \n", - "6 | \n", - "['brown ground beef in large pot', 'add choppe... | \n", - "this modified version of 'mom's' chili was a h... | \n", - "['ground beef', 'yellow onions', 'diced tomato... | \n", - "13 | \n", - "
3 | \n", - "alouette potatoes | \n", - "59389 | \n", - "45 | \n", - "68585 | \n", - "2003-04-14 | \n", - "['60-minutes-or-less', 'time-to-make', 'course... | \n", - "[368.1, 17.0, 10.0, 2.0, 14.0, 8.0, 20.0] | \n", - "11 | \n", - "['place potatoes in a large pot of lightly sal... | \n", - "this is a super easy, great tasting, make ahea... | \n", - "['spreadable cheese with garlic and herbs', 'n... | \n", - "11 | \n", - "
4 | \n", - "amish tomato ketchup for canning | \n", - "44061 | \n", - "190 | \n", - "41706 | \n", - "2002-10-25 | \n", - "['weeknight', 'time-to-make', 'course', 'main-... | \n", - "[352.9, 1.0, 337.0, 23.0, 3.0, 0.0, 28.0] | \n", - "5 | \n", - "['mix all ingredients& boil for 2 1 / 2 hours ... | \n", - "my dh's amish mother raised him on this recipe... | \n", - "['tomato juice', 'apple cider vinegar', 'sugar... | \n", - "8 | \n", - "
... | \n", - "... | \n", - "... | \n", - "... | \n", - "... | \n", - "... | \n", - "... | \n", - "... | \n", - "... | \n", - "... | \n", - "... | \n", - "... | \n", - "... | \n", - "
231632 | \n", - "zydeco soup | \n", - "486161 | \n", - "60 | \n", - "227978 | \n", - "2012-08-29 | \n", - "['ham', '60-minutes-or-less', 'time-to-make', ... | \n", - "[415.2, 26.0, 34.0, 26.0, 44.0, 21.0, 15.0] | \n", - "7 | \n", - "['heat oil in a 4-quart dutch oven', 'add cele... | \n", - "this is a delicious soup that i originally fou... | \n", - "['celery', 'onion', 'green sweet pepper', 'gar... | \n", - "22 | \n", - "
231633 | \n", - "zydeco spice mix | \n", - "493372 | \n", - "5 | \n", - "1500678 | \n", - "2013-01-09 | \n", - "['15-minutes-or-less', 'time-to-make', 'course... | \n", - "[14.8, 0.0, 2.0, 58.0, 1.0, 0.0, 1.0] | \n", - "1 | \n", - "['mix all ingredients together thoroughly'] | \n", - "this spice mix will make your taste buds dance! | \n", - "['paprika', 'salt', 'garlic powder', 'onion po... | \n", - "13 | \n", - "
231634 | \n", - "zydeco ya ya deviled eggs | \n", - "308080 | \n", - "40 | \n", - "37779 | \n", - "2008-06-07 | \n", - "['60-minutes-or-less', 'time-to-make', 'course... | \n", - "[59.2, 6.0, 2.0, 3.0, 6.0, 5.0, 0.0] | \n", - "7 | \n", - "['in a bowl , combine the mashed yolks and may... | \n", - "deviled eggs, cajun-style | \n", - "['hard-cooked eggs', 'mayonnaise', 'dijon must... | \n", - "8 | \n", - "
231635 | \n", - "cookies by design cookies on a stick | \n", - "298512 | \n", - "29 | \n", - "506822 | \n", - "2008-04-15 | \n", - "['30-minutes-or-less', 'time-to-make', 'course... | \n", - "[188.0, 11.0, 57.0, 11.0, 7.0, 21.0, 9.0] | \n", - "9 | \n", - "['place melted butter in a large mixing bowl a... | \n", - "i've heard of the 'cookies by design' company,... | \n", - "['butter', 'eagle brand condensed milk', 'ligh... | \n", - "10 | \n", - "
231636 | \n", - "cookies by design sugar shortbread cookies | \n", - "298509 | \n", - "20 | \n", - "506822 | \n", - "2008-04-15 | \n", - "['30-minutes-or-less', 'time-to-make', 'course... | \n", - "[174.9, 14.0, 33.0, 4.0, 4.0, 11.0, 6.0] | \n", - "5 | \n", - "['whip sugar and shortening in a large bowl , ... | \n", - "i've heard of the 'cookies by design' company,... | \n", - "['granulated sugar', 'shortening', 'eggs', 'fl... | \n", - "7 | \n", - "
226647 rows ร 12 columns
\n", - "\n", - " | name | \n", - "description | \n", - "ingredients | \n", - "n_ingredients | \n", - "steps | \n", - "n_steps | \n", - "minutes | \n", - "r_type | \n", - "
---|---|---|---|---|---|---|---|---|
9 | \n", - "beat this banana bread | \n", - "from ann hodgman's | \n", - "['sugar', 'unsalted butter', 'bananas', 'eggs'... | \n", - "9 | \n", - "['preheat oven to 350 degrees', 'butter two 9x... | \n", - "12 | \n", - "70 | \n", - "bread | \n", - "
32 | \n", - "grilled ranch bread | \n", - "buttery and | \n", - "['butter', 'dry ranch dressing mix', 'french b... | \n", - "3 | \n", - "['cream the butter with the dressing mix', 'sp... | \n", - "4 | \n", - "13 | \n", - "bread | \n", - "
47 | \n", - "jeanne s style birthday cake | \n", - "a bakery in winnipeg is famous for this specia... | \n", - "['shortening', 'icing sugar', 'vanilla', 'all-... | \n", - "10 | \n", - "['to prepare base , cut shortening into dry in... | \n", - "25 | \n", - "230 | \n", - "cake | \n", - "
48 | \n", - "jiffy extra moist carrot cake | \n", - "this is a very tasty, moist, carrot cake. a ni... | \n", - "['yellow cake mix', 'vanilla instant pudding m... | \n", - "11 | \n", - "['preheat oven to 350 degrees', 'mix together ... | \n", - "8 | \n", - "50 | \n", - "cake | \n", - "
49 | \n", - "jiffy roasted corn and jalapeno cornbread | \n", - "this is a moist, easy, colorful and delicious ... | \n", - "['whole kernel corn', 'onion', 'red bell peppe... | \n", - "10 | \n", - "['melt butter in a saut pan', 'add the corn , ... | \n", - "10 | \n", - "35 | \n", - "bread | \n", - "
... | \n", - "... | \n", - "... | \n", - "... | \n", - "... | \n", - "... | \n", - "... | \n", - "... | \n", - "... | \n", - "
231618 | \n", - "zwetschgenkuchen plum cake | \n", - "this is a classic german pastry and a deliciou... | \n", - "['margarine', 'all-purpose flour', 'sugar', 'b... | \n", - "13 | \n", - "['prepare pastry: cut margarine into flour , s... | \n", - "11 | \n", - "60 | \n", - "cake | \n", - "
231621 | \n", - "zwieback toast teething cookies | \n", - "a quintessential childhood food. this is a co... | \n", - "['sugar', 'active dry yeast', 'milk', 'butter'... | \n", - "9 | \n", - "['stir together 1 / 2 teaspoon of sugar , the ... | \n", - "23 | \n", - "100 | \n", - "cookie | \n", - "
231624 | \n", - "zwiebelkuchen southwest german onion cake | \n", - "this is a traditional late summer early fall s... | \n", - "['fresh yeast', 'milk', 'flour', 'butter', 'eg... | \n", - "13 | \n", - "['for the dough:', 'dissolve the yeast in the ... | \n", - "10 | \n", - "75 | \n", - "cake | \n", - "
231635 | \n", - "cookies by design cookies on a stick | \n", - "i've heard of the 'cookies by design' company,... | \n", - "['butter', 'eagle brand condensed milk', 'ligh... | \n", - "10 | \n", - "['place melted butter in a large mixing bowl a... | \n", - "9 | \n", - "29 | \n", - "cookie | \n", - "
231636 | \n", - "cookies by design sugar shortbread cookies | \n", - "i've heard of the 'cookies by design' company,... | \n", - "['granulated sugar', 'shortening', 'eggs', 'fl... | \n", - "7 | \n", - "['whip sugar and shortening in a large bowl , ... | \n", - "5 | \n", - "20 | \n", - "cookie | \n", - "
27863 rows ร 8 columns
\n", - "\n", - " | title | \n", - "description | \n", - "ingredients | \n", - "steps | \n", - "
---|---|---|---|---|
0 | \n", - "beat this banana bread | \n", - "from ann hodgman's | \n", - "sugar', 'unsalted butter', 'bananas', 'eggs', ... | \n", - "preheat oven to 350 degrees', 'butter two 9x5'... | \n", - "
1 | \n", - "grilled ranch bread | \n", - "buttery and | \n", - "butter', 'dry ranch dressing mix', 'french bread | \n", - "cream the butter with the dressing mix', 'spre... | \n", - "
2 | \n", - "jeanne s style birthday cake | \n", - "a bakery in winnipeg is famous for this specia... | \n", - "shortening', 'icing sugar', 'vanilla', 'all-pu... | \n", - "to prepare base , cut shortening into dry ingr... | \n", - "
3 | \n", - "jiffy extra moist carrot cake | \n", - "this is a very tasty, moist, carrot cake. a ni... | \n", - "yellow cake mix', 'vanilla instant pudding mix... | \n", - "preheat oven to 350 degrees', 'mix together th... | \n", - "
4 | \n", - "jiffy roasted corn and jalapeno cornbread | \n", - "this is a moist, easy, colorful and delicious ... | \n", - "whole kernel corn', 'onion', 'red bell pepper'... | \n", - "melt butter in a saut pan', 'add the corn , on... | \n", - "
... | \n", - "... | \n", - "... | \n", - "... | \n", - "... | \n", - "
27858 | \n", - "zwetschgenkuchen plum cake | \n", - "this is a classic german pastry and a deliciou... | \n", - "margarine', 'all-purpose flour', 'sugar', 'bak... | \n", - "prepare pastry: cut margarine into flour , sug... | \n", - "
27859 | \n", - "zwieback toast teething cookies | \n", - "a quintessential childhood food. this is a co... | \n", - "sugar', 'active dry yeast', 'milk', 'butter', ... | \n", - "stir together 1 / 2 teaspoon of sugar , the ye... | \n", - "
27860 | \n", - "zwiebelkuchen southwest german onion cake | \n", - "this is a traditional late summer early fall s... | \n", - "fresh yeast', 'milk', 'flour', 'butter', 'egg'... | \n", - "for the dough:', 'dissolve the yeast in the lu... | \n", - "
27861 | \n", - "cookies by design cookies on a stick | \n", - "i've heard of the 'cookies by design' company,... | \n", - "butter', 'eagle brand condensed milk', 'light ... | \n", - "place melted butter in a large mixing bowl and... | \n", - "
27862 | \n", - "cookies by design sugar shortbread cookies | \n", - "i've heard of the 'cookies by design' company,... | \n", - "granulated sugar', 'shortening', 'eggs', 'flou... | \n", - "whip sugar and shortening in a large bowl , ad... | \n", - "
27863 rows ร 4 columns
\n", - "