Keras: confusion matrix with predict_generatorHow to get predictions with predict_generator on streaming test...
Is `Object` a function in javascript?
Taking headphones when quitting job
How to write cases in LaTeX?
Why do neural networks need so many examples to perform?
Website seeing my Facebook data?
How is this property called for mod?
Converting very wide logos to square formats
What senses are available to a corpse subjected to a Speak with Dead spell?
How do you get out of your own psychology to write characters?
If angels and devils are the same species, why would their mortal offspring appear physically different?
Eww, those bytes are gross
Equivalent of "illegal" for violating civil law
Closed set in topological space generated by sets of the form [a, b).
Non-Cancer terminal illness that can affect young (age 10-13) girls?
How to politely refuse in-office gym instructor for steroids and protein
The No-Straight Maze
What can I do to encourage my players to use their consumables?
Book where a space ship journeys to the center of the galaxy to find all the stars had gone supernova
Renting a 2CV in France
Why didn't Tom Riddle take the presence of Fawkes and the Sorting Hat as more of a threat?
Count repetitions of an array
Time-efficient matrix elements grouping and summing
Why does 0.-5 evaluate to -5?
Can a player sacrifice a creature after declaring that creature as blocker while taking lethal damage?
Keras: confusion matrix with predict_generator
How to get predictions with predict_generator on streaming test data in Keras?Making Keras + Tensorflow code execution deterministic on a GPUFormat for X_train in keras using theanoKeras LSTM: use weights from Keras model to replicate predictions using numpyHow can I find out what class each of the columns in the probabilities output correspond to using Keras for a multi-class classification problem?Deep learning with Tensorflow: training with big data setsHow exactly does class_weight in Keras work?Why does my custom categorical cross-entropy explode with Keras while not with TensorFlow?Keras multi input model loss plummets, doesn't trainKeras' fit_generator() is not calling my generator
$begingroup$
I'm not using "ImageDataGenerator" because I'm using hdf5 files. I used DataGenerator class (1) to feed data to the "model.fit_generator". How can I get the confusion matrix given that I have batches of random data? Notice that I know how to get it with "model.predict" using sklearn.
(1) https://stanford.edu/~shervine/blog/keras-how-to-generate-data-on-the-fly#
keras tensorflow
New contributor
$endgroup$
add a comment |
$begingroup$
I'm not using "ImageDataGenerator" because I'm using hdf5 files. I used DataGenerator class (1) to feed data to the "model.fit_generator". How can I get the confusion matrix given that I have batches of random data? Notice that I know how to get it with "model.predict" using sklearn.
(1) https://stanford.edu/~shervine/blog/keras-how-to-generate-data-on-the-fly#
keras tensorflow
New contributor
$endgroup$
add a comment |
$begingroup$
I'm not using "ImageDataGenerator" because I'm using hdf5 files. I used DataGenerator class (1) to feed data to the "model.fit_generator". How can I get the confusion matrix given that I have batches of random data? Notice that I know how to get it with "model.predict" using sklearn.
(1) https://stanford.edu/~shervine/blog/keras-how-to-generate-data-on-the-fly#
keras tensorflow
New contributor
$endgroup$
I'm not using "ImageDataGenerator" because I'm using hdf5 files. I used DataGenerator class (1) to feed data to the "model.fit_generator". How can I get the confusion matrix given that I have batches of random data? Notice that I know how to get it with "model.predict" using sklearn.
(1) https://stanford.edu/~shervine/blog/keras-how-to-generate-data-on-the-fly#
keras tensorflow
keras tensorflow
New contributor
New contributor
edited 7 hours ago
naive
2366
2366
New contributor
asked 12 hours ago
cabecabe
11
11
New contributor
New contributor
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "557"
};
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: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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
});
}
});
cabe is a new contributor. Be nice, and check out our Code of Conduct.
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%2fdatascience.stackexchange.com%2fquestions%2f46182%2fkeras-confusion-matrix-with-predict-generator%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
cabe is a new contributor. Be nice, and check out our Code of Conduct.
cabe is a new contributor. Be nice, and check out our Code of Conduct.
cabe is a new contributor. Be nice, and check out our Code of Conduct.
cabe is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Data Science Stack Exchange!
- 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.
Use MathJax to format equations. MathJax reference.
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%2fdatascience.stackexchange.com%2fquestions%2f46182%2fkeras-confusion-matrix-with-predict-generator%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