Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why do I get the results are different from you, and I can not understand? #2

Open
zhouhao-learning opened this issue Apr 8, 2017 · 1 comment

Comments

@zhouhao-learning
Copy link

zhouhao-learning commented Apr 8, 2017

I want to get all the acc, but the result is this, can you tell me which troops?
2017-04-08 16-59-04

This is my code

import keras
from mock.mock import self
from sklearn.metrics import roc_auc_score



class Histories(keras.callbacks.Callback):
    def on_train_begin(self, logs={}):
        self.acc = []
        return

    def on_train_end(self, logs={}):
        return

    def on_epoch_begin(self, epoch, logs={}):
        return

    def on_epoch_end(self, epoch, logs={}):

        return

    def on_batch_begin(self, batch, logs={}):
        return

    def on_batch_end(self, batch, logs={}):
        self.acc.append(logs.get('acc'))
        return
@keunwoochoi
Copy link
Owner

Mine was on keras 1.x, probably that's the reason?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants