ahmedfgad / NumPyANN

Implementation of Artificial Neural Networks using NumPy
https://pygad.readthedocs.io
98 stars 52 forks source link

Test case problem #3

Closed oguzzkck closed 4 years ago

oguzzkck commented 5 years ago

Thank you for all your helps.

We done train.

Attachment

So how can we test on the other images this project?

ahmedfgad commented 5 years ago

Good luck. Note that this project (https://github.com/ahmedfgad/NumPyANN) uses the learning rate only for updating the ANN weights. It is not recommended. But you can still do predictions using the predict_outputs() function inside the ann_numpy.py file. Its header is as follows: def predict_outputs(weights, data_inputs, activation="relu") It accepts the latest weights in addition to the inputs to be classified and returns their class labels.

But this project uses just the learning rate for slightly modifying the weights and this does not guarantee that an acceptable accuracy will be reached. Thus, I added an extension to this project into another project called NeuralGenetic available here: https://github.com/ahmedfgad/NeuralGenetic. It uses the genetic algorithm for training the ANN better than before. The NeuralGenetic project is not away from the NumPyANN project as it still uses the previously extracted features in NumPyANN and also builds the ANN using the same code used in NumPyANN. It just changes the way in which the weights are updated. After training the ANN completes, you can make predictions using the predict_outputs() function.

Good luck.