Wolfram 语言

增强的机器学习

找出与气温变化匹配的公式

加载罗马过去10年的气温.

In[1]:=
Click for copyable input
wd = WeatherData["Rome", "Temperature", {{2006, 1, 1}, {2016, 1, 1}, "Month"}]
Out[1]=

找出用于该时间序列的简单公式.

In[2]:=
Click for copyable input
fit = FindFormula[wd, x]
Out[2]=

对比公式和数据.

显示完整的 Wolfram 语言输入
In[3]:=
Click for copyable input
Show[Plot[fit, {x, 3.5*10^9 , 3.71*10^9}, PlotStyle -> Lighter[Red, .5], PlotLegends -> {"Formula"}, Frame -> True, FrameLabel -> {"Absolute Time", "Temperature"}], ListPlot[wd, PlotLegends -> {"Data"}]]
Out[3]=

相关范例

de en es fr ja ko pt-br ru