sklearn and OneAPI
Yucheng Tao
Unknown
- 0 Collaborators
Use sklearn and oneapi ...learn more
Project status: Published/In Market
Intel Technologies
oneAPI
Overview / Usage
Compare sklearn and oneapi
Methodology / Approach
接下来,使用Scikit-learn的LinearRegression
模型对训练集进行拟合,并使用训练好的模型对测试集进行预测。然后,使用mean\_squared\_error
函数计算Scikit-learn的均方误差(MSE)。
然后,使用OneAPI的linear\_regression\_training
和linear\_regression\_prediction
函数在训练集和测试集上执行线性回归。最后,使用mean\_squared\_error
函数计算OneAPI的均方误差(MSE)。
将Scikit-learn和OneAPI的均方误差打印出来进行比较。
Technologies Used
python
oneapi
sklearn