‹›향상된 기계 학습가우스 과정 모델의 예측 시각화
가우스 과정의 예측자를 간단한 데이터 집계에 대해 훈련합니다.
data = {-1.2 -> 1.2, 1.4 -> 1.4, 3.1 -> 1.8, 4.5 -> 1.6};
p = Predict[data, Method -> "GaussianProcess"]
예측된 값을 신뢰 구간과 함께 시각화합니다.
전체 Wolfram 언어 입력 표시하기
Show[Plot[{
p[x],
p[x] + StandardDeviation[p[x, "Distribution"]],
p[x] - StandardDeviation[p[x, "Distribution"]]
}, {x, -2, 6}, PlotStyle -> {Blue, Gray, Gray},
Filling -> {2 -> {3}}, Exclusions -> False,
PerformanceGoal -> "Speed",
PlotLegends -> {"Prediction", "Confidence Interval"}],
ListPlot[List @@@ data, PlotStyle -> Red, PlotLegends -> {"Data"}]]