Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/HazyResearch/liger
Liger: Fusing Weak Supervision and Model Embeddings
https://github.com/HazyResearch/liger
Last synced: 7 days ago
JSON representation
Liger: Fusing Weak Supervision and Model Embeddings
- Host: GitHub
- URL: https://github.com/HazyResearch/liger
- Owner: HazyResearch
- Created: 2022-07-24T01:52:15.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-01T21:22:01.000Z (over 2 years ago)
- Last Synced: 2024-08-02T15:34:16.615Z (3 months ago)
- Language: Python
- Size: 6.09 MB
- Stars: 8
- Watchers: 17
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Liger
This repository provides the official implementation of Liger from the
following paper:**Shoring Up the Foundations: Fusing Model Embeddings and Weak Supervision**
Mayee F. Chen*, Daniel Y. Fu*, Dyah Adila, Michael Zhang, Frederic Sala, Kayvon Fatahalian, Christopher RéPaper: https://arxiv.org/abs/2203.13270
![Liger](assets/banner.png)
## Installation
This repository depends on [FlyingSquid](https://github.com/HazyResearch/flyingsquid).
We recommend using `conda` to install FlyingSquid, and then you can install
Liger:
```
git clone https://github.com/HazyResearch/flyingsquid.gitcd flyingsquid
conda env create -f environment.yml
conda activate flyingsquidpip install -e .
cd ..
git clone https://github.com/HazyResearch/liger.git
cd liger
pip install -e .
```## Running Liger
1. Put the path to your pretrained embeddings in the respective dataset config file in [configs](https://github.com/HazyResearch/liger/tree/main/configs). We provide the pretrained embeddings for the spam dataset to run our examples. If the directory of the L and Y matrices is different from the embeddings, put the path in the `data_path` field in yaml (refer to [tennis.yaml](https://github.com/HazyResearch/liger/blob/main/configs/tennis.yaml)).2. We provide [notebook example](https://github.com/HazyResearch/liger/blob/main/liger_example.ipynb) that you can directly run. We also provide a [python script](https://github.com/HazyResearch/liger/blob/main/run_liger.py) that you can run with the following command:
```
python run_liger.py -c configs/spam.yaml
```
To run for other datasets, change `configs/spam.yaml` to the dataset config instead.3. You can run the python script and notebook for other datasets, but you need to put the pretrained embeddings path (and data path) in the config file. If you want to add more datasets, you can add you own dataset config.