Closed
Description
Hello,
I installed Spyder to be able to explore sklearn
data structures. I set up a custom python virtual envornnement in the IDE (following this tutorial). This venv contains sklearn
module + the other classical modules for data sciences.
When I execute my main.py
, no problem in sight as no error rises and everything is computed.
In the following code,
from sklearn.pipeline import make_pipeline
from sklearn.preprocessing import StandardScaler
from sklearn.linear_model import LogisticRegression
from sklearn.model_selection import cross_val_score, cross_validate
model = make_pipeline(
StandardScaler(),
LogisticRegression()
)
cv_results = cross_validate(
model,
data,
target,
cv = 10,
return_estimator = True
)
cv_results["test_score"]
I tried to access the cv_results
in the variable explorer and got this error:

I think it come from the fact that my venv and the spyder ide are independant (correct me if wrong).
When it says "it's not part of our installer", does it mean that sklearn
cannot be added (as plugin or whtever) at all, and therefore, there is no way to display this type of variable ?
Thank you in advance !