Convectional Neural Networks

Slides:



Advertisements
Similar presentations
Using a Recipe and Types of Recipes Culinary Basics LSHS.
Advertisements

Understanding Recipes
Basic Chocolate Cake Kamryn Banks 10/31/2014 math 4 th period.
How To Make Chocolate Chip Cookies By: Kevin Klosky.
By KIANA,SABRINA,EDGAR Decker Healthy Eating Project.
Next. Ingredients for your Chocolate Brownies Your ingredients for your Chocolate Brownie 3/4 cup cocoa, unsweetened 1/2 teaspoon baking soda 2/3 cup.
Baking Chocolate Chip Cookies Ms. Davis Life Skill Class July 11th, 2004.
Station 2 Station 3 Station 4 Station 1 Making Chocolate Cake Recipe for Chocolate Cake: 200g dark chocolate, chopped 250g butter, chopped 100 g self-raising.
 150 grams of honey  100 grams of butter  2 big eggs  100 grams of sugar  A cup of flour  Half a teaspoon of salt  Package of baking powder  A.
The Tastier Food Is Not Always the Better Choice By: Mia Scutti & Sara Takhim.
White Chocolate Orange Cookies. 1 cup butter softened 1/2 cup white sugar 1/2 cup brown sugar 1 egg 1 tablespoon orange zest 2 1/4 cups all-purpose flour.
PEC Baking Fundraiser Mugg’s Baking with Fractions.
Ingredients 1 1/2 cups sugar 2/3 cup shortening or butter* 2 eggs 2 tablespoons milk 1 teaspoon vanilla extract 3 ¼ cups flour 2 1/2 teaspoons baking.
Standards of Measurement A.Abbreviations 1.T or Tbsp 2.t or tsp 3.c 4.pt 5.qt 6.gal 7.oz 8.lb 9.f. g. 10.L T.
Evaluating Standardized Recipes. Step 1 Examine each recipe’s ingredient list for the following: Flour 1 cup Sugar1 Tablespoon (1Tbsp) Baking Powder1.
Chocolate cake by Antonio. Chocolate Cake Prep time 15mins cook time 25mins yields 12sevings a simple chocolate cake recipe from scratch with step by.
Hands on Experiment Alycia Scarpelli. Goals Students will explore characteristics of various forms of measurement. Students will discover and apply relationships.
MEASURING TECHNIQUES. MEASURING TECHNIQUES TO USE: SPOON IN, LEVEL OFF SPOON IN, PACK DOWN, LEVEL OFF POUR IN AT EYE LEVEL CRACK INTO A SEPARATE BOWL.
How to Make Chocolate Chip Cookies By Sara Hokkala.
Texting for Success Focus Leavening Agents and How They Work.
1.02 I Preparation Tasks List 11.02I Listing Preparation Tasks.
RECIPE. NAME: Three chocolates cake. INGREDIENTS 3 cups 1 1/2 tsp 3/4 tsp 1 1/2 tsp 2 2/3 cups 1 cup + 2 Tb 1 cup + 2 Tb 1 cup + 2 Tb 5 large or 4 Jumbo.
Stoichiometry Talking Blues Divya Vig. I planned a party for Saturday night, I wanted everything to be just right.
Measurements and Equivalents
AcCooking 1C Cookie Company Founders: Tom Le, Reece Nocon, Sherwin Sampayan, Long Nguyen, Pam Tsai.
Warm Up Photosynthesis Prediction Cards – Using the cards, work with a partner to predict the process of photosynthesis from beginning to end.
1 Sara offered to bring 200 cookies to a block party. She plans to take the very popular Nestle Toll House Chocolate Chip cookies. Sara has only 7 ½ cups.
1.02 C Work Plans 1 The secret for success!. Why use a work plan? Helps meal preparation run smoothly Implement these steps: 1.02CWork Plans2 Steps 1-
O 4 cups flour, sifted o 2 cups sugar, sifted o 2 1/2 tbsp baking powder o 1 cup evaporated milk o 2 1/2 cups water o 1/2 cup butter, melted o 1 piece.
The Four Seasons - December, 1963 (Oh, What a Night) Elementary Algebra Lesson 9: Rate of Work
Cookies !. Ingredients: 3/4 cup granulated sugar 3/4 cup packed brown sugar 1 cup butter or margarine, softened 1 teaspoon vanilla 1 egg 2 cups Gold Medal.
What you’ll need 2 ½ cups of all – purpose flour 1 teaspoon baking soda 1/2 teaspoon of salt 1 cup granulated sugar 2 eggs.
Functional Text. What is “functional text?” Instruction manuals Recipes Lists of facts (ex: nutrition facts) Table of contents Index Directions That is.
Measurements and Equivalents. Recipe Basics Recipe Adjustments.
How to Make Chocolate Chip Cookies Caity Jozwiak Period 6.
The 5 Parts of a Recipe Obj. F2.01 Remember recipe parts & resources.
Chocolate Chip Cookie Recipe By: Allison Lange quart of butter -> Cups.
+ Chocolate Chip Cookies Diamond Britton. + Recipe (2 dozen) 1 teaspoon baking soda 1 teaspoon vanilla extract 1 large egg 1 cup flour 1 teaspoon salt.
Parts to a Good Recipe. Important Parts to a Good Recipe 1. Title 2. Ingredients 3. Directions 4. Cooking Temperature (if applicable) 5. Cooking Time.
How to Make Chocolate Chip Cookies Fast, Easy, and Yummy Original Author Unknown Modified By: CTAE Resource Network.
Binary Code Does it mean anything?
Measuring & Changing Yields Foods I. Grandma’s Oatmeal Cookies 4 handfuls brown sugar 1 coffee cup lard about ½ coffee cup buttermilk 1 dash vanilla 8.
Ingredients 1’1/3 cup (150 g) all-purpose flour 1’½ cup (330 g) sugar 4 tablespoons unsweetened cocoa powder 1 teaspoon baking powder 1 teaspoon vanilla.
CHOCOLATE CAKE by: Sean and Lorenzo. CHOCOLATE CAKE Chocolate Cake Ingredients: 3/4 cups butter or margarine, softened. 3 eggs. 2 cups sugar. 2 cups flour.
Finding Percentage and Ratio with Recipes O What is the total number of cups the recipe calls for? O Chicken Enchilada Ingredients O 4 cups chicken O 1.
Kitchen Measuring Equipment. Measuring 2 Categories of Measuring Equipment Liquid Dry.
Trisha Garcia Krystle Dixon. PURPOSE OF EXPERIMENT Replacement of white granulated sugar in cake with 3 different types of sugars to observe differences.
Make up Lab Brownies C. Kingsbury. C. Kingsbury Date Submitted 9/5/11 Creative Foods Date absent 9/2/11 Lab missed: Brownies Recipe: Dark Chocolate Raspberry.
Individual Chocolate Layer Cakes
OTTW Project Afraa Haque
Reading a Recipe.
Measuring & Recipes Nutrition and Foods 2011.
Measurements and Equivalents
CS 388: Natural Language Processing: LSTM Recurrent Neural Networks
The recipes of Christmas dishes
BAKING COOKIES.
Reading Recipes Teen Living.
Measurements and Equivalents
Pink Cake.
Change is Delicious!.
How to read a recipe.
Recipes.
Recipe By Errol and Zion
Streptococcus pneumoniae
Abbreviations.
Abbreviations.
Measurements and Equivalents
Chocolate Chip Cookies
Let’s make Cookies!.
Recipe Chocolate cake.
Presentation transcript:

