Skip to content

Commit 4b3e50a

Browse files
authored
Add files via upload
1 parent 399268b commit 4b3e50a

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

README.md

+8-11
Original file line numberDiff line numberDiff line change
@@ -8,30 +8,27 @@ Check documentation of the [NeuralGenetic](https://github.com/ahmedfgad/NeuralGe
88

99
The library is under active development and more features are added regularly. If you want a feature to be supported, please check the **Contact Us** section to send a request.
1010

11-
Before using [NumPyANN](https://github.com/ahmedfgad/NumPyCNN), install PyGAD.
12-
1311
# Donation
1412

15-
You can donate via [Open Collective](https://opencollective.com/pygad): [opencollective.com/pygad](https://opencollective.com/pygad).
16-
17-
To donate using PayPal, use either this link: [paypal.me/ahmedfgad](https://paypal.me/ahmedfgad) or the e-mail address ahmed.f.gad@gmail.com.
13+
- [Credit/Debit Card](https://donate.stripe.com/eVa5kO866elKgM0144): https://donate.stripe.com/eVa5kO866elKgM0144
14+
- [Open Collective](https://opencollective.com/pygad): [opencollective.com/pygad](https://opencollective.com/pygad)
15+
- PayPal: Use either this link: [paypal.me/ahmedfgad](https://paypal.me/ahmedfgad) or the e-mail address ahmed.f.gad@gmail.com
16+
- Interac e-Transfer: Use e-mail address ahmed.f.gad@gmail.com
1817

1918
# Tutorial Project
2019

2120
**IMPORTANT** If you are coming for the code of the tutorial titled **[Artificial Neural Network Implementation using NumPy and Classification of the Fruits360 Image Dataset](https://www.linkedin.com/pulse/artificial-neural-network-implementation-using-numpy-fruits360-gad)**, then it has been moved to the [TutorialProject](https://github.com/ahmedfgad/NumPyANN/tree/master/TutorialProject) directory on 10 May 2020.
2221

2322
# Installation
2423

25-
To install [PyGAD](https://pypi.org/project/pygad), simply use pip to download and install the library from [PyPI](https://pypi.org/project/pygad) (Python Package Index). The library lives a PyPI at this page https://pypi.org/project/pygad.
24+
To install [PyGAD](https://pypi.org/project/pygad), simply use pip to download and install the library from [PyPI](https://pypi.org/project/pygad) (Python Package Index). The library is at PyPI at this page https://pypi.org/project/pygad.
2625

27-
For Windows, issue the following command:
26+
Install PyGAD with the following command:
2827

2928
```python
30-
pip3 install pygad
29+
pip install pygad
3130
```
3231

33-
PyGAD is developed in Python 3.7.3 and depends on NumPy for creating and manipulating arrays and Matplotlib for creating figures. The exact NumPy version used in developing PyGAD is 1.16.4. For Matplotlib, the version is 3.1.0.
34-
3532
To get started with PyGAD, please read the documentation at [Read The Docs](https://pygad.readthedocs.io/) https://pygad.readthedocs.io.
3633

3734
# PyGAD Source Code
@@ -77,7 +74,7 @@ import numpy
7774
function_inputs = [4,-2,3.5,5,-11,-4.7]
7875
desired_output = 44
7976

80-
def fitness_func(solution, solution_idx):
77+
def fitness_func(ga_instance, solution, solution_idx):
8178
output = numpy.sum(solution*function_inputs)
8279
fitness = 1.0 / (numpy.abs(output - desired_output) + 0.000001)
8380
return fitness

0 commit comments

Comments
 (0)