Hi,
I do not manage to get the weights (_coef ?) to inspect the weights of the linear models fitted during cross-validation ;
linear_model = make_pipeline(StandardScaler(), RidgeCV())
cv = ShuffleSplit(n_splits=4, random_state=0)
cv_results_linear_model = cross_validate(
linear_model, data_linear_model, target, cv=cv,
scoring="neg_mean_absolute_error",
return_estimator=True, return_train_score=True)
for estimator in cv_results_linear_model["estimator"]:
print(estimator.coefs_)
I get the following error : âAttributeError: âPipelineâ object has no attribute âcoef_ââ.
So obviously I should not go for the pipeline but I tried many options without success