diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-10 16:13:05 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 16:13:05 +0000 |
commit | 9514796ade90cf6a48eb5e869b98ca7976f44b44 (patch) | |
tree | e13c725e1fe866a65432c0cec5be0d94ae12ab7d | |
parent | e1be47ac90c246b5c667e9561b237f647fa26464 (diff) |
automatic import of python-ruptures
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-ruptures.spec | 412 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 414 insertions, 0 deletions
@@ -0,0 +1 @@ +/ruptures-1.1.7.tar.gz diff --git a/python-ruptures.spec b/python-ruptures.spec new file mode 100644 index 0000000..18c88f6 --- /dev/null +++ b/python-ruptures.spec @@ -0,0 +1,412 @@ +%global _empty_manifest_terminate_build 0 +Name: python-ruptures +Version: 1.1.7 +Release: 1 +Summary: Change point detection for signals in Python. +License: BSD-2-Clause +URL: https://github.com/deepcharles/ruptures/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/57/04/91ecd2bcc29b80f56015a47e3c704d8f10a2ed2880cb200b1446ebde84af/ruptures-1.1.7.tar.gz + +Requires: python3-numpy +Requires: python3-scipy +Requires: python3-pre-commit +Requires: python3-matplotlib +Requires: python3-jupyter +Requires: python3-librosa +Requires: python3-matplotlib +Requires: python3-mkdocs +Requires: python3-mkdocs-macros-plugin +Requires: python3-mkdocs-material +Requires: python3-mkdocs-section-index +Requires: python3-mkdocstrings[python] +Requires: python3-mknotebooks +Requires: python3-pymdown-extensions +Requires: python3-nltk +Requires: python3-pytest +Requires: python3-pytest-cov + +%description +# Welcome to ruptures + +[](https://GitHub.com/deepcharles/ruptures/graphs/commit-activity) + + +[](https://badge.fury.io/py/ruptures) +[](https://anaconda.org/conda-forge/ruptures) + + +[](https://pepy.tech/project/ruptures) +<a href="https://github.com/psf/black"><img alt="Code style: black" src="https://img.shields.io/badge/code%20style-black-000000.svg"></a> +[](https://mybinder.org/v2/gh/deepcharles/ruptures/master) +[](https://app.codecov.io/gh/deepcharles/ruptures/branch/master) + +`ruptures` is a Python library for off-line change point detection. +This package provides methods for the analysis and segmentation of non-stationary signals. Implemented algorithms include exact and approximate detection for various parametric and non-parametric models. +`ruptures` focuses on ease of use by providing a well-documented and consistent interface. +In addition, thanks to its modular structure, different algorithms and models can be connected and extended within this package. + +**How to cite.** If you use `ruptures` in a scientific publication, we would appreciate citations to the following paper: + +- C. Truong, L. Oudre, N. Vayatis. Selective review of offline change point detection methods. _Signal Processing_, 167:107299, 2020. [[journal]](https://doi.org/10.1016/j.sigpro.2019.107299) [[pdf]](http://www.laurentoudre.fr/publis/TOG-SP-19.pdf) + + +## Basic usage + +(Please refer to the [documentation](https://centre-borelli.github.io/ruptures-docs/ "Link to documentation") for more advanced use.) + +The following snippet creates a noisy piecewise constant signal, performs a penalized kernel change point detection and displays the results (alternating colors mark true regimes and dashed lines mark estimated change points). + +```python +import matplotlib.pyplot as plt +import ruptures as rpt + +# generate signal +n_samples, dim, sigma = 1000, 3, 4 +n_bkps = 4 # number of breakpoints +signal, bkps = rpt.pw_constant(n_samples, dim, n_bkps, noise_std=sigma) + +# detection +algo = rpt.Pelt(model="rbf").fit(signal) +result = algo.predict(pen=10) + +# display +rpt.display(signal, bkps, result) +plt.show() +``` + + + +## General information + +#### Contact + +Concerning this package, its use and bugs, use the [issue page](https://github.com/deepcharles/ruptures/issues) of the [ruptures repository](https://github.com/deepcharles/ruptures). For other inquiries, you can contact me [here](https://charles.doffy.net/contact/). + + +#### Important links + +- Documentation: [link](https://centre-borelli.github.io/ruptures-docs/ "Link to documentation"). +- Pypi package index: [link](https://pypi.python.org/pypi/ruptures) + +#### Dependencies and install + +Installation instructions can be found [here](https://centre-borelli.github.io/ruptures-docs/install/). + +#### Changelog + +See the [changelog](https://github.com/deepcharles/ruptures/blob/master/CHANGELOG.md) for a history of notable changes to `ruptures`. + +## Thanks to all our contributors + +<a href="https://github.com/deepcharles/ruptures/graphs/contributors"> + <img src="https://contributors-img.web.app/image?repo=deepcharles/ruptures" /> +</a> + +## License + +This project is under BSD license. + +``` +BSD 2-Clause License + +Copyright (c) 2017-2021, ENS Paris-Saclay, CNRS +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +``` + + +%package -n python3-ruptures +Summary: Change point detection for signals in Python. +Provides: python-ruptures +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-cffi +BuildRequires: gcc +BuildRequires: gdb +%description -n python3-ruptures +# Welcome to ruptures + +[](https://GitHub.com/deepcharles/ruptures/graphs/commit-activity) + + +[](https://badge.fury.io/py/ruptures) +[](https://anaconda.org/conda-forge/ruptures) + + +[](https://pepy.tech/project/ruptures) +<a href="https://github.com/psf/black"><img alt="Code style: black" src="https://img.shields.io/badge/code%20style-black-000000.svg"></a> +[](https://mybinder.org/v2/gh/deepcharles/ruptures/master) +[](https://app.codecov.io/gh/deepcharles/ruptures/branch/master) + +`ruptures` is a Python library for off-line change point detection. +This package provides methods for the analysis and segmentation of non-stationary signals. Implemented algorithms include exact and approximate detection for various parametric and non-parametric models. +`ruptures` focuses on ease of use by providing a well-documented and consistent interface. +In addition, thanks to its modular structure, different algorithms and models can be connected and extended within this package. + +**How to cite.** If you use `ruptures` in a scientific publication, we would appreciate citations to the following paper: + +- C. Truong, L. Oudre, N. Vayatis. Selective review of offline change point detection methods. _Signal Processing_, 167:107299, 2020. [[journal]](https://doi.org/10.1016/j.sigpro.2019.107299) [[pdf]](http://www.laurentoudre.fr/publis/TOG-SP-19.pdf) + + +## Basic usage + +(Please refer to the [documentation](https://centre-borelli.github.io/ruptures-docs/ "Link to documentation") for more advanced use.) + +The following snippet creates a noisy piecewise constant signal, performs a penalized kernel change point detection and displays the results (alternating colors mark true regimes and dashed lines mark estimated change points). + +```python +import matplotlib.pyplot as plt +import ruptures as rpt + +# generate signal +n_samples, dim, sigma = 1000, 3, 4 +n_bkps = 4 # number of breakpoints +signal, bkps = rpt.pw_constant(n_samples, dim, n_bkps, noise_std=sigma) + +# detection +algo = rpt.Pelt(model="rbf").fit(signal) +result = algo.predict(pen=10) + +# display +rpt.display(signal, bkps, result) +plt.show() +``` + + + +## General information + +#### Contact + +Concerning this package, its use and bugs, use the [issue page](https://github.com/deepcharles/ruptures/issues) of the [ruptures repository](https://github.com/deepcharles/ruptures). For other inquiries, you can contact me [here](https://charles.doffy.net/contact/). + + +#### Important links + +- Documentation: [link](https://centre-borelli.github.io/ruptures-docs/ "Link to documentation"). +- Pypi package index: [link](https://pypi.python.org/pypi/ruptures) + +#### Dependencies and install + +Installation instructions can be found [here](https://centre-borelli.github.io/ruptures-docs/install/). + +#### Changelog + +See the [changelog](https://github.com/deepcharles/ruptures/blob/master/CHANGELOG.md) for a history of notable changes to `ruptures`. + +## Thanks to all our contributors + +<a href="https://github.com/deepcharles/ruptures/graphs/contributors"> + <img src="https://contributors-img.web.app/image?repo=deepcharles/ruptures" /> +</a> + +## License + +This project is under BSD license. + +``` +BSD 2-Clause License + +Copyright (c) 2017-2021, ENS Paris-Saclay, CNRS +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +``` + + +%package help +Summary: Development documents and examples for ruptures +Provides: python3-ruptures-doc +%description help +# Welcome to ruptures + +[](https://GitHub.com/deepcharles/ruptures/graphs/commit-activity) + + +[](https://badge.fury.io/py/ruptures) +[](https://anaconda.org/conda-forge/ruptures) + + +[](https://pepy.tech/project/ruptures) +<a href="https://github.com/psf/black"><img alt="Code style: black" src="https://img.shields.io/badge/code%20style-black-000000.svg"></a> +[](https://mybinder.org/v2/gh/deepcharles/ruptures/master) +[](https://app.codecov.io/gh/deepcharles/ruptures/branch/master) + +`ruptures` is a Python library for off-line change point detection. +This package provides methods for the analysis and segmentation of non-stationary signals. Implemented algorithms include exact and approximate detection for various parametric and non-parametric models. +`ruptures` focuses on ease of use by providing a well-documented and consistent interface. +In addition, thanks to its modular structure, different algorithms and models can be connected and extended within this package. + +**How to cite.** If you use `ruptures` in a scientific publication, we would appreciate citations to the following paper: + +- C. Truong, L. Oudre, N. Vayatis. Selective review of offline change point detection methods. _Signal Processing_, 167:107299, 2020. [[journal]](https://doi.org/10.1016/j.sigpro.2019.107299) [[pdf]](http://www.laurentoudre.fr/publis/TOG-SP-19.pdf) + + +## Basic usage + +(Please refer to the [documentation](https://centre-borelli.github.io/ruptures-docs/ "Link to documentation") for more advanced use.) + +The following snippet creates a noisy piecewise constant signal, performs a penalized kernel change point detection and displays the results (alternating colors mark true regimes and dashed lines mark estimated change points). + +```python +import matplotlib.pyplot as plt +import ruptures as rpt + +# generate signal +n_samples, dim, sigma = 1000, 3, 4 +n_bkps = 4 # number of breakpoints +signal, bkps = rpt.pw_constant(n_samples, dim, n_bkps, noise_std=sigma) + +# detection +algo = rpt.Pelt(model="rbf").fit(signal) +result = algo.predict(pen=10) + +# display +rpt.display(signal, bkps, result) +plt.show() +``` + + + +## General information + +#### Contact + +Concerning this package, its use and bugs, use the [issue page](https://github.com/deepcharles/ruptures/issues) of the [ruptures repository](https://github.com/deepcharles/ruptures). For other inquiries, you can contact me [here](https://charles.doffy.net/contact/). + + +#### Important links + +- Documentation: [link](https://centre-borelli.github.io/ruptures-docs/ "Link to documentation"). +- Pypi package index: [link](https://pypi.python.org/pypi/ruptures) + +#### Dependencies and install + +Installation instructions can be found [here](https://centre-borelli.github.io/ruptures-docs/install/). + +#### Changelog + +See the [changelog](https://github.com/deepcharles/ruptures/blob/master/CHANGELOG.md) for a history of notable changes to `ruptures`. + +## Thanks to all our contributors + +<a href="https://github.com/deepcharles/ruptures/graphs/contributors"> + <img src="https://contributors-img.web.app/image?repo=deepcharles/ruptures" /> +</a> + +## License + +This project is under BSD license. + +``` +BSD 2-Clause License + +Copyright (c) 2017-2021, ENS Paris-Saclay, CNRS +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +``` + + +%prep +%autosetup -n ruptures-1.1.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-ruptures -f filelist.lst +%dir %{python3_sitearch}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 1.1.7-1 +- Package Spec generated @@ -0,0 +1 @@ +f4519d86912f16879fefdf874b538b25 ruptures-1.1.7.tar.gz |