Coder Social home page Coder Social logo

valex22 / nd_vae Goto Github PK

View Code? Open in Web Editor NEW
10.0 3.0 2.0 25 KB

Implementation of q-Space Novelty Detection with Variational Autoencoders

License: BSD 3-Clause "New" or "Revised" License

MATLAB 25.91% Python 74.09%
variational-autoencoder novelty-detection theano lasagne matlab neural-network

nd_vae's Introduction

q-Space Novelty Detection with Variational Autoencoders

This repository contains the official implementation for the paper q-Space Novelty Detection with Variational Autoencoders.

Dependencies:

  • python 3
  • theano
  • lasagne
  • numpy
  • scipy
  • matlab

Methods:

Distance- and density-based methods are implemented in matlab. Other methods are implemented in python.

Usage:

To use one of the proposed novelty detection methods with your data you should:

  1. implement data loading methods in model/Data.py
  2. train a model on your data
  3. run one of the proposed methods:
# test_data = ...
nd = NoveltyDetection(model=1)
res = nd.compute_fast_novelty_scores(test_data)
# ...

for matlab methods, data should be saved in 'mat' format first:

# normal_data = ..., test_data = ...
nd = NoveltyDetection(model=1)
latent_normal_data = nd.encode(normal_data)
latent_test_data = nd.encode(test_data)
nd.save_to_mat(latent_normal_data, "normal_data_path")
nd.save_to_mat(latent_test_data, "test_data_path")

then you can run a matlab code:

test_data = load('test_data_path', 'data');
normal_data = load('normal_data_path', 'data');
novelty_score = compute_novelty_score(normal_data, test_data, 'metric', 'euclidean', 'use_gpu', true);
...

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.