Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Fatal error on more than one output node #6

Open
OlliePugh opened this issue Jul 4, 2021 · 0 comments
Open

Fatal error on more than one output node #6

OlliePugh opened this issue Jul 4, 2021 · 0 comments

Comments

@OlliePugh
Copy link
Owner

Fatal error when trying to train with more than one output node.

(env) C:\Users\olive\OneDrive\Programming\Python\Parkr>py main.py
Traceback (most recent call last):
  File "C:\Users\olive\OneDrive\Programming\Python\Parkr\main.py", line 16, in <module>
    my_network.train(epochs, (training_data, expected_data))
  File "C:\Users\olive\OneDrive\Programming\Python\Parkr\src\parkr\network.py", line 180, in train
    row_weight_change, row_bias_change = self.__generate_changes(activated_forward_pass, expected_batches[batch_count][i], step_size, prev_changes=(prev_weight_change, prev_bias_change), **kwargs)  # generate the changes required        
  File "C:\Users\olive\OneDrive\Programming\Python\Parkr\src\parkr\network.py", line 251, in __generate_changes
    delta = np.dot((expected-activated_result[i]), derived)
  File "<__array_function__ internals>", line 5, in dot
ValueError: shapes (1,2) and (1,2) not aligned: 2 (dim 1) != 1 (dim 0)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant