Skip to content

GatorSense/MorphExperiments

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Morphological Neural Networks

This is the repository for the current experiments on MNNs in the Machine Learning and Sensing Lab. These experiments build of the work done in Xu (2023).

Instructions to run

Clone this repository:

git clone https://github.com/GatorSense/MorphExperiments
cd MorphExperiments

Use the train.py file to train a binary classifier on hit-miss filters on MNIST images of threes and not threes (fours and eights). The test accuracy will include all 10 classes found in the MNIST data, showcasing its ability to reject classes, even if not included in the training data.

python train.py [args]

Refer to the help sections of the argument parser in train.py for more details.

Metrics

The following metrics are logged throughout training:

  • Training and testing confusion matrices
  • Histograms of feature map values throughout training per class
  • Heatmap on all test classes
  • Hit and miss filters over training

All of the above are viewed on Comet.ml, and the user's API key must be put in a .env file in the following format:

COMET_API_KEY=your_api_key_here

References

Xu, Weihuang (2023). Deep Morph-Convolutional Neural Network: Combining Morphological Transform and Convolution in Deep Neural Networks. [Doctoral dissertation, University of Florida]. UF Digital Collections. https://ufdc.ufl.edu/UFE0059487/00001/pd

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages