You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could you please provide more details on your issue? If you are referring to the sklearn.linear_model.LinearRegression().fit(X, y) line, you need to perform some preprocessing first on the dataset, such as imputation of NaN values.
from ucimlrepo import fetch_ucirepo, list_available_datasets
check which datasets can be imported
list_available_datasets()
import dataset
heart_disease = fetch_ucirepo(id=45)
alternatively: fetch_ucirepo(name='Heart Disease')
access data
X = heart_disease.data.features
y = heart_disease.data.targets
sklearn.linear_model.LinearRegression().fit(X, y)
access metadata
print(heart_disease.metadata.uci_id)
print(heart_disease.metadata.num_instances)
print(heart_disease.metadata.additional_info.summary)
access variable info in tabular format
print(heart_disease.variables)
The text was updated successfully, but these errors were encountered: