Train and test set are not compatibleBuilding compatible datasets for Weka for large, evolving dataStep by step guide to train a multilayer perceptron for the XOR case in Weka?How to interpret Weka Logistic Regression output?WEKA & HMMWeka, train and test models‏Model building and reading Sparse ARFF File in WEKAusing weka j48 in java codeWeka cross-validation, models based on folds never buildDifferences in calculation for Naive net in WEKAHow can I copy attribute in java weka?Weka - cross validation based on nominal values

Every infinite linearly ordered set has two disjoint infinite subsets

What is this blowing instrument used in the acoustic cover of "Taekwondo" by "Walk off the Earth"?

What would Earth look like at night in medieval times?

How come I was asked by a CBP officer why I was in the US?

What are the penalties for overstaying in USA?

How many satellites can stay in a Lagrange point?

Why does Darth Sidious need bodyguards?

Should I tell my insurance company I'm making payments on my new car?

Why aren't (poly-)cotton tents more popular?

What determines the "strength of impact" of a falling object on the ground, momentum or energy?

Why isn’t the tax system continuous rather than bracketed?

Do sudoku answers always have a single minimal clue set?

What is the line crossing the Pacific Ocean that is shown on maps?

Why is the Turkish president's surname spelt in Russian as Эрдоган, with г?

Does ultrasonic bath cleaning damage laboratory volumetric glassware calibration?

The use of "I" and "we" used in the same sentence and other questions

Declining an offer to present a poster instead of a paper

Simple object validator with a new API

Does anycast addressing add additional latency in any way?

Why does the A-4 Skyhawk sit nose-up when on ground?

Going to get married soon, should I do it on Dec 31 or Jan 1?

How can Charles Proxy change settings without admin rights after first time?

How risky is real estate?

Calculating the partial sum of a expl3 sequence



Train and test set are not compatible


Building compatible datasets for Weka for large, evolving dataStep by step guide to train a multilayer perceptron for the XOR case in Weka?How to interpret Weka Logistic Regression output?WEKA & HMMWeka, train and test models‏Model building and reading Sparse ARFF File in WEKAusing weka j48 in java codeWeka cross-validation, models based on folds never buildDifferences in calculation for Naive net in WEKAHow can I copy attribute in java weka?Weka - cross validation based on nominal values






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I am trying to use Weka to make decisions using arff files, however when i try to classify i recieve the error "Problem evaluating classifier: Train and test set are not compatible".



This is my weather.arff file



@relation weather
@attribute outlook sunny, overcast, rainy
@attribute temperature real
@attribute humidity real
@attribute windy TRUE, FALSE
@attribute play yes, no
@data
sunny,85,85,FALSE,no
sunny,80,90,TRUE,no
overcast,83,86,FALSE,yes
rainy,70,96,FALSE,yes
rainy,68,80,FALSE,yes
rainy,65,70,TRUE,no
overcast,64,65,TRUE,yes
sunny,72,95,FALSE,no
sunny,69,70,FALSE,yes
rainy,75,80,FALSE,yes
sunny,75,70,TRUE,yes
overcast,72,90,TRUE,yes
overcast,81,75,FALSE,yes
rainy,71,91,TRUE,no


and this is my weather.nominal.classify.arff



@relation weather.symbolic
@attribute outlook sunny, overcast, rainy
@attribute temperature hot, mild, cool
@attribute humidity high, normal
@attribute windy TRUE, FALSE
@attribute play yes, no
@data
overcast,mild,high,TRUE,?









