降水空间检验线性回归的问题
Opened this issue · 1 comments
在用ain_24h_comprehensive_sg和rain_24h_comprehensive_chinaland_sg涉及到线性回归的画图时出现这个错误
Traceback (most recent call last):
File "C:\Users\liupp\miniconda3\envs\meteva\lib\site-packages\IPython\core\interactiveshell.py", line 3331, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "", line 1, in
runfile('C:/Users/liupp/PycharmProjects/meteva/meteva_pre.py', wdir='C:/Users/liupp/PycharmProjects/meteva')
File "C:\Program Files\JetBrains\PyCharm 2020.1.1\plugins\python\helpers\pydev_pydev_bundle\pydev_umd.py", line 197, in runfile
pydev_imports.execfile(filename, global_vars, local_vars) # execute the script
File "C:\Program Files\JetBrains\PyCharm 2020.1.1\plugins\python\helpers\pydev_pydev_imps_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "C:/Users/liupp/PycharmProjects/meteva/meteva_pre.py", line 24, in
mpd.rain_24h_comprehensive_sg(sta_ob, grd_fo_jx, r"D:\rain_24h_comp_c.png")
File "C:\Users\liupp\miniconda3\envs\meteva\lib\site-packages\meteva\product\program\space_compare.py", line 272, in rain_24h_comprehensive_sg
clf = LinearRegression().fit(X, fo)
File "C:\Users\liupp\miniconda3\envs\meteva\lib\site-packages\sklearn\linear_model_base.py", line 547, in fit
linalg.lstsq(X, y)
File "C:\Users\liupp\miniconda3\envs\meteva\lib\site-packages\scipy\linalg\basic.py", line 1226, in lstsq
% (-info, lapack_driver))
ValueError: illegal value in 4-th argument of internal None
该错误有可能是由于程序提取到的观测预报数据为空导致,可将相应的测试数据通过微信传给我,我调试一下看看