问题遇到的现象和发生背景
psse_data = scipy.io.loadmat('dist2_118FASE_data.mat')
psse_data = scipy.io.loadmat('118_bus_GStest_err.mat')
print(psse_data['inputs'].shape, psse_data['labels'].shape)
data_x = psse_data['inputs']
data_y = psse_data['labels']
问题相关代码,请勿粘贴截图
运行结果及报错内容
C:\Users\102\anaconda3\envs\power_cloud-dev\python.exe C:/py36/PSSE/simple_test.py
Using TensorFlow backend.
Traceback (most recent call last):
File "C:/py36/PSSE/simple_test.py", line 38, in
print(psse_data['inputs'].shape, psse_data['labels'].shape)
KeyError: 'inputs'