weka - Train and Test Set are not compatible: comparing 2 csv files -
i facing common problem of weka, "train , test set not compatible". had large data sets in csv format. got such error reduce data set(for practice purpose) 2 data in train set , 1 data in test set. using j48 classifier.
i have checked same data format appears in csv , same column title has appeared.
the train , test sets given below:
train set:
stop words/punctuations1(l),stop words/punctuations/stemming1(l),stop words/punctuations/lammetizing1(l),stop words/punctuations1(nc),stop words/punctuations/stemming1(nc),stop words/punctuations/lammetizing1(nc),stop words/punctuations2(l),stop words/punctuations/stemming2(l),stop words/punctuations/lammetizing2(l),stop words/punctuations2(nc),stop words/punctuations/stemming2(nc),stop words/punctuations/lammetizing2(nc),stop words/punctuations3(l),stop words/punctuations/stemming3(l),stop words/punctuations/lammetizing3(l),stop words/punctuations3(nc),stop words/punctuations/stemming3(nc),stop words/punctuations/lammetizing3(nc),stop words/punctuations4(l),stop words/punctuations/stemming4(l),stop words/punctuations/lammetizing4(l),stop words/punctuations4(nc),stop words/punctuations/stemming4(nc),stop words/punctuations/lammetizing4(nc),stop words/punctuations5(l),stop words/punctuations/stemming5(l),stop words/punctuations/lammetizing5(l),stop words/punctuations5(nc),stop words/punctuations/stemming5(nc),stop words/punctuations/lammetizing5(nc),(no stop words/punctuations)1(l),(no stop words/punctuations)/stemming1(l),(no stop words/punctuations)/lammetizing1(l),(no stop words/punctuations)1(nc),(no stop words/punctuations)/stemming1(nc),(no stop words/punctuations)/lammetizing1(nc),(no stop words/punctuations)2(l),(no stop words/punctuations)/stemming2(l),(no stop words/punctuations)/lammetizing2(l),(no stop words/punctuations)2(nc),(no stop words/punctuations)/stemming2(nc),(no stop words/punctuations)/lammetizing2(nc),(no stop words/punctuations)3(l),(no stop words/punctuations)/stemming3(l),(no stop words/punctuations)/lammetizing3(l),(no stop words/punctuations)3(nc),(no stop words/punctuations)/stemming3(nc),(no stop words/punctuations)/lammetizing3(nc),(no stop words/punctuations)4(l),(no stop words/punctuations)/stemming4(l),(no stop words/punctuations)/lammetizing4(l),(no stop words/punctuations)4(nc),(no stop words/punctuations)/stemming4(nc),(no stop words/punctuations)/lammetizing4(nc),(no stop words/punctuations)5(l),(no stop words/punctuations)/stemming5(l),(no stop words/punctuations)/lammetizing5(l),(no stop words/punctuation)5(nc),(no stop words/punctuations)/stemming5(nc),(no stop words/punctuations)/lammetizing5(nc),no stop words1(l),no stop words/stemming1(l),no stop words/lammetizing1(l),no stop words1(nc),no stop words/stemming1(nc),no stop words/lammetizing1(nc),no stop words2(l),no stop words/stemming2(l),no stop words/lammetizing2(l),no stop words2(nc),no stop words/stemming2(nc),no stop words/lammetizing2(nc),no stop words3(l),no stop words/stemming3(l),no stop words/lammetizing3(l),no stop words3(nc),no stop words/stemming3(nc),no stop words/lammetizing3(nc),no stop words4(l),no stop words/stemming4(l),no stop words/lammetizing4(l),no stop words4(nc),no stop words/stemming4(nc),no stop words/lammetizing4(nc),no stop words5(l),no stop words/stemming5(l),no stop words/lammetizing5(l),no stop words5(nc),no stop words/stemming5(nc),no stop words/lammetizing5(nc),no punctuations1(l),no punctuations/stemming1(l),no punctuations/lammetizing1(l),no punctuations1(nc),no punctuations/stemming1(nc),no punctuations/lammetizing1(nc),no punctuations2(l),no punctuations/stemming2(l),no punctuations/lammetizing2(l),no punctuations2(nc),no punctuations/stemming2(nc),no punctuations/lammetizing2(nc),no punctuations3(l),no punctuations/stemming3(l),no punctuations/lammetizing3(l),no punctuations3(nc),no punctuations/stemming3(nc),no punctuations/lammetizing3(nc),no punctuations4(l),no punctuations/stemming4(l),no punctuations/lammetizing4(l),no punctuations4(nc),no punctuations/stemming4(nc),no punctuations/lammetizing4(nc),no punctuations5(l),no punctuations/stemming5(l),no punctuations/lammetizing5(l),no punctuations5(nc),no punctuations/stemming5(nc),no punctuations/lammetizing5(nc),class 1.00,2.00,3.00,2.00,4.00,4.20,4.80,5.40,6.00,6.60,7.20,7.80,8.40,9.00,9.60,10.20,10.80,11.40,12.00,12.60,13.20,13.80,14.40,15.00,15.60,16.20,16.80,17.40,18.00,18.60,19.20,19.80,20.40,21.00,21.60,22.20,22.80,23.40,24.00,24.60,25.20,25.80,26.40,27.00,27.60,28.20,28.80,29.40,30.00,30.60,31.20,31.80,32.40,33.00,33.60,34.20,34.80,35.40,36.00,36.60,37.20,37.80,38.40,39.00,39.60,40.20,40.80,41.40,42.00,42.60,43.20,43.80,44.40,45.00,45.60,46.20,46.80,47.40,48.00,48.60,49.20,49.80,50.40,51.00,51.60,52.20,52.80,53.40,54.00,54.60,55.20,55.80,56.40,57.00,57.60,58.20,58.80,59.40,60.00,60.60,61.20,61.80,62.40,63.00,63.60,64.20,64.80,65.40,66.00,66.60,67.20,67.80,68.40,69.00,69.60,70.20,70.80,71.40,72.00,72.60,hr 1.00,2.00,3.00,2.00,4.00,4.20,4.80,5.40,6.00,6.60,7.20,7.80,8.40,9.00,9.60,10.20,10.80,11.40,12.00,12.60,13.20,13.80,14.40,15.00,15.60,16.20,16.80,17.40,18.00,18.60,19.20,19.80,20.40,21.00,21.60,22.20,22.80,23.40,24.00,24.60,25.20,25.80,26.40,27.00,27.60,28.20,28.80,29.40,30.00,30.60,31.20,31.80,32.40,33.00,33.60,34.20,34.80,35.40,36.00,36.60,37.20,37.80,38.40,39.00,39.60,40.20,40.80,41.40,42.00,42.60,43.20,43.80,44.40,45.00,45.60,46.20,46.80,47.40,48.00,48.60,49.20,49.80,50.40,51.00,51.60,52.20,52.80,53.40,54.00,54.60,55.20,55.80,56.40,57.00,57.60,58.20,58.80,59.40,60.00,60.60,61.20,61.80,62.40,63.00,63.60,64.20,64.80,65.40,66.00,66.60,67.20,67.80,68.40,69.00,69.60,70.20,70.80,71.40,72.00,72.60,lr
test set:
stop words/punctuations1(l),stop words/punctuations/stemming1(l),stop words/punctuations/lammetizing1(l),stop words/punctuations1(nc),stop words/punctuations/stemming1(nc),stop words/punctuations/lammetizing1(nc),stop words/punctuations2(l),stop words/punctuations/stemming2(l),stop words/punctuations/lammetizing2(l),stop words/punctuations2(nc),stop words/punctuations/stemming2(nc),stop words/punctuations/lammetizing2(nc),stop words/punctuations3(l),stop words/punctuations/stemming3(l),stop words/punctuations/lammetizing3(l),stop words/punctuations3(nc),stop words/punctuations/stemming3(nc),stop words/punctuations/lammetizing3(nc),stop words/punctuations4(l),stop words/punctuations/stemming4(l),stop words/punctuations/lammetizing4(l),stop words/punctuations4(nc),stop words/punctuations/stemming4(nc),stop words/punctuations/lammetizing4(nc),stop words/punctuations5(l),stop words/punctuations/stemming5(l),stop words/punctuations/lammetizing5(l),stop words/punctuations5(nc),stop words/punctuations/stemming5(nc),stop words/punctuations/lammetizing5(nc),(no stop words/punctuations)1(l),(no stop words/punctuations)/stemming1(l),(no stop words/punctuations)/lammetizing1(l),(no stop words/punctuations)1(nc),(no stop words/punctuations)/stemming1(nc),(no stop words/punctuations)/lammetizing1(nc),(no stop words/punctuations)2(l),(no stop words/punctuations)/stemming2(l),(no stop words/punctuations)/lammetizing2(l),(no stop words/punctuations)2(nc),(no stop words/punctuations)/stemming2(nc),(no stop words/punctuations)/lammetizing2(nc),(no stop words/punctuations)3(l),(no stop words/punctuations)/stemming3(l),(no stop words/punctuations)/lammetizing3(l),(no stop words/punctuations)3(nc),(no stop words/punctuations)/stemming3(nc),(no stop words/punctuations)/lammetizing3(nc),(no stop words/punctuations)4(l),(no stop words/punctuations)/stemming4(l),(no stop words/punctuations)/lammetizing4(l),(no stop words/punctuations)4(nc),(no stop words/punctuations)/stemming4(nc),(no stop words/punctuations)/lammetizing4(nc),(no stop words/punctuations)5(l),(no stop words/punctuations)/stemming5(l),(no stop words/punctuations)/lammetizing5(l),(no stop words/punctuation)5(nc),(no stop words/punctuations)/stemming5(nc),(no stop words/punctuations)/lammetizing5(nc),no stop words1(l),no stop words/stemming1(l),no stop words/lammetizing1(l),no stop words1(nc),no stop words/stemming1(nc),no stop words/lammetizing1(nc),no stop words2(l),no stop words/stemming2(l),no stop words/lammetizing2(l),no stop words2(nc),no stop words/stemming2(nc),no stop words/lammetizing2(nc),no stop words3(l),no stop words/stemming3(l),no stop words/lammetizing3(l),no stop words3(nc),no stop words/stemming3(nc),no stop words/lammetizing3(nc),no stop words4(l),no stop words/stemming4(l),no stop words/lammetizing4(l),no stop words4(nc),no stop words/stemming4(nc),no stop words/lammetizing4(nc),no stop words5(l),no stop words/stemming5(l),no stop words/lammetizing5(l),no stop words5(nc),no stop words/stemming5(nc),no stop words/lammetizing5(nc),no punctuations1(l),no punctuations/stemming1(l),no punctuations/lammetizing1(l),no punctuations1(nc),no punctuations/stemming1(nc),no punctuations/lammetizing1(nc),no punctuations2(l),no punctuations/stemming2(l),no punctuations/lammetizing2(l),no punctuations2(nc),no punctuations/stemming2(nc),no punctuations/lammetizing2(nc),no punctuations3(l),no punctuations/stemming3(l),no punctuations/lammetizing3(l),no punctuations3(nc),no punctuations/stemming3(nc),no punctuations/lammetizing3(nc),no punctuations4(l),no punctuations/stemming4(l),no punctuations/lammetizing4(l),no punctuations4(nc),no punctuations/stemming4(nc),no punctuations/lammetizing4(nc),no punctuations5(l),no punctuations/stemming5(l),no punctuations/lammetizing5(l),no punctuations5(nc),no punctuations/stemming5(nc),no punctuations/lammetizing5(nc),class 25.41,25.41,24.86,0.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,hr
can advise me regarding this.
thank you,
well, not sure whole data set, sample have posted think because in test set 1 class label. copied line in test set , add second label (lr) , works. guess have have same class labels in train , test set evaluate classifier. luck.
Comments
Post a Comment