Sklearn Voting ensemble with models using different features and testing with k-fold cross validation
问题 I have a data frame with 4 different groups of features. I need to create 4 different models with these four different feature groups and combine them with the ensemble voting classifier. Furthermore, I need to test the classifier using k-fold cross validation. However, I am finding it difficult to combine different feature sets, voting classifier and k-fold cross validation with functionality available in sklearn. Following is the code that I have so far. y = df1.index x = preprocessing