3
パイプラインを使用して単純回帰タスクを実行して、回帰(次数= 3)に使用される多項式の次数を割り当てようとしています。パイプラインを使用したクエリポイントの予測分布の標準偏差
pipe.fit(X_train, y_train)
そして最後に予測ビット:
pipe = make_pipeline(PolynomialFeatures(3), BayesianRidge())
そしてフィッティング:だから私は定義し、そのを予測するために
y_pred = pipe.predict(X_test)
BayesianRidge()sklearnのはreturn_std
パラメータを持っていますメソッドは、Trueに設定すると、クエリポイントの予測分布の標準偏差を返します。
パイプラインを使ってこの標準偏差アレイを得ることができますか?