ML之回归预测:利用八(9-1)种机器学习算法对无人驾驶汽车参数(2017年的data,18+2)进行回归预测+评估八种模型性能

简介: ML之回归预测:利用八(9-1)种机器学习算法对无人驾驶汽车参数(2017年的data,18+2)进行回归预测+评估八种模型性能

说明


在    ML之回归预测:利用九大类机器学习算法对无人驾驶汽车系统参数(18+2)进行回归预测值VS真实值

基础上出现了两个bug,成功解决。

(1)、成功解决TypeError: unhashable type: 'numpy.ndarray'

(2)、成功解决TypeError: unsupported operand type(s) for %: 'NoneType' and 'dict'



输出结果


1、在【12.9, 13.0】环境下



image.png


image.png


1.2、模型性能评估及输出预测值


各个模型结果


LiR LiR:The value of default measurement of LiR is 0.4125342966025278

LiR:R-squared value of DecisionTreeRegressor: 0.41253429660252783

LiR:The mean squared error of DecisionTreeRegressor: 5.687204916076843

LiR:The mean absoluate error of DecisionTreeRegressor: 1.688779184910588

LiR:测试1131~1138行数据,

[[0.39260249]

[0.56158086]

[0.66445704]

[0.75795626]

[0.83294215]

[0.84325901]]  

SVM

linear_SVR:The value of default measurement of linear_SVR is 0.5024128304336872

linear_SVR:R-squared value of DecisionTreeRegressor: 0.5024128304336872

linear_SVR:The mean squared error of DecisionTreeRegressor: 4.817098565189997

linear_SVR:The mean absoluate error of DecisionTreeRegressor: 1.4822824851546261

linear_SVR:测试1131~1138行数据,

[0.68489265 0.8230609  0.88380302 0.95656835 0.98611563 1.02264102]


poly_SVR:The value of default measurement of poly_SVR is 0.5371358572097877

poly_SVR:R-squared value of DecisionTreeRegressor: 0.5371358572097877

poly_SVR:The mean squared error of DecisionTreeRegressor: 4.4809479313061065

poly_SVR:The mean absoluate error of DecisionTreeRegressor: 1.1042932962440708

poly_SVR:测试1131~1138行数据,

[0.74006387 0.99232855 1.02709907 1.04999397 1.01658734 0.99276056]


rbf_SVR:The value of default measurement of rbf_SVR is 0.7419598320911289

rbf_SVR:R-squared value of DecisionTreeRegressor: 0.7419598320911289

rbf_SVR:The mean squared error of DecisionTreeRegressor: 2.4980646580549646

rbf_SVR:The mean absoluate error of DecisionTreeRegressor: 1.0023906945802386

rbf_SVR:测试1131~1138行数据,

[0.87034053 0.94602667 0.9724284  1.01138968 1.00514582 1.03902654]

DT DTR:The value of default measurement of DTR is -0.034791814149233824

DTR:R-squared value of DecisionTreeRegressor: -0.034791814149233824

DTR:The mean squared error of DecisionTreeRegressor: 10.0177304964539

DTR:The mean absoluate error of DecisionTreeRegressor: 1.4078014184397163

DTR:测试1131~1138行数据,

[1.44129906 1.1913833  1.1913833  1.1913833  1.1913833  0.94146754]  

RF RFR:The value of default measurement of RFR is 0.7143901333350653

RFR:R-squared value of DecisionTreeRegressor: 0.7143901333350653

RFR:The mean squared error of DecisionTreeRegressor: 2.7649645390070923

RFR:The mean absoluate error of DecisionTreeRegressor: 1.0191489361702128

RFR:测试1131~1138行数据,  

ETR ETR:The value of default measurement of ETR is 0.7895434913913477

ETR:R-squared value of DecisionTreeRegressor: 0.7895434913913478

ETR:The mean squared error of DecisionTreeRegressor: 2.0374113475177302

ETR:The mean absoluate error of DecisionTreeRegressor: 0.9790780141843972

ETR:测试1131~1138行数据,

[1.29134961 1.01644227 1.04143384 1.16639172 1.14140015 1.09141699]  

GB/GD

SGDR:The value of default measurement of SGDR is 0.28663918777885733

SGDR:R-squared value of DecisionTreeRegressor: 0.28663918777885733

SGDR:The mean squared error of DecisionTreeRegressor: 6.905984629805215

SGDR:The mean absoluate error of DecisionTreeRegressor: 1.8298880068703798

SGDR:测试1131~1138行数据,

[0.72109893 0.74773439 0.75200051 0.74284389 0.74950052 0.71633365]


GBR:The value of default measurement of GBR is 0.33837779185765615

GBR:R-squared value of DecisionTreeRegressor: 0.33837779185765615

GBR:The mean squared error of DecisionTreeRegressor: 6.405107656449695

GBR:The mean absoluate error of DecisionTreeRegressor: 1.0884549292443049

GBR:测试1131~1138行数据,

[1.26085339 1.24070607 1.17201814 1.20110767 1.23182112 1.24516423]

LGB

