© Alexandre Bergel​ 2020
A. BergelAgile Artificial Intelligence in Pharohttps://doi.org/10.1007/978-1-4842-5384-7_5

5. Data Classification

Alexandre Bergel1 
(1)
Santiago, Chile
 

Neural networks have an incredibly large range of applications. Classifying data is a prominent one, and this chapter is devoted to it.

5.1 Training a Network

In the previous chapter, we saw that we can obtain a trained neural network to express the XOR logical gate. In particular, we saw the following script:
n := NNetwork new.
n configure: 2 hidden: 3 nbOfOutputs: 1.
20000 timesRepeat: [
        n train: #(0 0) desiredOutputs: #(0).
        n train: #(0 1) desiredOutputs: #(1).
        n train: #(1 0) desiredOutputs: #(1).
        n train: #(1 1) desiredOutputs: #(0).
].

After evaluating ...

Get Agile Artificial Intelligence in Pharo: Implementing Neural Networks, Genetic Algorithms, and Neuroevolution now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.