Single element of Input vector in classifying patterns with a Shallow Neural Network
조회 수: 2 (최근 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!