Convectional Neural Networks Lydia Chang, Stephanie Ger, Ik-Hwan Kim, Craig Ng | MSiA 490-30 Deep Learning | Spring 2017 | Northwestern University Problem Statement Technical Approach Results Seed text generated from first 40 characters of oatmeal cookie recipe Problem: Creative combination of ingredients can be difficult for most people who lack cooking experience With help of machine learning (and a lot of data), a model can generate new recipes for them to experiment with Difficulty: Current machine learning models are effective at copying and regurgitating inputs Generating original output from those inputs can be bit more problematic Other approaches: Models have been trained on a very general set of recipes including multiple types of food Some common ingredient like salt appears in recipes as varied as cakes, burgers and pizzas, confusing the model Training with both directions and ingredients adds to the complexity and the models focused on learning format rather than content Step 1 Step 2 Step 3 Character level embedding with CNN Preprocess the data Prepended the title of the recipe to the beginning of the recipe Created synthetic data by shuffling the ingredient list for each recipe to combat order dependency Consider embedding Use phrase2vec with different levels of embedding: character-level word-level phrase-level Window length Character-level: 40 Word- and phrase-level: 50 Model evaluation Ran the code with each levels of the embedding for at least 60 epochs Evaluate model success by looking at generated recipes Heat map with diversity = 0.2 Heat map with diversity = 1.2 Character level embedding with LSTM Step 4 Step 5 Step 6 Hyper-parameter Tuning Compared GRU and LSTM performance Compared CNN and RNN performance Varied number of layers in the model (from 2 to 3) Adjusted the number of neurons in the hidden layers(128, 256, 512) Generate Recipes Use keyword (e.g. recipe title) to randomly select recipe from corpus Use first 40 characters of selected recipe as the seed Generate a recipe with trained model Bake cookies. Eat cookies. Profit. Heat map with diversity = 0.2 Heat map with diversity = 1.2 Example Output: 1/2 tsp. baking soda,1 tsp. vanilla extract,1 cup all purpose flour,1 teaspoon baking soda,1 teaspoon salt,6 tablespoons brown sugar,2 cups candy covered plus 1/4 finely diced,1/2 cup firmly packed brown sugar,1 egg 1 3/4 cups sugar,2 la 1/2 tsp. baking soda,1 tsp. vanilla extract 2 cups chocolate chips,1/2 cup agave nectar,1 teaspoon coconut extract ,1 teaspoon salt,1 cup nutella, 1/2 cup rainbow sprinkles of chopped nuts,1/3 cup chocolate hot cocoa powder,1 tsp vanilla Current Approach Recurrent Neural Networks (RNNs): Figure 1 Illustration of RNN Figure 2 LSTM vs GRU Long short-term memory (LSTM) improves upon RNNs using memory cells that remember long-term values Gated recurrent units’ (GRUs) are similar to LSTMs, but lack an output gate Dataset Conclusion Scraped 80,000 ingredient lists from Yummly using the search parameter ‘cookie’ Data was cleaned for better performance: Removed any recipes that didn’t have cookie in the title Removed special characters from corpus Inspected the final dictionary and removed any words that were instructions or were unrelated to cookies Removed any words not in the final dictionary from the corpus Example raw observation: Example post-processed observation: Brief summary of what you discovered based on results All three embeddings capable of producing reasonable recipes Difficult to determine the differences in model performance from hyper- parameter tuning because the output evaluation is subjective Limitations of approach Dictionary limited to those words/recipes available via Yummly How to improve/future work Use prepended titles as part of training observations to give models the ability to generate recipes using created titles Generalize to include other recipe types, then generate hybrid recipes Alternative Approaches Bidirectional RNNs: connect two hidden layers of opposite directions to the same output, so the output layer can get information from both past and future states Convolutional NNs: use layers with different numbers of hidden neurons to capture a range of time dependent features ['2 cups flour', '1 teaspoon baking powder', '1 teaspoon baking soda', '1 teaspoon salt', '3/4 cup butter, room temperature', '3/4 cup brown sugar (packed)', '3/4 cup granulated sugar', '2 large eggs', u'2 teaspoons vanilla (or slightly more, to taste)', '3 1/2 cups old-fashioned oatmeal', '2 cups raisins (soaked in hot water flavored with vanilla, then drained)'] References and Related Work Do Androids Dream of Cooking? (Tom Brewe) Keras LSTM Text Generation Example Code (François Chollet) Word RNN Tensorflow Code (Sung Kim) The Unreasonable Effectiveness of Recurrent Neural Networks (Andrej Karpathy) Generating Text with Recurrent Neural Networks (Ilya Sutskever, James Martens, Geoffrey Hinton) [Favorite Oatmeal Raisin Cookies] 2 cups flour,1 teaspoon baking powder,1 teaspoon baking soda,1 teaspoon salt,3/4 cup butter room temperature,3/4 cup brown sugar ,3/4 cup granulated sugar,2 large eggs,2 teaspoons vanilla ,3 1/2 cups old-fashioned oatmeal,2 cups raisins Figure 3: The structures of our models