Giter Club home page Giter Club logo

alien's Introduction

Welcome to ALIEN

Python package, methods and data for the paper Deep Batch Active Learning for Drug Discovery.

Active Learning In data ExploratioN (ALIEN) is a library for active learning, making it easy to use active learning with popular machine learning frameworks, such as Pytorch, Keras, Deepchem, and others. In most cases, you can plug your existing model and dataset into ALIEN's wrapper classes and immediately get useful functions, such as finding the (epistemic) uncertainty of a prediction, or selecting batches of new points to be labelled next (eg., by measuring them in a lab).

ALiEN is in Beta testing and is not a finished product! TODO: Change documentation link DOCUMENTATION HERE

Installation

$ git clone https://github.com/Sanofi-Public/Alien.git
$ cd Alien
$ pip install .

To install extras, use pip install .[<extra>] where <extra> may be one of

  • torch,
  • tensorflow,
  • deepchem,
  • deepchem-torch, or
  • deepchem-tensorflow.

Quick start

In the following example, we take certain objects as given:

  • keras_model is a Keras regression model
  • X and y are a set of initial labeled data, in a form consumable by keras_model
  • unlabeled_pool is a set of samples to select from

Then the following code will wrap the model in ALIEN's MCDropoutRegressor class, fit the model to X and y, and then select a batch of 10 samples from unlabeled_pool for labelling using the COVDROP selection strategy (which is what we call the combination of MC dropout with CovarianceSelector):

from alien.models import MCDropoutRegressor
from alien.selecion import CovarianceSelector

alien_model = MCDropoutRegressor(keras_model)
alien_model.fit(X, y)

selector = CovarianceSelector(
    model = alien_model,
    samples = unlabeled_pool,
    batch_size = 10,
)

batch = selector.select()

Contributing

Development of ALIEN happens on GitHub.

  • If you encounter a bug, please fill out the issue form here.
  • If you have a feature request, please fill the feature request form.

alien's People

Contributors

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