• Register
1 vote
414 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
5,680 points

Related questions

1 vote
1 answer 469 views
469 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 571 views
571 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 376 views
376 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 52 views
52 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 252 views
252 views
Problem: I have currently started learning about using the pandas in ipython notebook: import pandas as pd But I have encountered the below error on my above line of code: AttributeError  Traceback (most recent call last) <ipython-input-17-c7ecb2b0a99d> in <module>() ----> 1 from ... ' I have no knowledge on how to fix the above error, what is a problem here? My python's version is currently 3.6
asked Aug 10, 2020 Raphael Pacheco 4.9k points
0 votes
1 answer 644 views
644 views
Problem : I want to learn the Machine Learning but I am unabe to resolve below error. My Specs : · Mac High Sierra 10.13.2 · Python3.4.5 · Numpy1.13.3 Used below Command: $ python3 -c "import jupyter, matplotlib, numpy, pandas, scipy, sklearn" I am ... to import pandas from the source directory, you may need to run 'python setup.py build_ext --inplace --force' to build the C extensions first.
asked Dec 4, 2019 alecxe 7.5k points
0 votes
1 answer 5 views
5 views
Problem: At the bottom of the code you have to add these lines: simFlips(100,100) show() Here is the error that I get when I run it on ubuntu: Traceback (most recent call last): File "coin.py", line 36, in <module> simFlips(100,100) File "coin.py", ... (heads - tails)) AttributeError: 'numpy.ndarray' object has no attribute 'append' Please tell me what I'm doing wrong that gives me the last error
asked 4 days ago Mashhoodch 5.6k points
0 votes
1 answer 4 views
4 views
Problem: The CSV file contains 37 attributes + the label (last column). it doesn't contain header or index. Exp of the 1st row: 63651000000.0,63651000000.0,153.1,0,0,0,0,0,0,5,1,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1 ... "csv2libsvm.py", line 47, in <module> headers = reader.next() AttributeError: '_csv.reader' object has no attribute 'next' Do you have any idea about the problem ?
asked 6 days ago Mashhoodch 5.6k points
0 votes
1 answer 23 views
23 views
Problem: Hi there! I am new to the world of Python, and I am just trying new things in programming. I learned somewhere about the split() method and tried the following program: number = 43.42 another = number.split() print(another) When I executed this program ... numbers before and after the decimal point. I have no idea what caused this error. Can anyone here help me solve the problem, please?
asked Jan 4 Code Learner 5.1k points