Git Product home page Git Product logo

adamnemecek / hopfield-network-rust Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hmcalister/hopfield-network-rust

1.0 1.0 1.0 31 KB

An implementation of the Hopfield network in Rust. This project was intended for my Masters but the language was slightly too restricting for my needs. This project was ported to Go and the Rust implementation is left for posterity.

Rust 100.00%

hopfield-network-rust's Introduction

Hopfield Network Rust

Author: Hayden McAlister

Introduction

This is an implementation of the Hopfield network using Rust with nalgebra as the linear algebra backing. This project is intended to be clean and extensible, as well as blazing fast and scalable with CPU cores via threading.

In future it may be interesting to try and port this project to use a different backend crate - one that leverages linear algebra on CUDA to scale instead with the GPU.

Why Rust?

Rust was chosen for this project for the following reasons:

  • It was found to be fast (see the profiling and testing in this repository - be sure to checkout the dashboard!)

  • Tensorflow was found to scale much better by leveraging the GPU, but ensuring the code continued to scale required awkward vectorized methods that were prone to bugs.

  • Go was found to scale very slightly better on the CPU, and after the initial implementation the language was found to be a nicer fit. Higher velocity development wins the day!

hopfield-network-rust's People

Contributors

hmcalister avatar adamnemecek avatar

Stargazers

zbv avatar

Watchers

 avatar

Forkers

isgasho

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.