Git Product home page Git Product logo

dmae's Introduction

Dissimilarity Mixture Autoencoder

dmae

Tensorflow implementation of the Dissimilarity Mixture Autoencoder:

Abstract

In this paper, we introduce the Dissimilarity Mixture Autoencoder (DMAE), a novel neural network model that uses a dissimilarity function to generalize a family of density estimation and clustering methods. It is formulated in such a way that it internally estimates the parameters of a probability distribution through gradient-based optimization. Also, the proposed model can leverage from deep representation learning due to its straightforward incorporation into deep learning architectures, because, it consists of an encoder-decoder network that computes a probabilistic representation. Experimental evaluation was performed on image and text clustering benchmark datasets showing that the method is competitive in terms of unsupervised classification accuracy and normalized mutual information.

Requirements

If you have anaconda installed, you can create the same environment that we used for the experiments using the following command:

conda env create -f dmae_env.yml

Then, you must activate the environment:

source activate dmae

or

conda activate dmae

Usage

This implementation is based on tf.keras.layers, therefore, DMAE can be easily used in other deep learning models as an intermediate layer. A replication of the experiments can be found in the folder examples, we highly recommend to check the experiments on synthetic data first: examples/synthetic/. They provide an interactive experience that is useful to interpret the learned representations of DMAE.

example

For the real data examples/real, you can run python experiments.py -h for more information about the possible options.

Some examples are:

  • Quick test:
python experiments.py --trials 1 --pretrain_epochs 1 --cluster_epochs 1
  • Replication of the MNIST results using the euclidean dissimilarity:
python experiments.py --dataset mnist --trials 10 --pretrain_epochs 500 --cluster_epochs 300 --da True --train_batch 256 --test_batch 1000 --dis euclidean
  • Replication of the MNIST results using the mahalanobis dissimilarity:
python experiments.py --dataset mnist --trials 10 --pretrain_epochs 500 --cluster_epochs 300 --da True --train_batch 256 --test_batch 1000 --dis mahalanobis
  • Replication of the Reuters experiments:
python experiments.py --dataset reuters10 --trials 10 --pretrain_epochs 100 --cluster_epochs 100 --train_batch 256 --test_batch 1000 --dis euclidean

dmae's People

Contributors

juselara1 avatar volodyaco avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.