entropy-gpu-0.3.0
توضیحات
Entropy and K-L divergence on GPU via PyOpenCL
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | entropy-gpu-0.3.0 |
| نام | entropy-gpu |
| نسخه کتابخانه | 0.3.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | vmchale |
| ایمیل نویسنده | vamchale@gmail.com |
| آدرس صفحه اصلی | http://github.com/vmchale/phash-fut |
| آدرس اینترنتی | https://pypi.org/project/entropy-gpu/ |
| مجوز | BSD3 |
# futhark-kullback-liebler
The Kullback-Liebler divergence, Hellinger distance, and alpha-divergence in Futhark.
## Documentation
Documentation is available [here](https://vmchale.github.io/kullback-liebler/).
## Benchmarks
To run the benchmarks:
```
make
pipenv run python harness.py
```
and
```
futhark bench information.fut --backend opencl --runs=100
```
### Comparison
| Computation | Array Size | Implementation | Time |
| ----------- | ---------- | -------------- | ---- |
| Entropy | 10000000 | Futhark | 27.41 ms |
| Kullback-Liebler Divergence | 10000000 | Futhark | 19.61 ms |
| Entropy | 10000000 | Python + Futhark | 52.80 ms |
| Kullback-Liebler Divergence | 10000000 | Python + Futhark | 94.07 ms |
| Entropy | 10000000 | Python (SciPy) | 233.45 ms |
| Kullback-Liebler Divergence | 10000000 | Python (SciPy) | 340.83 ms |
| Entropy | 10000000 | J | 227.37 ms |
نیازمندی
| مقدار | نام |
|---|---|
| - | numpy |
| - | pyopencl |
نحوه نصب
نصب پکیج whl entropy-gpu-0.3.0:
pip install entropy-gpu-0.3.0.whl
نصب پکیج tar.gz entropy-gpu-0.3.0:
pip install entropy-gpu-0.3.0.tar.gz