share|improve this question




























    0















    I am trying to use Weka to make decisions using arff files, however when i try to classify i recieve the error "Problem evaluating classifier: Train and test set are not compatible".



    This is my weather.arff file



    @relation weather
    @attribute outlook sunny, overcast, rainy
    @attribute temperature real
    @attribute humidity real
    @attribute windy TRUE, FALSE
    @attribute play yes, no
    @data
    sunny,85,85,FALSE,no
    sunny,80,90,TRUE,no
    overcast,83,86,FALSE,yes
    rainy,70,96,FALSE,yes
    rainy,68,80,FALSE,yes
    rainy,65,70,TRUE,no
    overcast,64,65,TRUE,yes
    sunny,72,95,FALSE,no
    sunny,69,70,FALSE,yes
    rainy,75,80,FALSE,yes
    sunny,75,70,TRUE,yes
    overcast,72,90,TRUE,yes
    overcast,81,75,FALSE,yes
    rainy,71,91,TRUE,no


    and this is my weather.nominal.classify.arff



    @relation weather.symbolic
    @attribute outlook sunny, overcast, rainy
    @attribute temperature hot, mild, cool
    @attribute humidity high, normal
    @attribute windy TRUE, FALSE
    @attribute play yes, no
    @data
    overcast,mild,high,TRUE,?









    share|improve this question
























      0












      0








      0








      I am trying to use Weka to make decisions using arff files, however when i try to classify i recieve the error "Problem evaluating classifier: Train and test set are not compatible".



      This is my weather.arff file



      @relation weather
      @attribute outlook sunny, overcast, rainy
      @attribute temperature real
      @attribute humidity real
      @attribute windy TRUE, FALSE
      @attribute play yes, no
      @data
      sunny,85,85,FALSE,no
      sunny,80,90,TRUE,no
      overcast,83,86,FALSE,yes
      rainy,70,96,FALSE,yes
      rainy,68,80,FALSE,yes
      rainy,65,70,TRUE,no
      overcast,64,65,TRUE,yes
      sunny,72,95,FALSE,no
      sunny,69,70,FALSE,yes
      rainy,75,80,FALSE,yes
      sunny,75,70,TRUE,yes
      overcast,72,90,TRUE,yes
      overcast,81,75,FALSE,yes
      rainy,71,91,TRUE,no


      and this is my weather.nominal.classify.arff



      @relation weather.symbolic
      @attribute outlook sunny, overcast, rainy
      @attribute temperature hot, mild, cool
      @attribute humidity high, normal
      @attribute windy TRUE, FALSE
      @attribute play yes, no
      @data
      overcast,mild,high,TRUE,?









      share|improve this question














      I am trying to use Weka to make decisions using arff files, however when i try to classify i recieve the error "Problem evaluating classifier: Train and test set are not compatible".



      This is my weather.arff file



      @relation weather
      @attribute outlook sunny, overcast, rainy
      @attribute temperature real
      @attribute humidity real
      @attribute windy TRUE, FALSE
      @attribute play yes, no
      @data
      sunny,85,85,FALSE,no
      sunny,80,90,TRUE,no
      overcast,83,86,FALSE,yes
      rainy,70,96,FALSE,yes
      rainy,68,80,FALSE,yes
      rainy,65,70,TRUE,no
      overcast,64,65,TRUE,yes
      sunny,72,95,FALSE,no
      sunny,69,70,FALSE,yes
      rainy,75,80,FALSE,yes
      sunny,75,70,TRUE,yes
      overcast,72,90,TRUE,yes
      overcast,81,75,FALSE,yes
      rainy,71,91,TRUE,no


      and this is my weather.nominal.classify.arff



      @relation weather.symbolic
      @attribute outlook sunny, overcast, rainy
      @attribute temperature hot, mild, cool
      @attribute humidity high, normal
      @attribute windy TRUE, FALSE
      @attribute play yes, no
      @data
      overcast,mild,high,TRUE,?






      weka






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 25 at 11:12









      DanDan

      32 bronze badges




      32 bronze badges






















          1 Answer
          1






          active

          oldest

          votes


















          2














          Your attributes are different. In your first file you have
          @attribute temperature real
          and in your second file you have
          @attribute temperature hot, mild, cool



          Same with humidity. you need to have the attribute definitions completely identical.






          share|improve this answer

























            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55336499%2ftrain-and-test-set-are-not-compatible%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            2














            Your attributes are different. In your first file you have
            @attribute temperature real
            and in your second file you have
            @attribute temperature hot, mild, cool



            Same with humidity. you need to have the attribute definitions completely identical.






            share|improve this answer



























              2














              Your attributes are different. In your first file you have
              @attribute temperature real
              and in your second file you have
              @attribute temperature hot, mild, cool



              Same with humidity. you need to have the attribute definitions completely identical.






              share|improve this answer

























                2












                2








                2







                Your attributes are different. In your first file you have
                @attribute temperature real
                and in your second file you have
                @attribute temperature hot, mild, cool



                Same with humidity. you need to have the attribute definitions completely identical.






                share|improve this answer













                Your attributes are different. In your first file you have
                @attribute temperature real
                and in your second file you have
                @attribute temperature hot, mild, cool



                Same with humidity. you need to have the attribute definitions completely identical.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 26 at 1:50









                zbicyclistzbicyclist

                4042 silver badges8 bronze badges




                4042 silver badges8 bronze badges





























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55336499%2ftrain-and-test-set-are-not-compatible%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

                    Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

                    Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript