微型电脑应用2024,Vol.40Issue(4) :1-4.

基于动态调参KNN分类算法的股票涨跌预测模型分析

Analysis of the Stock Rise and Fall Prediction Model Based on the KNN Algorithm with Dynamic Parameters

曹宇 鲁明旭
微型电脑应用2024,Vol.40Issue(4) :1-4.

基于动态调参KNN分类算法的股票涨跌预测模型分析

Analysis of the Stock Rise and Fall Prediction Model Based on the KNN Algorithm with Dynamic Parameters

曹宇 1鲁明旭1
扫码查看

作者信息

  • 1. 上海城建职业学院,人工智能应用学院,上海 201415
  • 折叠

摘要

预测股票涨跌是机器学习分类算法的重要应用场景之一,根据以往实践中的经验,不同种类的股票由于数据特征不同,所以需要用携带不同参数的KNN分类模型来预测.用基于交叉熵的损失函数据训练KNN模型,以此确定KNN模型关键参数的做法,在此基础上给出能根据不同股票数据动态调整KNN算法关键参数的预测股票涨跌的模型.实践表明,这个模型在预测数据特征不同的股票涨跌情况时,均能表现出较高的准确性.

Abstract

Predicting stock price fluctuations is one of the important application scenarios of machine learning classification algo-rithms.According to the experience,since the data features of different stocks are not the same,the key parameter of KNN al-gorithm is adjusted when the prediction model is built.This study provides one mechanism to confirm the key parameter of KNN by the history stock data,and provides a perdition model by KNN algorithm with dynamic parameters.This model is ver-ified by different stock data,which is more accurate than any other models that all use the same parameter.

关键词

KNN/机器学习/股票预测模型

Key words

KNN/machine learning/model for stock prediction

引用本文复制引用

基金项目

中国高校产学研创新基金(2022BC097)

中国高校产学研创新基金(2022IT230)

出版年

2024
微型电脑应用
上海市微型电脑应用学会

微型电脑应用

CSTPCD
影响因子:0.359
ISSN:1007-757X
参考文献量14
段落导航相关论文