Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/winvector/typicalitycoding
Simple example of how to use an embedding plus sphering/whitening transform to measure difference in distribution.
https://github.com/winvector/typicalitycoding
Last synced: 13 days ago
JSON representation
Simple example of how to use an embedding plus sphering/whitening transform to measure difference in distribution.
- Host: GitHub
- URL: https://github.com/winvector/typicalitycoding
- Owner: WinVector
- License: bsd-3-clause
- Created: 2023-08-04T20:37:25.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-07T01:19:09.000Z (over 1 year ago)
- Last Synced: 2024-11-07T03:16:52.385Z (2 months ago)
- Language: Jupyter Notebook
- Homepage:
- Size: 1.58 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TypicalityCoding
Materials to support the blog article [Detecting Data Differences Using the Sphering Transform](https://win-vector.com/2023/08/20/detecting-data-differences-using-the-sphering-transform/).
[Simple example notebook](https://github.com/WinVector/TypicalityCoding/blob/main/example_sphering_transform.ipynb) of how to use an embedding plus sphering/whitening transform to measure difference in distribution.
Further Examples:
* [The sphering transform for anomaly detection on CNC vibration data.](https://github.com/WinVector/TypicalityCoding/blob/main/test_cnc_anomaly.ipynb)
* [An example of applying the sphering transform to text embeddings: detecting changes in a text corpus.](https://github.com/WinVector/TypicalityCoding/blob/main/text_embedding_example.ipynb)To install environment:
`conda env create --file=tc_env_def.yaml`Specific versions used saved as:
`conda list --export > tc_env_list.txt`To use environment:
`conda activate tc_env`Download data from:
https://drive.google.com/drive/folders/1sXtDqNF-D0mypORzfevir_eH9FdG2668?usp=sharing
and then unzipTo run tests:
`python -m pytest tests`