Skip to content

how do i fix this. #36

@breadbrowser

Description

@breadbrowser

Traceback (most recent call last):
File "D:\downloads\Game-Bot-master\get_dataset.py", line 21, in get_dataset
X = np.load('Data/npy_train_data/X.npy')
File "C:\Users\For36\AppData\Local\Programs\Python\Python36\lib\site-packages\numpy\lib\npyio.py", line 416, in load
fid = stack.enter_context(open(os_fspath(file), "rb"))
FileNotFoundError: [Errno 2] No such file or directory: 'Data/npy_train_data/X.npy'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "train.py", line 31, in
main()
File "train.py", line 24, in main
X, X_test, Y, Y_test = get_dataset()
File "D:\downloads\Game-Bot-master\get_dataset.py", line 41, in get_dataset
Y = to_categorical(Y, count_categori[0]+1)
File "C:\Users\For36\AppData\Local\Programs\Python\Python36\lib\site-packages\keras\utils\np_utils.py", line 72, in to_categorical
num_classes = np.max(y) + 1
File "<array_function internals>", line 6, in amax
File "C:\Users\For36\AppData\Local\Programs\Python\Python36\lib\site-packages\numpy\core\fromnumeric.py", line 2706, in amax
keepdims=keepdims, initial=initial, where=where)
File "C:\Users\For36\AppData\Local\Programs\Python\Python36\lib\site-packages\numpy\core\fromnumeric.py", line 87, in _wrapreduction
return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
ValueError: zero-size array to reduction operation maximum which has no identity

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions