319320321322323324325326327328329
else sparse.addFeature(index); } } sparse.trimToSize(); return sparse; } /** @return {@code true} if the specific feature index is within the range of this model. */ public boolean isValidFeature(int featureIndex)
244245246247248249250251252253254
135136137138139140141142143144145
else sparse.addFeature(index); } } sparse.trimToSize(); return sparse; } public StringFeatureVector trimFeatures(StringFeatureVector oVector, String label, double threshold) {