Python Forum
Calculating accuracy on RNN-LSTM model
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Calculating accuracy on RNN-LSTM model
#1
Hello,

How can I calculate the accuracy in a RNN-LSTM neural network?
Also when testing my model with either epoch = 1 , or epoch = 40 the result of the loss (0,01...) is approximately the same and I want to be more specific and calculate the accuracy in case there are errors with "loss" calculation.

Thanks

update: I changed this line:
model.compile(loss='mean_squared_error', optimizer='adam')
with:
model.compile(loss='mean_squared_error', optimizer='adam',metrics=['accuracy'])
and I get accuracy such as this:
...accuracy: 1.9380e-04 
or this:
...accuracy: 2.9070e-04
Update2:
Wtih this command:
model.compile(loss='mean_squared_error', optimizer='adam', metrics=[tensorflow.keras.metrics.Accuracy()])
I get this output:
...accuracy: 0.0000e+00
which does not seem good... any idea?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  model.fit and model.predict errors hatflyer 6 1,299 Nov-10-2023, 01:39 AM
Last Post: hatflyer
  number accuracy problem? roym 5 1,819 Dec-24-2021, 07:57 AM
Last Post: roym
  How to test and import a model form computer to test accuracy using Sklearn library Anldra12 6 3,108 Jul-03-2021, 10:07 AM
Last Post: Anldra12
  FileNotFoundError: [Errno 2] No such file or directory: 'model/doc2vec.model/Articles Anldra12 10 5,759 Jun-11-2021, 04:48 PM
Last Post: snippsat
  Measure accuracy of Object Detection Shameendra 2 2,677 Nov-19-2018, 01:04 PM
Last Post: Shameendra
  Accuracy of sqrt vndywarhol 1 2,518 Aug-29-2018, 10:14 AM
Last Post: Gribouillis
  why not accuracy working rajeev1729 1 2,613 Sep-12-2017, 02:15 PM
Last Post: ichabod801

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020