Artificial Convolutional Neural Network For Pneuomonia Classification. This is a model generation class.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Java SE JDK 8,
GRADLE 5.6
Model file already has been generated for you in root directory - "main.bin". If you would like to retrain model you would need to parse data samples into resources folder:
-
Download and extract repository
-
Create ./data/train and ./data/test directories and paste pneumonia images there. Supported image formats are JPEG.
-
Open command line at extracted directory
-
Type:
gradle build
- Gradle will generate jar at ../com.pneumonia.classifier/build/libs/
This will generate new model in root directory.
PneumoniaClassifierTrainApp performes model evaluation right after model get trained. Output of model accuracy is printed to console.
Model consists of 6 layers:
-
Convolutional builder layer
-
Subsampling layer
-
Convolutional builder layer
-
Subsampling layer
-
Dense Layer
-
Output layer
Loss function is Negative likely hood and optimization SGD. Output is driven by SOFTMAX with range 0-1.
This project is licensed under the Apache License 2