• Register
1 vote
510 views

Problem :

I am new to the Python programming. I am facing below error while trying to execute my code.

File "C:\Users\Anaconda3\lib\site-packages\keras\engine\training_arrays.py", line 217, in fit_loop
    callbacks.on_epoch_end(epoch, epoch_logs)

  File "C:\Users\Anaconda3\lib\site-packages\keras\callbacks.py", line 79, in on_epoch_end
    callback.on_epoch_end(epoch, logs)

  File "C:\Users\Anaconda3\lib\site-packages\keras\callbacks.py", line 338, in on_epoch_end
    self.progbar.update(self.seen, self.log_values)

AttributeError: 'ProgbarLogger' object has no attribute 'log_values'

Please Note : I have a latest version of AnacondaKeras and Python.

I am trying to fix this error since yesterday but I am unable to fix it. Can somebody help me in fixing the above mentioned error?

8 5 2
3,230 points

Please log in or register to answer this question.

1 Answer

1 vote

Solution :

I am trying to answer your question. The error can occur for multiple conditions as given below.

The most frequent condition to cause the above error is if you are using the smaller datasets then those datasets are small enough to not have the single sample in your validation set. As a result it cannot calculate the validation loss.

Another condition which I can recall for above error if in cases where the dataset is small and calculated the validation_steps and the steps_per_epoch which surprisingly turned out to be zero and caused the error.

The last condition I can recollect when your error occurs is because you might have forgotten to set the validation_data in your fit() method and you might have used 'callbacks': then it can cause error.

8 4 1
5,680 points

Related questions

1 vote
1 answer 669 views
669 views
Problem: I am having basic knowledge of python, tensorflow, keras. I have read most of the possible solutions for my error they are suggesting wrapping my problematic tensor in the Lambda layer and I have already tried this method but I ... line 1665, in build_map_of_graph     layer, node_index, tensor_index = tensor._keras_history AttributeError: 'Tensor' object has no attribute '_keras_history'
asked May 23, 2020 Martin K 6.6k points
0 votes
1 answer 620 views
620 views
Problem: If I try to execute the command sess = tf.Session() in the Tensorflow 2.0 environment then I am facing below error message: Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: module 'tensorflow' has no attribute ' ... install numpy==1.16.2 Command Execution as below: Execute the command: import tensorflow as tf Execute the command: sess = tf.Session()
asked Jul 21, 2020 Raphael Pacheco 4.9k points
0 votes
1 answer 90 views
90 views
Problem: I am very new to Keras. Now a days I am trying to use Keras (Sequential) but I am facing below error if I try to import it: File "kaggle_titanic_keras.py", line 3, in <module>     from keras.models import Sequential  File "/anaconda/lib/python2.7/site- ... 2.0.3 and recently 'upgraded' to Pandas 0.20.1 which I doubt is causing a problem but above error message says nothing about it.
asked Jul 21, 2020 Raphael Pacheco 4.9k points
0 votes
1 answer 54 views
54 views
Problem: attributeerror: 'dataframe' object has no attribute 'sort'
asked Feb 18 charles mathews 5.5k points
0 votes
1 answer 850 views
850 views
Problem: Recently I have joined new project on python and numpy. My below code is returning me below error: Attributeerror: 'numpy.ndarray' object has no attribute 'append' . Please find my code below for the reference: class1 = np.array([]) #It creates 2 ... to print my results in the scatter graphic with the two colors where I can try to identify the visually the class1 and class2 elements.
asked Jun 17, 2020 Raphael Pacheco 4.9k points
0 votes
1 answer 1 view
1 view
Problem: I am stuck now .. need some suggestions .. please help me .. attributeerror: module 'theano' has no attribute 'gof'
asked 4 days ago Ifra 24.4k points
0 votes
1 answer 38 views
38 views
Problem: valueerror: object arrays cannot be loaded when allow_pickle=false
asked Feb 21 charles mathews 5.5k points
0 votes
1 answer 2 views
2 views
Problem: I have my own dataset for a deep learning project. I uploaded that into Google Drive and linked it to a Colab page. But Colab could read only 2-3 images in a second
asked 2 days ago ummesalma 22.9k points
0 votes
1 answer 6 views
6 views
Problem: How to fix this: Tensor' object has no attribute '_keras_history' Thank you for any help provided!
asked Mar 21 ummesalma 22.9k points