This is a Classifier model for Musk classification of Organic Chemical Compounds dataset of 6598 datapoints. Deep Neural Network is built with Keras Library and Evaluation of model is also done after training the model on GPU.
The given dataset contains details about organic chemical compounds including their chemical features, isomeric conformation, names and the classes in which they are classified. The compounds are classified as either ‘Musk’ or ‘Non-Musk’ compounds. There are 166 Chemical features presented for each compound.
This is the code of Deep Neural Network Softmax Classifier which is implemented on Organic Chemical Compounds dataset.
Train set is 80% and Test(validations) set is 20% of the entire dataset, which is 5278 and 1320 respectively.
Sequential Layer model of 4 Hidden layers [100,50,50,50] is used in Deep Neural Network. Categorical Cross Entropy is used to obtain loss of the model and Adam optimizer is used to optimize the model. 60 epochs are set for as model's hyperparameter.
After 48 epochs Training Accuracy and Validation Accuracy became constant at 1.00 and 0.9992, respectively.
Following Metrices are achieved by training the model:
- f1 score: 0.9976019184652278
- precision: 1.0
- recall: 0.9952153110047847
- Validation Loss: 0.001435200567357242
- Validation Accuracy: 0.9992424249649048
Install missing dependencies with pip
- (1) Musk Classification of Chemical Compounds with Deep Neural Network in Keras on GPU.ipynb is Jupyter Notebook which contains classifier model.
- (2) musk_csv.csv is csv file of abovementioned dataset.
- (3) model.h5 is a HDF5 file which contains parameters of the DNN classifier.
- (4) Model Accuracy.JPG is a jpg file which contains Graph of training and validation accuracies vs epoch.
- (5) Model Loss.JPG is a jpg file which contains Graph of training and validation loss vs epochs.
Install jupyter here.