Single element of Input vector in classifying patterns with a Shallow Neural Network
3 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Mahesh Taparia
2020-3-26
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 个评论
Mahesh Taparia
2020-3-26
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.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Modeling and Prediction with NARX and Time-Delay Networks 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!