Single element of Input vector in classifying patterns with a Shallow Neural Network
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Dear MatLab-Community,
I have a question regarding the tutorial "Classify Patterns with a Shallow Neural Network".
Let's take the breast cancer example with a 9x699 input matrix.
Is it possible to calculate an error for each of the 9 input elements separately?
I.e. would be one of them sufficient to predict benignitiy or malignancy?
Best Regards
Daniel
0 comentarios
Respuestas (1)
Mahesh Taparia
el 26 de Mzo. de 2020
Hi
As per your question, you have a 9 dimensional dataset with a classification of benignitiy or malignancy of breast cancer. So there will be a classification loss with respect to class prediction , i.e output.
Coming to your second question, it seems you want to check if you can use classifier with less number of input. For this you can try dimensional reduction techniques like PCA to find independent principle components and used the output of the PCA as input to your network. For more information on PCA, you can refer to the documentation of PCA.
2 comentarios
Mahesh Taparia
el 26 de Mzo. de 2020
Hi
In that case, you can check with different combination of inputs and check the performance, but it will be time consuming.
You can try with clustering of each dimension of data and check if you are getting a good boundary for the classification.
One approach could be to apply the pca, for example:
[coeff,score,latent]=pca(input_data,'NumComponents',9);
summary=latent/sum(latent);
contribution=cumsum(summary);
The variable latent contains the variance of a dimension, contribution will contains the percentage of maximum variance contributed by the different dimension (in the range of 0-1). Select the appropriate number of components with respect to contribution vector and train the network.
Ver también
Categorías
Más información sobre Modeling and Prediction with NARX and Time-Delay Networks en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!