[LightGBM] [Warning] feature_fraction is set=0.6, colsample_bytree=1.0 will be ignored. Current value: feature_fraction=0.6

[LightGBM] [Warning] min_data_in_leaf is set=18, min_child_samples=20 will be ignored. Current value: min_data_in_leaf=18

[LightGBM] [Warning] min_sum_hessian_in_leaf is set=0.001, min_child_weight=0.001 will be ignored. Current value: min_sum_hessian_in_leaf=0.001

[LightGBM] [Warning] bagging_fraction is set=0.7, subsample=1.0 will be ignored. Current value: bagging_fraction=0.7


LGB:The value of default measurement of LGB is 0.7889733551704177

LGB:R-squared value of DecisionTreeRegressor: 0.7889733551704177

LGB:The mean squared error of DecisionTreeRegressor: 2.042930787205453

LGB:The mean absoluate error of DecisionTreeRegressor: 1.0168020659984283

LGB:测试1131~1138行数据,

[1.3993656  0.91062936 1.22062928 1.34866033 1.06943559 1.11018125]


2、在【12.8,13.0】环境下

image.png


image.png





 


相关文章
|
3天前
|
机器学习/深度学习 人工智能 算法
高性价比发文典范——101种机器学习算法组合革新骨肉瘤预后模型
随着高通量测序技术的飞速发展和多组学分析的广泛应用,科研人员在探索生物学奥秘时经常遇到一个令人又爱又恼的问题:如何从浩如烟海的数据中挖掘出潜在的疾病关联靶点?又如何构建一个全面而有效的诊断或预后模型?只有通过优雅的数据挖掘、精致的结果展示、深入的讨论分析,并且辅以充分的湿实验验证,我们才能锻造出一篇兼具深度与广度的“干湿结合”佳作。
15 0
高性价比发文典范——101种机器学习算法组合革新骨肉瘤预后模型
|
5天前
|
算法 调度
考虑需求响应的微网优化调度模型【粒子群算法】【matlab】
考虑需求响应的微网优化调度模型【粒子群算法】【matlab】
|
5天前
|
算法 调度
【免费】基于模型预测算法的含储能微网双层能量管理模型(MATLAB)
【免费】基于模型预测算法的含储能微网双层能量管理模型(MATLAB)
|
7天前
|
机器学习/深度学习 自然语言处理 算法
Python遗传算法GA对长短期记忆LSTM深度学习模型超参数调优分析司机数据|附数据代码
Python遗传算法GA对长短期记忆LSTM深度学习模型超参数调优分析司机数据|附数据代码
|
7天前
|
算法 搜索推荐
R语言混合SVD模型IBCF协同过滤推荐算法研究——以母婴购物平台为例
R语言混合SVD模型IBCF协同过滤推荐算法研究——以母婴购物平台为例
|
9天前
|
人工智能 算法 测试技术
论文介绍:进化算法优化模型融合策略
【5月更文挑战第3天】《进化算法优化模型融合策略》论文提出使用进化算法自动化创建和优化大型语言模型,通过模型融合提升性能并减少资源消耗。实验显示,这种方法在多种基准测试中取得先进性能,尤其在无特定任务训练情况下仍能超越参数更多模型。同时,该技术成功应用于创建具有文化意识的日语视觉-语言模型。然而,模型融合可能产生逻辑不连贯响应和准确性问题,未来工作将聚焦于图像扩散模型、自动源模型选择及生成自我改进的模型群体。[论文链接: https://arxiv.org/pdf/2403.13187.pdf]
112 1
|
10天前
|
机器学习/深度学习 数据采集 搜索推荐
机器学习中的特征工程:提升模型性能的关键步骤
【5月更文挑战第3天】特征工程是提升机器学习模型性能的关键,涉及从原始数据中提取、选择和创造特征。它能提高模型预测准确率,简化模型复杂度,增强泛化能力。常用技术包括特征选择(Filter、Wrapper、Embedded方法)、特征构造(组合、多项式、文本特征提取)和特征变换(标准化、归一化、离散化)。通过优化特征工程,可找到最佳特征组合,提升模型性能。
|
1天前
|
机器学习/深度学习 算法
理解并应用机器学习算法:决策树
【5月更文挑战第12天】决策树是直观的分类与回归机器学习算法,通过树状结构模拟决策过程。每个内部节点代表特征属性,分支代表属性取值,叶子节点代表类别。构建过程包括特征选择(如信息增益、基尼指数等)、决策树生成和剪枝(预剪枝和后剪枝)以防止过拟合。广泛应用在信贷风险评估、医疗诊断等领域。理解并掌握决策树有助于解决实际问题。
|
2天前
|
机器学习/深度学习 算法 数据挖掘
【机器学习】在使用K-means聚类算法时,如何选择K的值?
【5月更文挑战第11天】【机器学习】在使用K-means聚类算法时,如何选择K的值?
|
2天前
|
机器学习/深度学习 算法 数据挖掘
【机器学习】为什么K-means算法使用欧式距离度量?
【5月更文挑战第11天】【机器学习】为什么K-means算法使用欧式距离度量?