Open szcf-weiya opened 5 years ago
p652 or ESL CN The original text claims that
Here the diagonal LDA classifier yielded five misclassification errors for the 20 test samples.
As you can see in the above frequency table, there are 7 misclassification errors among 20 test samples (the NA samples are excluded), roughly the same performance.
Zero training error and only 1 misclassification errors among 20 test samples (exclude NA samples), roughly agree with the top panel of Fig. 18.4
NA
Roughly reproduce the original figure, the cv error might be different since the division of folds.
Tips related to the plot. Cannot find the twiny
command in plot.jl
, although it does exist a twinx
command, which is a bonus-feature and is not described in the docs. https://github.com/JuliaPlots/Plots.jl/issues/337
Then I resorted to the pyplot
package.
SRBCT microarray data
SBRCT gene expression data. 2318 genes, 63 training samples, 25 test samples.
One gene per row, one sample per column
Cancer classes are labelled 1,2,3,4 for c("EWS","RMS","NB","BL")
Files
khan.xtrain.txt
khan.ytrain.txt
khan.xtest.txt
khan.xtest.txt