Wolfram 언어

향상된 기계 학습

가우스 과정 모델의 예측 시각화

가우스 과정의 예측자를 간단한 데이터 집계에 대해 훈련합니다.

In[1]:=
Click for copyable input
data = {-1.2 -> 1.2, 1.4 -> 1.4, 3.1 -> 1.8, 4.5 -> 1.6}; p = Predict[data, Method -> "GaussianProcess"]
Out[1]=

예측된 값을 신뢰 구간과 함께 시각화합니다.

전체 Wolfram 언어 입력 표시하기
In[2]:=
Click for copyable input
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"}]]
Out[2]=

관련 예제

de en es fr ja pt-br ru zh