龙源期刊网
http://www.qikan.com.cn
Python
教学实验环境下回归预测模型的实
践
作者:沈荣
张保文
来源:《电脑知识与技术》
2019
年第
10
期
摘要:通过建立多元线性回归分析模型,采用数据挖掘理论中的数据分析方法对蛋糕店月
营业额的特征因素进行提取,确定距离车站最近距离和店铺面积作为特征因素,从而对蛋糕房
月营业额进行预测。利用
Python3.6
面向对象编程语言特性,借助其高效、简洁、灵活等特
点,结合
Python3.6
提供的
Padas
、
matplotlib
等模块提供的强大功能,编程实现对判定系数的
计算,调用库函数对多元线性回归模型进行训练、评分、预测,得到了较为理想的预测结果,
该预测结果在指导投资人在蛋糕房选址上提供了重要的参考价值。结果进一步表明,利用
Python 3.6
的高效性和强大的扩展性,使得其在多元线性回归模型及数据挖掘领域的其他模型
使用中均有极大应用潜力。
关键词:
教学实验;多元线性回归;数据挖掘;数据分析;预测
中图分类号:
G424
文献标识码:
A
文章编号:
1009-3044
(
2019
)
10-0254-03
开放科学(资源服务)标识码(
OSID
):
The Practice of Regression Prediction Model under Python Teaching Experiment Environment
SHEN Rong1
,
ZHANG Bao-wen2
(
1.School of Information Engineering
,
Ningxia University
,
Yinchuan 750021
,
China
;
2.School of Mathematics and Statistics
,
Ningxia University
,
Yinchuan 750021
,
China
)
Abstract
:
By establishing multiple linear regression analysis model
,
using the method of data
analysis in the theory of data mining to extract the characteristics of the cake shop month turnover
factors
,
determine the distance and the station nearest store area as characteristic factor
,
which
month turnover to make predictions on the cake.Using Python3.6 object-oriented programming
language features
,
with the aid of its characteristics such as high efficiency
,
simple
,
flexible
,
combining Python3.6 Padas
,
matplotlib module provides powerful functions
,
such as
programming to determine the calculation of the coefficient
,
call library functions for training
,
score
,
multiple linear regression model
,
the ideal prediction results
,
the predicted results in
guiding the investors in the cake room provides an important reference value on the site.The results