Domanda
Come addestrare un set di dati Iris in un algoritmo CNN
Dare una risposta
Articoli simili
- Come addestrare uno scarabeo da combattimento giapponese
- Quanti anelli d'oro vengono dati nella canzone 'Twelve Days of Christmas'?
- Pensi che sia plausibile che la cannabis possa evolversi in una pianta carnivora simile alla drosera in natura, dati i suoi tricomi appiccicosi? (Supponendo nessun intervento umano).
- Quali sono alcune applicazioni comuni del mondo reale di strutture di dati ad albero che hai sperimentato nella tua carriera?
- Qual è l'applicazione pratica degli alberi o dei grafici nelle strutture di dati?
Firstly, CNNs work on the basic principle of exploitation of spatial representation of data. So, even though your code might “run”, you’d most probably get terrible results.
The Iris dataset has following features Sepal Length, Sepal Width, Petal Length, and Petal Width.
In the case of training CNN on numerical data (Iris), the network is going to memorize feature groups and associations between them which will result in nonlinearity. However, I do not think convolutions are going to be of much use here since features are not invariant. The paper [0] examines the application of CNNs to textual understanding.
Furthermore, the training process is fairly simple.
Read the dataset into an array and convert labels to one hot for ease.
Create the placeholders to feed the data into network.
Split the data into training and testing.
Create the network, add 1D-CNN layers since you are not dealing with images i.e. 2D matrix [W, H] so I guess 1D-CNN will work fine as you will be returning 1D tensor. Additionally, 1D convolution means applying convolutions along one direction, you might have to test this hypothesis. Add max-pooling.
Apply loss function, compute cost and then apply optimizer to minimize the cost.
The rest is fairly standard.
However, I donot think this will yield any result. You can try collecting images of those flowers and then training a CNN to classify. Furthermore, you could combine CNN with a ML based classifier or simply a neural net (MLP maybe) to do the task.
Share the results of both 1D and 2D convolutions.
[0] [1502.01710] Text Understanding from Scratch