Giter Club home page Giter Club logo

fizzbuzz_nn's Introduction

FizzBuzz using Deep Learning

Neural Network implementation to solve the FizzBuzz problem

1. The Problem

In this task an integer divisible by 3 is printed as Fizz, and integer divisible by 5 is printed as Buzz. An integer divisible by both 3 and 5 is printed as FizzBuzz. If the number is not divisible by both 3 and 5, then the number itself is printed as the output.

2. Structure

Configuration used:
● Python 3.7.6
● Keras 2.3.1
● Tensorflow 2.0.0
The following files will be part of this assignment:
● main.py - The main file of this assignment, which invokes the saved model and tests the input from a txt file which can be passed by command line arguments. It generates two output files - ‘Software1.txt’ and ‘Software2.txt’ which are generated by the logic based and the machine learning code respectively.
● model.py - This is where the neural network is defined. The definitions were done using Keras using TF in the backend.
● model.h5 - This file is generated when the file ‘model.py’ is run, and this will subsequently get run from the ‘main.py’ code.

3. Running the code

Enter the following command in your terminal for running the saved model.
You can change the input file by just tweaking the file name passed as the command line argument.

$ python main.py --test-data test_input.txt

4. Report

A more detailed version of the analysis that was done can be found in the report that is attached.

fizzbuzz_nn's People

Contributors

rahuljroy avatar

Stargazers

 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.