Basic probability concepts
Why probability?
A neural network is a semantic network, where a set of input/output units (“neurons”) are connected to each other, and these connections are weighted relative to the importance or strength of the link between one neuron and the next. Such networks are called feedforward neural networks.
Let's extend above neural network to classify species of iris flowers. we will use sklearn to load iris dataset, the dataset looks like
sepal length (cm) | sepal width (cm) | petal length (cm) | petal width (cm) |
---|---|---|---|
5.1 | 3.5 | 1.4 | 0.2 |
4.9 | 3.0 | 1.4 | 0.2 |
4.7 | 3.2 | 1.3 | 0.2 |
4.6 | 3.1 | 1.5 | 0.2 |
5.0 | 0.6 | 0.4 | 0.2 |
The target names are 'setosa', 'versicolor', 'virginica'. The above netowrk will classify the flower species into three possible species