You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by GitBox <gi...@apache.org> on 2019/06/04 09:41:48 UTC

[GitHub] [ignite] avplatonov commented on a change in pull request #6567: IGNITE-9978 Implement Compound Naive Bayes classifier

avplatonov commented on a change in pull request #6567: IGNITE-9978 Implement Compound Naive Bayes classifier
URL: https://github.com/apache/ignite/pull/6567#discussion_r290211457
 
 

 ##########
 File path: modules/ml/src/main/java/org/apache/ignite/ml/naivebayes/discrete/DiscreteNaiveBayesTrainer.java
 ##########
 @@ -49,6 +52,9 @@
     /** The threshold to convert a feature to a discrete value. */
     private double[][] bucketThresholds;
 
+    /** Feature ids which should be skipped. By defaut all features are processed. */
+    private Collection<Integer> featureIdsToSkip = emptyList();
+
     /** {@inheritDoc} */
     @Override public <K, V> DiscreteNaiveBayesModel fit(DatasetBuilder<K, V> datasetBuilder,
                                                         Preprocessor<K, V> extractor) {
 
 Review comment:
   @dehasi , How do you think, maybe we may remove featureIdsToSkip logic from trainers and models and in CompoundBayess we may create to Preprocessors that wrap input preprocessor by features filtering logic? In this case we avoid modification in Discrete and Gauss models and save this logic in one place.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services