Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9147697
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:03:40+00:00 2026-06-17T11:03:40+00:00

Each row of my training and test datasets has intensity values for pixels in

  • 0

Each row of my training and test datasets has intensity values for pixels in an image with the last column having the label which tells what digit is represented in the image; the label can be any number from 0 to 9 in training set and is always ? on test set.

I loaded the training dataset on Weka Explorer, passed the data through NumericalToNominal filter and used RemovePercentage filter to split the data in 70-30 ratio, the 30% file being used as cross validation set. I built a classifer and saved the model.

Then, I loaded the test data which has ? against label for each row and applied the NumericToNominal filter and saved it as arff file.

Now, when i load the test data and try to user the model against it, I always get the error message saying “training and test set are not compatible”. Both datasets have undergone the same processing. What possibly could have gone wrong?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T11:03:42+00:00Added an answer on June 17, 2026 at 11:03 am

    As you can read from ARFF manual (http://www.cs.waikato.ac.nz/ml/weka/arff.html):

    Nominal values are defined by providing an
    listing the possible values: {, ,
    , …}

    For example, the class value of the Iris dataset can be defined as
    follows:

    @ATTRIBUTE class        {Iris-setosa,Iris-versicolor,Iris-virginica}
    

    So when you apply NumericToNominal to your test file you can possibly have different number of possible values for one or more attributes within train and test arff – it really can happen, it bothered me many times – so one solution is to check your arff’s manually (if it is not to big, or just copy and paste invocation of arff file with
    e.g.

    @attribute 'My first binary attribute' {0,1}
    (...)
    @attribute 'My last binary attribute' {0,1}
    

    from train to test file – should work

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For each row I have a column which contains numbers like this 1,4,6,3,16,13 .
using a dataset,each row has a method called hasVersion() which implies to me it
I have an HTML table where each row has buttons which toggle status bits
I need to create and Excel table that computes daily training times. each row
I have a DataGrid that represents layers - each row is an image on
I have a table where each row has a description field as well as
I have a ListView and each row has an ImageView. These Images are downloaded
I want to add a button to each row of a column of an
Each row in my table has a date time stamp, and I wish to
I've an application in which each row contains an uiimageview and an uibutton. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.