Giter Site home page Giter Site logo

cookie-crafter-with-ga's Introduction

Cookie-crafter-with-GA

A creative cookie generator powered by genetic algorithms.

Computational Creativity Assignment 2, Leiden University November 2023 By Lin He, Lily Kientz, Ruilin Ma

SETTING UP:

To set up the Poem-generator you first have to upload the 'FinalCC2_G20.ipynb' to Google Colab.

Open 'FinalCC2_G20.ipynb' and run the topmost two code blocks to install and import the correct packages.

GENERATING MODEL:

To generate the model, first run the following code blocks from top to bottom: 'Gather recipes', and 'Create knowledge base'.

After this, you can run the implement recipe generator from top to bottom to create the model.

GENERATING COOKIE RECIPES:

After having generated a model, you can run the 'run recipe generator' code blocks.

First, choose and run the code blocks that define how many generations the model runs. More generations lead to a more stable but more generic cookie, while the fewer do the contrary. You can also change one of these numbers according to your liking.

Next, run the final code block. This will run the model and create a cookie recipe!

An additional code block exists to show how nutrition estimation is achieved. This is not part of the generation process. In order to do that, you need to manually calculate the amount of each component and put them in accordingly. It is for showing purposes only and the amount may not be the case that the recipe generated shows.

cookie-crafter-with-ga's People

Contributors

rylinnm avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.