The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
What is the expected accuracy of the CNN tutorial?
Friedemann
Member, University Professor Posts: 27 University Professor
I have loaded the tutorial process and fed in data from here:
(42000 jpeg images in 10 folders)
The process runs fine (approx. 45 Minutes with CPU and about 35 minutes with GPU). If I use the training set as test set as well I reach an accuracy of about 9.97% because every image is classified as a 9. Am I doing something wrong or is there something wrong with the deep learning extension?
Btw, classifying the csv version of the images using two fully connected layers (plus output layer) reaches an accuracy of about 97%.
Update: By using the full data set for both training and testing of the non-CNN net, an accuracy of 99,91% is reached (excution time 7:45 min with GPU).
Cheers
Friedemann
0
Best Answer
-
Friedemann Member, University Professor Posts: 27 University ProfessorSorry, wrong thread! Please ignore!Question has been answered in another thread:In a nutshell:You have to specify the input shape manually! The default is set to "automatic". When switching off automatic mode a number of parameters can be set specifying how to map the data onto the tensor.Important: This approach assumes that the data is stored as a sequence of rows in the csv and to have a single line per instance. Multi-channel data is represented as a "sequence" of complete instances per channel in the same line and indicated by the "depth" parameter of the input shape.
0
Answers
Several weeks ago, I observed something very similar by performing "Time series classification" with the Deep Learning Extension with the LSTM layer inside the Deep Learning (Tensor) operator.
In entry of the process, there is a collection of time series with a label associated to 6 classes.
Like @Friedemann, I'm using the training set as the test set and as the result, the predicted class by the model is systematically one of these classes.
I specify that I performed the same classification task in a Python notebook (using Keras/Tensorflow) and as the result I get around 60% accuracy...!
The process is in attached file (it is basically the same process as the process called "ICU mortality classification" in the samples of the Deep Learning folder).
I can share the data on request if you want to reproduce what I observed with this process in order to understand what is going on.
Regards,
Lionel
ND4J: 1.0.0
Image Handling: 0.2.1