Checks the feature selection map for missing features, after it has been fully built.
| 808 | // Checks the feature selection map for missing features, |
| 809 | // after it has been fully built. |
| 810 | int smileSvmModel::checkFtSelMap() |
| 811 | { |
| 812 | for (int i = 0; i < vectorDim; i++) { |
| 813 | if (ftSelMap[i] == -1) { |
| 814 | SMILE_IERR(1, "The attribute # %i (%s) in the model file (%s) does not exist in the input data level to this component!", i, attributeNames[i], model); |
| 815 | return 0; |
| 816 | } |
| 817 | } |
| 818 | nFtSel = vectorDim; |
| 819 | return 1; |
| 820 | } |
| 821 | |
| 822 | smileSvmModel::~smileSvmModel() |
| 823 | { |