Skip to main content

A tool that produces labels using weakly supervised learning with constraint-based methods.

Project description

Weakly-Supervised-Learning

This is a package that produces labels using weakly supervised learning with constraint-based methods.

The package contains 2 algorithms, Data Consistent Weak Supervision (DCWS) and Constrained Label Learning (CLL), that are contains code for the following papers

* Constrained Labeling for Weakly Supervised Learning
* Data Consistency for Weakly Supervised Learning

If you use this work in an academic study, please cite our paper

Requirements

The library is tested in Python 3.6 and 3.7.

Its main requirements are Tensorflow and numpy.

Scikit-learn is required to run the experiments.

Examples

We have provided a run_experiment file as an example on both algorithms, along the real datasets. They can all be found under the examples folder.

Logging

Logging is done via TensorBoard. The suggested storage format for each run is by the date/time the expirment was started, and then by dataset, and then by algorithm. Use:

tensorboard --logdir=logs/data_and_time/data_set/algorithm

Example:

tensorboard --logdir=logs/2021_07_28-05:50:52_PM/breast-cancer/CLL

Enjoy!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cowsuper-0.0.2.tar.gz (78.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cowsuper-0.0.2-py3-none-any.whl (78.2 MB view details)

Uploaded Python 3

File details

Details for the file cowsuper-0.0.2.tar.gz.

File metadata

  • Download URL: cowsuper-0.0.2.tar.gz
  • Upload date:
  • Size: 78.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.12

File hashes

Hashes for cowsuper-0.0.2.tar.gz
Algorithm Hash digest
SHA256 83dc3f7127553001e06d0bd6583f973cdd244e47fb73759f15c49f7d648a7eeb
MD5 c30d1b3e3b3871ec29ad65e77258fa6d
BLAKE2b-256 a4734de05162519381d715b968fa2e1af21d59e89167faa1c537ca308b3a46f1

See more details on using hashes here.

File details

Details for the file cowsuper-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: cowsuper-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 78.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.12

File hashes

Hashes for cowsuper-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a5db0b3219e1894057061c3f07429bd913cad01b16204f01f99c7d54829eb49a
MD5 5dc87942e4ba948dc47a6b90b7308b7c
BLAKE2b-256 af6a6b69f00baca6437acd17bb362062452b3d3091c55ce49b07be004e4a55fa

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page