论文采用机器学习machine learning研究水平管降膜流型转换,做的是强化肋片管表面。实验研究。给出了python机器学习代码。
Programcodeofthepredictionmodel.
Thepredictionmodel(SVR)codeformachinelearningiswritteninPython,andthepredictionmodelcodecanbecontin-uouslyupdatedbasedonnewexperimentaldatatoachievethegeneralizabilityofthepredictionmodel.
Instruction:
1.OpentheSVR_prediction.py.
2.Customizetheinputs:(Ga_25,s_div_xi,F),whereGa_25=Ga∧0.25,s_div_xi=s/xi.
3.Selectacorrectmodel.
4.RunthecodesandthepredictedRevaluewillbeprinted.
Attention:GaisthemodifiedGalileonumber,sisthetubespacing,xiisthecapillarylength,Fisthefindensity.
Code:
importnumpyasnp.
defpara_est(dt):
#Re=A∗Ga∧0.25∗(s/xi)∧b∗F∧c.
#input:dt(arrays)hasfeaturesRe,Ga∧0.25,s,xi,s/xi,F.
#Output:A,b,c.
sub_dt=np.log(np.array(dt)