Bug 2220174
| Summary: | F39FailsToInstall: python3-cro | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Fedora Fails To Install <fti-bugs> |
| Component: | python-cro | Assignee: | Sandro <gui1ty> |
| Status: | CLOSED ERRATA | QA Contact: | |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | code, gui1ty, iztok, neuro-sig |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | python-cro-0.0.5.2-1.fc39 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-07-14 18:39:55 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 2135404, 2168845 | ||
|
Description
Fedora Fails To Install
2023-07-05 19:10:03 UTC
Tests fail:
Example I: feature selection Classification (max auc): 15.074397802352905 seconds.
['Q25' 'IQR' 'skew' 'centroid' 'meanfun' 'maxfun' 'mindom']
Traceback (most recent call last):
File "/builddir/build/BUILD/cro-0.0.5.0/examples/example_advanced.py", line 84, in <module>
dataset = datasets.load_boston()
^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.12/site-packages/sklearn/datasets/__init__.py", line 157, in __getattr__
raise ImportError(msg)
ImportError:
`load_boston` has been removed from scikit-learn since version 1.2.
The Boston housing prices dataset has an ethical problem: as
investigated in [1], the authors of this dataset engineered a
non-invertible variable "B" assuming that racial self-segregation had a
positive impact on house prices [2]. Furthermore the goal of the
research that led to the creation of this dataset was to study the
impact of air quality but it did not give adequate demonstration of the
validity of this assumption.
The scikit-learn maintainers therefore strongly discourage the use of
this dataset unless the purpose of the code is to study and educate
about ethical issues in data science and machine learning.
In this special case, you can fetch the dataset from the original
source::
import pandas as pd
import numpy as np
data_url = "http://lib.stat.cmu.edu/datasets/boston"
raw_df = pd.read_csv(data_url, sep="\s+", skiprows=22, header=None)
data = np.hstack([raw_df.values[::2, :], raw_df.values[1::2, :2]])
target = raw_df.values[1::2, 2]
Alternative datasets include the California housing dataset and the
Ames housing dataset. You can load the datasets as follows::
from sklearn.datasets import fetch_california_housing
housing = fetch_california_housing()
for the California housing dataset and::
from sklearn.datasets import fetch_openml
housing = fetch_openml(name="house_prices", as_frame=True)
for the Ames housing dataset.
[1] M Carlisle.
"Racist data destruction?"
<https://medium.com/@docintangible/racist-data-destruction-113e3eff54a8>
[2] Harrison Jr, David, and Daniel L. Rubinfeld.
"Hedonic housing prices and the demand for clean air."
Journal of environmental economics and management 5.1 (1978): 81-102.
<https://www.researchgate.net/publication/4974606_Hedonic_housing_prices_and_the_demand_for_clean_air>
error: Bad exit status from /var/tmp/rpm-tmp.ndxM0i (%check)
Bad exit status from /var/tmp/rpm-tmp.ndxM0i (%check)
Upstream has removed the failing test and released an update: https://github.com/VictorPelaez/coral-reef-optimization-algorithm/issues/64 I canceled the Koji build. Will update the package to latest release and drop the patch. FEDORA-2023-088865b383 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-088865b383 FEDORA-2023-088865b383 has been pushed to the Fedora 39 stable repository. If problem still persists, please make note of it in this bug report. |