/akka-playground

Just me playing with Akka.

Primary LanguageScala

Akka Playground

Description

This repo contains a couple of programs that shows the basics of the Akka framework.

The AkkaBasics and ChatRoom programs are from the Akka Tutorial.

The Perceptron project was written by me.

Building

  1. Install sbt
  2. Run sbt assembly

Running the Main Program

  1. Run java -jar ./target/scala-2.13/akkaBasics-assembly-0.1-SNAPSHOT.jar

Running the Perceptron Program

  1. Run java -cp ./target/scala-2.13/akkaBasics-assembly-0.1-SNAPSHOT.jar com.jplfds.perceptron.Main

Running the ChatRoom Program

  1. Run java -cp ./target/scala-2.13/akkaBasics-assembly-0.1-SNAPSHOT.jar com.jplfds.chat.Main

Perceptron

The perceptron example trains a perceptron to learn the NAND boolean operation.

After 6 iterations it learns to separate the input 1, 1, 1 from the others.

Below are the plots of the decision boundary after each training iteration:

Iteration 1:

Iteration 1

Iteration 2:

Iteration 2

Iteration 3:

Iteration 3

Iteration 4:

Iteration 4

Iteration 5:

Iteration 5

Iteration 6:

Iteration 6a

Iteration 6b

Animation:

Animation