semvec/pypi-packages huggingface dataset:
alignreg 1.0.1
An implementation of the algorithm presented in arXiv:2011.13052
Requires Python: >=3.6

![AlignReg](AlignReg.png "AlignReg")

# AlignReg 
### Alignment Regularization with Data Augmentation

Implementation of the AlignReg package associated with the following paper:

   Haohan Wang, Zeyi Huang, Xindi Wu, and Eric P. Xing. 2022. [Toward Learning Robust and Invariant Representations with Alignment Regular- ization and Data Augmentation](https://arxiv.org/abs/2011.13052). In Proceedings of the 28th ACM SIGKDD Conference on Knowledge Discovery and Data Mining (KDD ’22), August 14–18, 2022, Washington, DC, USA. ACM, New York, NY, USA,
   
   The package is organized by Hanru Yan

### Installation 

One can direclty install the package with 

      pip install alignreg 

Or one can download the code and use it locally. 

### Usage Tutorial

One can use the package in simply one line of code. 

Please visit the [iPython example](https://github.com/jyanln/AlignReg/blob/main/examples.ipynb) for usage instructions in both TensorFlow and PyTorch. 

### Replication: 
This repository serves for the purpose to guide others to use our tool, if you are interested in the scripts to replicate our results in paper, please contact us and we will share the repository for replication. 

### Contact
[Haohan Wang](http://www.cs.cmu.edu/~haohanw/)
&middot;
[Hanru Yan](https://github.com/jyanln)