Giter Club home page Giter Club logo

ocd-journal's Introduction

Open Category Detection with PAC Guarantees and Sample Size Analysis

Code for replicating the experimental results in ocd journel version.

The iForest (Isolation Forest) inplementation used here is provided by Tadesse ZeMicheal and available from https://github.com/tadeze/osu_iforest .

Threshold estimate experiments on synthetic data sets:

"Open-Category-Detection-with-PAC-Guaranteesp-Synthetic.ipynb"

Threshold estimate experiments on benchmark data sets:

"alpha_prime_full.R" (This one is for six UCI data sets and MNIST. Data sets are included in "benchmark_datasets.zip". )

"alpha_prime_tinyimagenet.R" (This one is for Tiny ImageNet. The scores for data points in Tiny ImageNet are included in "benchmark_datasets.zip". The scores are got through the method in Dan Hendrycks and Kevin Gimpel's 2017 paper: A baseline for detecting misclassified and out-of-distribution examples in neural networks.)

Producing learning curve of nine estimators for alpha on six UCI data sets:

"learning_curve_nine.R"

The code file "KM.py" for the first four estimators: alpha_1, alpha_2, alpha_1score and alpha_2score are modified from the code as in link http://web.eecs.umich.edu/~cscott/code.html#kmpe for the paper "Mixture Proportion Estimation via Kernel Embedding of Distributions" by Harish G. Ramaswamy, Clayton Scott and Ambuj Tewari.

The code files for the last four estimators: C-PC, C-ROC, ROC and SPY in folder "R_files_for_sourcing" are modified from the code as in repo https://github.com/zflin/PU_learning for the paper "A Flexible Procedure for Mixture Proportion Estimation in Positive–Unlabeled Learning" by Zhenfeng Lin and James P. Long.

Comparing the performance of five etsimators for alpha and threshold estimation on six UCI datasets, based on anomaly scores from iForest:

"iforest_five_alpha.R"

Comparing the performance of five estimators for alpha and threshold estimation on six UCI datasets, based on predicted probabilities from classifiers:

"int_five_alpha_10_prob.R"

"int_five_alpha_20_prob.R"

"int_five_alpha_40_prob.R"

ocd-journal's People

Contributors

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