GithubHelp home page GithubHelp logo

seal's Introduction

Seal: Similarity Estimation from Adversarial Learning

The Seal class is used to index and query data using Adversarial Random Forests (ARF). The primary concept behind the algorithm is to ensure that data are jointly independent within each leaf of the ARF. Key Concepts:

Adversarial Random Forests (ARF): ARF is a modification of the standard Random Forest algorithm. The ARF algorithm iteratively generates synthetic data and trains classifiers to distinguish between the original and synthetic data. The iteration continues until the classifier's out-of-bag accuracy falls below a certain threshold, indicating that the synthetic and original data are near-indistinguishable.

Leaf Coverage: Each leaf of an ARF covers a hyper-rectangular subspace in the feature space, representing a subset of adjacent vectors. The accuracy of this coverage improves as the error of coverage reduces, leading to a more refined partitioning of the feature space.

Indexing and Querying: The Seal class uses ARF for indexing and querying. In the indexing phase, it trains an ARF model on the data and maps each leaf to the indices of data points falling within it. During the query phase, it identifies the leaves that a new data point falls into and returns the most similar data point within those leaves based on cosine similarity. Improvements with Larger Datasets:

As the dataset size increases, the indexing generally becomes more accurate due to better density estimation and reduced coverage error. A larger dataset provides a more accurate estimation of the underlying data density, leading to improved partitioning of the feature space. Additionally, the Glivenko-Cantelli theorem guarantees that the empirical distribution of data within each leaf node converges to the true underlying distribution as the dataset size increases, reducing the error of coverage. Consequently, each leaf node covers a more accurate subset of the feature space. However, while more data typically lead to better performance, there are diminishing returns beyond a certain dataset size, and better indexing transfers the curse of dimensionality to deep trees and many training rounds, making indexing very time consuming for high dimensional datasets. This limits the usefulness of this algorithim in its current iteration. Feel free to reach out at [email protected] if interested!

seal's People

Contributors

johneckberg avatar

Watchers

Kostas Georgiou avatar  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.