summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-05 09:57:37 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-05 09:57:37 +0000
commitf66a9d64585bd1760449b7d5266b8cbaf449bc26 (patch)
treef9fd299aee9c762423a715f19f432ed4e8869c07
parent27cb7184e6cb3ffa5c5c1251cfbeb64ac715963a (diff)
automatic import of python-copulaeopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-copulae.spec445
-rw-r--r--sources1
3 files changed, 447 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..fe7fb53 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/copulae-0.7.7.tar.gz
diff --git a/python-copulae.spec b/python-copulae.spec
new file mode 100644
index 0000000..7202956
--- /dev/null
+++ b/python-copulae.spec
@@ -0,0 +1,445 @@
+%global _empty_manifest_terminate_build 0
+Name: python-copulae
+Version: 0.7.7
+Release: 1
+Summary: Python copulae library for dependency modelling
+License: MIT
+URL: https://pypi.org/project/copulae/
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/ba/04/eb3ea9bed2dd87b8969ba211b5fc3e7ece6806ae3fb45b578f61017ca97c/copulae-0.7.7.tar.gz
+
+Requires: python3-numpy
+Requires: python3-pandas
+Requires: python3-scikit-learn
+Requires: python3-scipy
+Requires: python3-statsmodels
+Requires: python3-wheel
+Requires: python3-wrapt
+Requires: python3-typing-extensions
+
+%description
+# Copulae
+
+Probably the second most popular copula package in Python. 😣
+
+Copulae is a package used to model complex dependency structures. Copulae implements common and popular copula
+structures to bind multiple univariate streams of data together. All copula implemented are multivariate by default.
+
+###### Versions
+
+[![Anaconda Version](https://anaconda.org/conda-forge/copulae/badges/version.svg)](https://anaconda.org/conda-forge/copulae/badges/version.svg)
+[![PyPI version](https://badge.fury.io/py/copulae.svg)](https://badge.fury.io/py/copulae)
+
+###### Continuous Integration
+
+[![Build Status](https://travis-ci.com/DanielBok/copulae.svg?branch=master)](https://travis-ci.com/DanielBok/copulae)
+[![Anaconda-Server Badge](https://anaconda.org/conda-forge/copulae/badges/latest_release_date.svg)](https://anaconda.org/conda-forge/copulae)
+[![Downloads](https://pepy.tech/badge/copulae)](https://pepy.tech/project/copulae)
+[![Anaconda-Server Badge](https://anaconda.org/conda-forge/copulae/badges/downloads.svg)](https://anaconda.org/conda-forge/copulae)
+
+###### Documentation
+
+[![Documentation Status](https://readthedocs.org/projects/copulae/badge/?version=latest)](https://copulae.readthedocs.io/en/latest/?badge=latest)
+
+###### Coverage
+
+[![Coverage Status](https://coveralls.io/repos/github/DanielBok/copulae/badge.svg?branch=master)](https://coveralls.io/github/DanielBok/copulae?branch=master)
+
+## Installing
+
+Install and update using [pip](https://pip.pypa.io/en/stable/quickstart/) and on conda.
+
+```bash
+# conda
+conda install -c conda-forge copulae
+
+```
+
+```bash
+# PyPI
+pip install -U copulae
+```
+
+## Documentation
+
+The documentation is located at https://copulae.readthedocs.io/en/latest/. Please check it out. :)
+
+
+## Simple Usage
+
+```python
+from copulae import NormalCopula
+import numpy as np
+
+np.random.seed(8)
+data = np.random.normal(size=(300, 8))
+cop = NormalCopula(8)
+cop.fit(data)
+
+cop.random(10) # simulate random number
+
+# getting parameters
+p = cop.params
+# cop.params = ... # you can override parameters too, even after it's fitted!
+
+# get a summary of the copula. If it's fitted, fit details will be present too
+cop.summary()
+
+# overriding parameters, for Elliptical Copulae, you can override the correlation matrix
+cop[:] = np.eye(8) # in this case, this will be equivalent to an Independent Copula
+```
+
+Most of the copulae work roughly the same way. They share pretty much the same API. The difference lies in the way they are parameterized. Read the docs to learn more about them. 😊
+
+
+## Acknowledgements
+
+Most of the code has been implemented by learning from others. Copulas are not the easiest beasts to understand but here are some items that helped me along the way. I would recommend all the works listed below.
+
+#### [Elements of Copula Modeling with R](https://www.amazon.com/Elements-Copula-Modeling-Marius-Hofert/dp/3319896342/)
+
+I referred quite a lot to the textbook when first learning. The authors give a pretty thorough explanation of copula from ground up. They go from describing when you can use copulas for modeling to the different classes of copulas to how to fit them and more.
+
+#### [Blogpost from Thomas Wiecki](https://twiecki.io/blog/2018/05/03/copulas/)
+
+This blogpost gives a very gentle introduction to copulas. Before diving into all the complex math you'd find in textbooks, this is probably the best place to start.
+
+## Motivations
+
+I started working on the copulae package because I couldn't find a good existing package that does multivariate copula modeling. Presently, I'm building up the package according to my needs at work. If you feel that you'll need some features, you can drop me a message. I'll see how I can schedule it. 😊
+
+## TODOS
+
+- [x] Set up package for pip and conda installation
+- [ ] More documentation on usage and post docs on rtd (Permanently in the works 😊)
+- [x] Elliptical Copulas
+ - [x] Gaussian (Normal)
+ - [x] Student (T)
+- [ ] Implement in Archimedean copulas
+ - [x] Clayton
+ - [x] Gumbel
+ - [x] Frank
+ - [x] Empirical
+ - [ ] Joe
+ - [ ] AMH
+ - [ ] Rho finding via Cubatures
+- [ ] Mixture copulas
+ - [X] Gaussian Mixture Copula
+ - [ ] Generic Mixture Copula
+ - [x] Marginal Copula
+- [ ] Vine Copulas
+- [ ] Copula Tests
+ - [x] Radial Symmetry
+ - [x] Exchangeability
+ - [ ] Goodness of Fit
+ - [ ] Pairwise Rosenblatt
+ - [ ] Multi-Independence
+ - [x] General GOF
+ - [ ] Model Selection
+ - [ ] Cross-Validated AIC/BIC
+
+
+
+
+%package -n python3-copulae
+Summary: Python copulae library for dependency modelling
+Provides: python-copulae
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+BuildRequires: python3-cffi
+BuildRequires: gcc
+BuildRequires: gdb
+%description -n python3-copulae
+# Copulae
+
+Probably the second most popular copula package in Python. 😣
+
+Copulae is a package used to model complex dependency structures. Copulae implements common and popular copula
+structures to bind multiple univariate streams of data together. All copula implemented are multivariate by default.
+
+###### Versions
+
+[![Anaconda Version](https://anaconda.org/conda-forge/copulae/badges/version.svg)](https://anaconda.org/conda-forge/copulae/badges/version.svg)
+[![PyPI version](https://badge.fury.io/py/copulae.svg)](https://badge.fury.io/py/copulae)
+
+###### Continuous Integration
+
+[![Build Status](https://travis-ci.com/DanielBok/copulae.svg?branch=master)](https://travis-ci.com/DanielBok/copulae)
+[![Anaconda-Server Badge](https://anaconda.org/conda-forge/copulae/badges/latest_release_date.svg)](https://anaconda.org/conda-forge/copulae)
+[![Downloads](https://pepy.tech/badge/copulae)](https://pepy.tech/project/copulae)
+[![Anaconda-Server Badge](https://anaconda.org/conda-forge/copulae/badges/downloads.svg)](https://anaconda.org/conda-forge/copulae)
+
+###### Documentation
+
+[![Documentation Status](https://readthedocs.org/projects/copulae/badge/?version=latest)](https://copulae.readthedocs.io/en/latest/?badge=latest)
+
+###### Coverage
+
+[![Coverage Status](https://coveralls.io/repos/github/DanielBok/copulae/badge.svg?branch=master)](https://coveralls.io/github/DanielBok/copulae?branch=master)
+
+## Installing
+
+Install and update using [pip](https://pip.pypa.io/en/stable/quickstart/) and on conda.
+
+```bash
+# conda
+conda install -c conda-forge copulae
+
+```
+
+```bash
+# PyPI
+pip install -U copulae
+```
+
+## Documentation
+
+The documentation is located at https://copulae.readthedocs.io/en/latest/. Please check it out. :)
+
+
+## Simple Usage
+
+```python
+from copulae import NormalCopula
+import numpy as np
+
+np.random.seed(8)
+data = np.random.normal(size=(300, 8))
+cop = NormalCopula(8)
+cop.fit(data)
+
+cop.random(10) # simulate random number
+
+# getting parameters
+p = cop.params
+# cop.params = ... # you can override parameters too, even after it's fitted!
+
+# get a summary of the copula. If it's fitted, fit details will be present too
+cop.summary()
+
+# overriding parameters, for Elliptical Copulae, you can override the correlation matrix
+cop[:] = np.eye(8) # in this case, this will be equivalent to an Independent Copula
+```
+
+Most of the copulae work roughly the same way. They share pretty much the same API. The difference lies in the way they are parameterized. Read the docs to learn more about them. 😊
+
+
+## Acknowledgements
+
+Most of the code has been implemented by learning from others. Copulas are not the easiest beasts to understand but here are some items that helped me along the way. I would recommend all the works listed below.
+
+#### [Elements of Copula Modeling with R](https://www.amazon.com/Elements-Copula-Modeling-Marius-Hofert/dp/3319896342/)
+
+I referred quite a lot to the textbook when first learning. The authors give a pretty thorough explanation of copula from ground up. They go from describing when you can use copulas for modeling to the different classes of copulas to how to fit them and more.
+
+#### [Blogpost from Thomas Wiecki](https://twiecki.io/blog/2018/05/03/copulas/)
+
+This blogpost gives a very gentle introduction to copulas. Before diving into all the complex math you'd find in textbooks, this is probably the best place to start.
+
+## Motivations
+
+I started working on the copulae package because I couldn't find a good existing package that does multivariate copula modeling. Presently, I'm building up the package according to my needs at work. If you feel that you'll need some features, you can drop me a message. I'll see how I can schedule it. 😊
+
+## TODOS
+
+- [x] Set up package for pip and conda installation
+- [ ] More documentation on usage and post docs on rtd (Permanently in the works 😊)
+- [x] Elliptical Copulas
+ - [x] Gaussian (Normal)
+ - [x] Student (T)
+- [ ] Implement in Archimedean copulas
+ - [x] Clayton
+ - [x] Gumbel
+ - [x] Frank
+ - [x] Empirical
+ - [ ] Joe
+ - [ ] AMH
+ - [ ] Rho finding via Cubatures
+- [ ] Mixture copulas
+ - [X] Gaussian Mixture Copula
+ - [ ] Generic Mixture Copula
+ - [x] Marginal Copula
+- [ ] Vine Copulas
+- [ ] Copula Tests
+ - [x] Radial Symmetry
+ - [x] Exchangeability
+ - [ ] Goodness of Fit
+ - [ ] Pairwise Rosenblatt
+ - [ ] Multi-Independence
+ - [x] General GOF
+ - [ ] Model Selection
+ - [ ] Cross-Validated AIC/BIC
+
+
+
+
+%package help
+Summary: Development documents and examples for copulae
+Provides: python3-copulae-doc
+%description help
+# Copulae
+
+Probably the second most popular copula package in Python. 😣
+
+Copulae is a package used to model complex dependency structures. Copulae implements common and popular copula
+structures to bind multiple univariate streams of data together. All copula implemented are multivariate by default.
+
+###### Versions
+
+[![Anaconda Version](https://anaconda.org/conda-forge/copulae/badges/version.svg)](https://anaconda.org/conda-forge/copulae/badges/version.svg)
+[![PyPI version](https://badge.fury.io/py/copulae.svg)](https://badge.fury.io/py/copulae)
+
+###### Continuous Integration
+
+[![Build Status](https://travis-ci.com/DanielBok/copulae.svg?branch=master)](https://travis-ci.com/DanielBok/copulae)
+[![Anaconda-Server Badge](https://anaconda.org/conda-forge/copulae/badges/latest_release_date.svg)](https://anaconda.org/conda-forge/copulae)
+[![Downloads](https://pepy.tech/badge/copulae)](https://pepy.tech/project/copulae)
+[![Anaconda-Server Badge](https://anaconda.org/conda-forge/copulae/badges/downloads.svg)](https://anaconda.org/conda-forge/copulae)
+
+###### Documentation
+
+[![Documentation Status](https://readthedocs.org/projects/copulae/badge/?version=latest)](https://copulae.readthedocs.io/en/latest/?badge=latest)
+
+###### Coverage
+
+[![Coverage Status](https://coveralls.io/repos/github/DanielBok/copulae/badge.svg?branch=master)](https://coveralls.io/github/DanielBok/copulae?branch=master)
+
+## Installing
+
+Install and update using [pip](https://pip.pypa.io/en/stable/quickstart/) and on conda.
+
+```bash
+# conda
+conda install -c conda-forge copulae
+
+```
+
+```bash
+# PyPI
+pip install -U copulae
+```
+
+## Documentation
+
+The documentation is located at https://copulae.readthedocs.io/en/latest/. Please check it out. :)
+
+
+## Simple Usage
+
+```python
+from copulae import NormalCopula
+import numpy as np
+
+np.random.seed(8)
+data = np.random.normal(size=(300, 8))
+cop = NormalCopula(8)
+cop.fit(data)
+
+cop.random(10) # simulate random number
+
+# getting parameters
+p = cop.params
+# cop.params = ... # you can override parameters too, even after it's fitted!
+
+# get a summary of the copula. If it's fitted, fit details will be present too
+cop.summary()
+
+# overriding parameters, for Elliptical Copulae, you can override the correlation matrix
+cop[:] = np.eye(8) # in this case, this will be equivalent to an Independent Copula
+```
+
+Most of the copulae work roughly the same way. They share pretty much the same API. The difference lies in the way they are parameterized. Read the docs to learn more about them. 😊
+
+
+## Acknowledgements
+
+Most of the code has been implemented by learning from others. Copulas are not the easiest beasts to understand but here are some items that helped me along the way. I would recommend all the works listed below.
+
+#### [Elements of Copula Modeling with R](https://www.amazon.com/Elements-Copula-Modeling-Marius-Hofert/dp/3319896342/)
+
+I referred quite a lot to the textbook when first learning. The authors give a pretty thorough explanation of copula from ground up. They go from describing when you can use copulas for modeling to the different classes of copulas to how to fit them and more.
+
+#### [Blogpost from Thomas Wiecki](https://twiecki.io/blog/2018/05/03/copulas/)
+
+This blogpost gives a very gentle introduction to copulas. Before diving into all the complex math you'd find in textbooks, this is probably the best place to start.
+
+## Motivations
+
+I started working on the copulae package because I couldn't find a good existing package that does multivariate copula modeling. Presently, I'm building up the package according to my needs at work. If you feel that you'll need some features, you can drop me a message. I'll see how I can schedule it. 😊
+
+## TODOS
+
+- [x] Set up package for pip and conda installation
+- [ ] More documentation on usage and post docs on rtd (Permanently in the works 😊)
+- [x] Elliptical Copulas
+ - [x] Gaussian (Normal)
+ - [x] Student (T)
+- [ ] Implement in Archimedean copulas
+ - [x] Clayton
+ - [x] Gumbel
+ - [x] Frank
+ - [x] Empirical
+ - [ ] Joe
+ - [ ] AMH
+ - [ ] Rho finding via Cubatures
+- [ ] Mixture copulas
+ - [X] Gaussian Mixture Copula
+ - [ ] Generic Mixture Copula
+ - [x] Marginal Copula
+- [ ] Vine Copulas
+- [ ] Copula Tests
+ - [x] Radial Symmetry
+ - [x] Exchangeability
+ - [ ] Goodness of Fit
+ - [ ] Pairwise Rosenblatt
+ - [ ] Multi-Independence
+ - [x] General GOF
+ - [ ] Model Selection
+ - [ ] Cross-Validated AIC/BIC
+
+
+
+
+%prep
+%autosetup -n copulae-0.7.7
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-copulae -f filelist.lst
+%dir %{python3_sitearch}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 0.7.7-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..3b4541d
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+78d98c24e31795a5e7e0ea4230fef5e2 copulae-0.7.7.tar.gz