Packages

o

scalation.analytics

PerceptronTest2

object PerceptronTest2 extends App

The PerceptronTest2 object trains a perceptron on a small dataset of temperatures from counties in Texas where the variables/factors to consider are Latitude (x1), Elevation (x2) and Longitude (x3). The model equation is the following:

y = sigmoid (w dot x) = sigmoid (w0 + w1*x1 + w2*x2 + w3*x3)

This test case illustrates how to transform the columns of the matrix so that the 'sigmoid' activation function can work effectively. Since the dataset is very small, should use 'train0' which does no batching. > runMain scalation.analytics.PerceptronTest2

Linear Supertypes
App, DelayedInit, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PerceptronTest2
  2. App
  3. DelayedInit
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final val executionStart: Long
    Definition Classes
    App
  2. final def main(args: Array[String]): Unit
    Definition Classes
    App
  3. val nn: Perceptron
  4. val x: MatriD
  5. val xy: MatrixD
  6. val y: VectoD
  7. val ymax: Double
  8. val ymin: Double
  9. val yp: VectoD
  10. val ypu: VectoD

Deprecated Value Members

  1. def delayedInit(body: => Unit): Unit
    Definition Classes
    App → DelayedInit
    Annotations
    @deprecated
    Deprecated

    (Since version 2.11.0) the delayedInit mechanism will disappear