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 modelsModel 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 modelsModel 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;
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
add a comment |
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
add a comment |
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
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
weka
asked Mar 25 at 11:12
DanDan
32 bronze badges
32 bronze badges
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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.
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
add a comment |
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.
add a comment |
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.
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.
answered Mar 26 at 1:50
zbicyclistzbicyclist
4042 silver badges8 bronze badges
4042 silver badges8 bronze badges
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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