Coder Social home page Coder Social logo

daviduster / neural-network-number-sorting Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 23 KB

Encoder-decoder neural network architecture for number sorting.

License: MIT License

Jupyter Notebook 100.00%
deep-neural-networks recurrent-neural-networks lstm-neural-networks machine-learning deep-learning sorting-numbers

neural-network-number-sorting's Introduction

Task

Encoder-decoder architecture (RNN/LSTM/Transformer-based) for number sorting.

Comments

This is an interesting problem, more as an intellectual challenge than as a really practical solution (the existing algorithms for sorting, Quicksort and so on, are surely going to be faster and do not need the previous training time). I can think of (as the statement suggests) architectures for series. The good thing about a problem of this type is that it has no data limit (you can use as many as you want). At first, I looked for some references like this Paper (4.1 Sorting numbers) and this discussion but I think it is too complex, and a simple model is enough, using one RNN (or LSTM) as an encoder, and then two or three dense layers, there should be no major problem for learning. You can find the implementation of the encoder-decoder arquitecture for sorting numbers in the jupyter notebook. I used this link of Keras as a reference for the implementation. Frameworks like TensorFlow and Keras take care of the backpropagation step automatically and you can safely assume that it is implemented correctly so there is no need to use gradient checking.

Installation of requirements

# Installing virtualenv
pip3 install --user virtualenv

# Creating a virtual environment
python3 -m virtualenv env

# Activating a virtual environment
source env/bin/activate

# After activate the virtual environment you can install the necessary dependencies in your virtual env and use the notebook!
pip3 install -r requirements.txt

# Once you are finish 
deactivate

License

MIT

neural-network-number-sorting's People

Contributors

daviduster avatar

Watchers

 avatar  avatar

Forkers

michaelmesfn

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.