Giter Site home page Giter Site logo

dtkc's Introduction

DTKC

Implementation of the DTKC-model from "Deep Image Clustering with Tensor Kernels and Unsupervised Companion Objectives"

Dependencies

h5py=2.9.0
hdf5=1.10.5
numpy=1.17.2
python=3.6.7
tensorflow-gpu=2.0.0
tensorflow-probability=0.7

Training

To train the model, run main.py with the desired parameters.

optional arguments:
  -h, --help            show this help message and exit
  --dataset DATASET_NAME
                        Name of the dataset. Can be either 'mnist' or 'fmnist'
  --n_clusters N_CLUSTERS
                        Number of clusters
  --n_runs N_RUNS       Number of runs
  --n_epochs N_EPOCHS   Number of epochs
  --batch_size BATCH_SIZE
                        Batch size
  --sigma SIGMA         Scaling factor for the sigma hyperparameter
  --lam LAM             Lambda hyperparameter
  --n_hidden N_HIDDEN   Number of units in the hidden layer
  --hidden_activation HIDDEN_ACTIVATION
                        Activation function for the hidden layer
  --batch_norm BATCH_NORM
                        Use batch normalization after the hidden layer
  --clipnorm CLIPNORM   Gradient norm for gradient clipping
  --learning_rate LEARNING_RATE
                        Learning rate for the Adam optimizer
  --use_companion_losses USE_COMPANION_LOSSES
                        Enable companion objectives?

Custom datasets

You can train the model on you own dataset by defining a dataset name and a loading function in the LOADERS dictionary, in data.py.

dtkc's People

Contributors

danieltrosten 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.