Giter VIP home page Giter VIP logo

regression-tsetlin-machine's Introduction

The Regression Tsetlin Machine

The inner inference mechanism of the Tsetlin Machine (https://arxiv.org/abs/1804.01508) is modified so that input patterns are transformed into a single continuous output, rather than to distinct categories.

This is achieved by:

  • Using the conjunctive clauses of the Tsetlin Machine to capture arbitrarily complex patterns;
  • Mapping these patterns to a continuous output through a novel voting and normalization mechanism; and
  • Employing a feedback scheme that updates the Tsetlin Machine clauses to minimize the regression error.

Further details can be found in https://arxiv.org/abs/1905.04206.

Behaviour with noisy and noise-free data

Six datasets have been given in order to study the behaviour of the Regression Tsetlin Machine.

  • Dataset I contains 2-bit feature input and the output is 100 times larger than the decimal value of the binary input (e.g., when the input is [1, 0], the output is 200). The training set consists of 8000 samples while testing set consists of 2000 samples, both without noise
  • Dataset II contains the same data as Dataset I, except that the output of the training data is perturbed to introduce noise
  • Dataset III has 3-bit input without noise
  • Dataset IV has 3-bit input with noise
  • Dataset V has 4-bit input without noise
  • Dataset VI has 4-bit input with noise

Different datasets can be loaded by changing the following line in ArtificialDataDemo.py

df = np.loadtxt("2inNoNoise.txt").astype(dtype=np.float32)

The training error variation for each dataset with different number of clauses can be seen in the following figure.

Datasets without noise can be perfectly learned with a small number of clauses

Average Absolute Error on Training Data: 0.0
Average Absolute Error on Test Data: 0.0

Training and testing error for noisy data can be reduced by increasing the number of clauses and training rounds.

regression-tsetlin-machine's People

Contributors

darshanaabeyrathna avatar olegranmo avatar

Watchers

James Cloos avatar paper2code - bot 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.