python ran a download of the model, the problem is there something wrong with the data

llsk80 注册会员
2023-02-25 10:07

This answer quotes ChatGPT

According to the error message, The problem may be np.array(list(map(idx_map.get, edges_unordered.flatten())), dtype=np.int32).reshape(edges_unordered.shape) on this line of code. Where, TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType' int() argument must be a string, a bytes-like object or a number, not 'nonetype' But it actually gets a NoneType object. Therefore, the possible problem is that there are elements of type NoneType in the edges_unordered array or that the array is empty.

xingaiping 注册会员
2023-02-25 10:07

Hello, regarding your problem of python running a model error, according to the problem you described :
first reported a warning that numpy was imported repeatedly. This may be due to the fact that you are calling multiple modules that have numpy in them, but if it doesn't affect you, you can leave it at that.
Next there is an error inside the int() method with an empty parameter. I want you to find out where the incoming data is problematic. You can try to output the parameters and variables of each step to see if it is normal. Or use a debug run to see if the data is correct at each step.

cyj4229115 注册会员
2023-02-25 10:07

the reference answer GPT ᴼ ᴾ ᴱ ᴺ ᴬ ᴵ < br / > according to the error message, seems to be in line 13 file path problem in the code. You can check the following:

1. Check whether the data set file exists. Make sure that the data set files you download are stored in the correct path, and that the file name and path name are correct.

2. Check whether the path is correct. Verify that the data set file path and file name are the same as specified in the code, noting that the case matches.

3. Check whether the data set file format is correct. The genfromtxt() function from the numpy library is used to avoid errors by checking that the data set files are formatted correctly. You can print idx_features_labels to see if it matches the format of the dataset file.

Hope you found these tips helpful.

About the Author

Question Info

Publish Time
2023-02-25 10:07
Update Time
2023-02-25 10:07

Related Question









在谷歌Cloud Storage Python中解压缩一个大文件并分解成块