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!
Release files for CoWSuper 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cowsuper-0.0.2.tar.gz | 78.1 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cowsuper-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 156.3 MB
Release files / cowsuper-0.0.2.tar.gz
| Download URL | cowsuper-0.0.2.tar.gz |
|---|---|
| Size | 78.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
83dc3f7127553001e06d0bd6583f973cdd244e47fb73759f15c49f7d648a7eeb
|
|
BLAKE2b-256 checksum How to use checksums |
a4734de05162519381d715b968fa2e1af21d59e89167faa1c537ca308b3a46f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.12
|
Release files / cowsuper-0.0.2-py3-none-any.whl
| Download URL | cowsuper-0.0.2-py3-none-any.whl |
|---|---|
| Size | 78.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a5db0b3219e1894057061c3f07429bd913cad01b16204f01f99c7d54829eb49a
|
|
BLAKE2b-256 checksum How to use checksums |
af6a6b69f00baca6437acd17bb362062452b3d3091c55ce49b07be004e4a55fa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.12
|