It’s time for Cooking With Neural Networks!
3 min read

It’s time for Cooking With Neural Networks!

It’s time for Cooking With Neural Networks!

Neural networks are computer programs that learn by example. Rather than a programmer teaching them step-by-step rules on how to solve a problem, neural networks try to deduce their own rules by looking at examples of lots of successful solutions.

One of the first problems I tried to solve with neural networks, inspired by this post, was generating new cookbook recipes by letting a neural network look at about 30,000 existing recipes. This, as it turns out, is not a great way to get a coherent recipe. With a memory only a few words long, and without any concept that the letters it was choosing corresponded to ingredients and things that were happening to them, the neural net’s recipes were usually inadvisable and frequently impossible.

As it so happens, I was testing out some features of textgenrnn and turned to recipes as a test dataset. As a result, I have some new “gems” to share with you.

Framework: textgenrnn, longtext mode
Memory: 40 characters (default)
Training length: ~15 hours on an Nvidia K80 (via Google Cloud)
Sampling temperature: 0.6

image

First, allow me to present some of my favorite individual ingredients:

½ teaspoon ground beer
½ cup crushed sherry
1 lavy milk
½ cup fresh minced or worky sugar
½ teaspoon dried margarine
1 ½ teaspoon minced powder
1 single sugar
1 long granulated sugar
1 green cubes
1 spanish water
2 lb beer stock
1 cup cream cheese seed

And now, the recipes:

Christed Whites Continue Sauce

main dish, discorti, crabmets

Note:: Mix to recipe of sweetened sugar. Add the blueberries a squart until thickens of to a 4" Nut in Marrgarine using; ½ ** esed nam, stew

1 small garlic; chopp
2 eggs
1 cup sugar
¾ cup sugar
½ lb pork *
½ cup black peppers
2 eggs
2 tablespoon sauas slest
½ teaspoon salt
¾ teaspoon marshmall
½ cup chives sauce
1 teaspoon numguinitiso paste
½ teaspoon dry say beef salt
1 medium onion; diced
½ cup coriander or water, sour crushed. In a sea vanil soda, if desired.

Add tomatoes and they browned as the in a sauce. Add spankly mixture about 1 ½ to 6 minutes, or water, unough a ½ is is need, please the mart boiling. Garnish with a sink forilith mushrooms. Whick until sugar and mixture at low bowl. Add the beans. Stir in over mixer.

Add carrot is a salt and taste. Working, nutmeg. Makes 4.

Yield: 6 servings

I guess dividing the 4 sauces into 6 servings is left as an exercise to the reader.

Sheet Pepper

low fat, bbq, bbq, cannings, soup

3 tablespoon butter
1 tablespoon sugar
1 tablespoon sugar

Combine sugar and sugar and sprinkle with the sugar. Place a desired pan, and let stand 1 minute. Add the salt and pepper. Add beef
and turkey and sides of cake of butter. Bring to a boil, bake at 350 degrees F. Retep the bottom of pan in a large rack.

Combine the chocolate cheese and the cheese and serve with quarters. Remove from pan and add to strainers and simmer until the sauce forms the clear some eggs and so the finger large soup comes out cleandrated with masil cooking lengthwise and the well some of the beef and the steamed sauce. It is the measure of board with a sloth bone. Serve warm. Sprinkle with dry salt, then add the shallots and salt and pepper. Sprinkle with salt, and pepper. Stir until potatoes are softened. Remove from heat; cover and
simmer 2 minutes. Whisk in the milk and butter. Add to bisquins. Stir to make uncooked and serve, up to 2 cups. Pour into 1 cup soup. Add 1 tbsp. cabbage

Source: by Meal-Margarine Crab

The cabbage makes it healthy.

Artich Soup Salad

cakes, cheese/eggs, cassamaes

2 medium onion
1 tablespoon red minced garlic
½ teaspoon salt
½ cup orange milk, baking sheet
1 shredded, chopped
½ teaspoon salt
½ teaspoon pepper
1 teaspoon crushed milk
½ teaspoon salt
½ teaspoon salt
½ teaspoon salt
½ teaspoon salt
1 teaspoon pepper
½ teaspoon crushed miniature
1 cup chives or canned milk
1 cut into ½-inch can stock
1 single sugar
½ cup chlithed (or cold white wine wine
1 chives.

Fry Puely and oil over medium-read slices on the dish. Add the microwave beef and cook and cook.

From: Baste Fritized Baked Cheddar Let Cookbook

Yield: 6 servings
image

I’ve got several more blog posts about recipes (using char-rnn rather than textgenrnn). If you want to read more from textgenrnn (which does seem to make different mistakes from char-rnn), and/or get bonus material every time I post, enter your email here.