diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-11 00:08:28 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-11 00:08:28 +0000 |
| commit | 8fcdd4446284c6b404a99f2e5770c21f9ebdcf9c (patch) | |
| tree | c09b8631ff7b7c20549f388bfa27146e988cdc3e /python-iterative-stratification.spec | |
| parent | 8a60732bdc7137c4a34a8111452a4ba9f484afff (diff) | |
automatic import of python-iterative-stratification
Diffstat (limited to 'python-iterative-stratification.spec')
| -rw-r--r-- | python-iterative-stratification.spec | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/python-iterative-stratification.spec b/python-iterative-stratification.spec new file mode 100644 index 0000000..fdd5f7a --- /dev/null +++ b/python-iterative-stratification.spec @@ -0,0 +1,81 @@ +%global _empty_manifest_terminate_build 0 +Name: python-iterative-stratification +Version: 0.1.7 +Release: 1 +Summary: Package that provides scikit-learn compatible cross validators with stratification for multilabel data +License: BSD 3 +URL: https://github.com/trent-b/iterative-stratification +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/82/73/e78c7d79ae55813002e094599f2d05f0e43be362078fa77aca9011fb20a5/iterative-stratification-0.1.7.tar.gz +BuildArch: noarch + +Requires: python3-numpy +Requires: python3-scipy +Requires: python3-scikit-learn + +%description +This iterative-stratification project offers implementations of MultilabelStratifiedKFold, MultilabelRepeatedStratifiedKFold, and MultilabelStratifiedShuffleSplit with a base algorithm for stratifying multilabel data described in the following paper: Sechidis K., Tsoumakas G., Vlahavas I. (2011) On the Stratification of Multi-Label Data. In: Gunopulos D., Hofmann T., Malerba D., Vazirgiannis M. (eds) Machine Learning and Knowledge Discovery in Databases. ECML PKDD 2011. Lecture Notes in Computer Science, vol 6913. Springer, Berlin, Heidelberg. + + + +%package -n python3-iterative-stratification +Summary: Package that provides scikit-learn compatible cross validators with stratification for multilabel data +Provides: python-iterative-stratification +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-iterative-stratification +This iterative-stratification project offers implementations of MultilabelStratifiedKFold, MultilabelRepeatedStratifiedKFold, and MultilabelStratifiedShuffleSplit with a base algorithm for stratifying multilabel data described in the following paper: Sechidis K., Tsoumakas G., Vlahavas I. (2011) On the Stratification of Multi-Label Data. In: Gunopulos D., Hofmann T., Malerba D., Vazirgiannis M. (eds) Machine Learning and Knowledge Discovery in Databases. ECML PKDD 2011. Lecture Notes in Computer Science, vol 6913. Springer, Berlin, Heidelberg. + + + +%package help +Summary: Development documents and examples for iterative-stratification +Provides: python3-iterative-stratification-doc +%description help +This iterative-stratification project offers implementations of MultilabelStratifiedKFold, MultilabelRepeatedStratifiedKFold, and MultilabelStratifiedShuffleSplit with a base algorithm for stratifying multilabel data described in the following paper: Sechidis K., Tsoumakas G., Vlahavas I. (2011) On the Stratification of Multi-Label Data. In: Gunopulos D., Hofmann T., Malerba D., Vazirgiannis M. (eds) Machine Learning and Knowledge Discovery in Databases. ECML PKDD 2011. Lecture Notes in Computer Science, vol 6913. Springer, Berlin, Heidelberg. + + + +%prep +%autosetup -n iterative-stratification-0.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-iterative-stratification -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 0.1.7-1 +- Package Spec generated |
