Code Monkey home page Code Monkey logo

seconn-swift's Introduction

Simplified ECO Neural Network with binary step activation function

Final performance on MNIST dataset:

  • 250 training samples
  • One hidden layer with 1000 neurons (almost same performance with two layers, each 1000 neurons)
  • Ensemble averaging for each output value
  • 1 minute training time
  • 66% performance

Reference on ECO: ECO Overview

No Maintenance Intended

Principle

This network follows the same basic principle of ECO: instead of reducing total error value, it attempts to increase the steepness of the error curve with regard to inputs.

For binary step, that means adjusting weights and biases in such a manner, that changes to the input value will be more likely to change the output.

This network has a remarkable property of not being tied to the total error value, and each adjustment is made strictly between a pair of neurons.

Building

  1. Download
  2. Run swift package generate-xcodeproj
  3. Open Seconn.xcworkspace
  4. Adjust macOS Deployment target to macOS 10.12 (probably should fix this)
  5. If desired, turn on Swift Optimizations for debug build (faster playground execution)
  6. Build project
  7. Open and use SeconnTest playground

Configuring

Network configuration is set in Test.swift, in Test.init.

seconn-swift's People

Contributors

morpheby avatar johndpope avatar

Watchers

 avatar  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.