}
public ConfusionMatrix validate(SupervisedTrainer trainer, List<Feature<Review>> features, List<Review> data,
Filter filter, double minWeight, int steps) throws IllegalArgumentException {
IDataExtractor<Review> dataExtractor = new FixedStepReviewExtractor(data, steps);
// v�b�r tr�novac�ch dat
trainingSet = dataExtractor.getTrainingSet();
testSet = dataExtractor.getTestSet();
// rozd�len� do kategori�
List<Review> filteredTrainingSet = new ArrayList<Review>();
List<Integer> labels = new ArrayList<Integer>();