Skip to content

Commit 8e32dbb

Browse files
authored
Add files via upload
1 parent bed9996 commit 8e32dbb

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

README.md

+8-9
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,21 @@ The project will be extended to **train CNN using the genetic algorithm** with t
1313

1414
# Donation
1515

16-
You can donate via [Open Collective](https://opencollective.com/pygad): [opencollective.com/pygad](https://opencollective.com/pygad).
17-
18-
To donate using PayPal, use either this link: [paypal.me/ahmedfgad](https://paypal.me/ahmedfgad) or the e-mail address [email protected].
16+
- [Credit/Debit Card](https://donate.stripe.com/eVa5kO866elKgM0144): https://donate.stripe.com/eVa5kO866elKgM0144
17+
- [Open Collective](https://opencollective.com/pygad): [opencollective.com/pygad](https://opencollective.com/pygad)
18+
- PayPal: Use either this link: [paypal.me/ahmedfgad](https://paypal.me/ahmedfgad) or the e-mail address [email protected]
19+
- Interac e-Transfer: Use e-mail address [email protected]
1920

2021
# Installation
2122

22-
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.
23+
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.
2324

24-
For Windows, issue the following command:
25+
Install PyGAD with the following command:
2526

2627
```python
27-
pip3 install pygad
28+
pip install pygad
2829
```
2930

30-
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.
31-
3231
To get started with PyGAD, please read the documentation at [Read The Docs](https://pygad.readthedocs.io/) https://pygad.readthedocs.io.
3332

3433
# PyGAD Source Code
@@ -74,7 +73,7 @@ import numpy
7473
function_inputs = [4,-2,3.5,5,-11,-4.7]
7574
desired_output = 44
7675

77-
def fitness_func(solution, solution_idx):
76+
def fitness_func(ga_instance, solution, solution_idx):
7877
output = numpy.sum(solution*function_inputs)
7978
fitness = 1.0 / (numpy.abs(output - desired_output) + 0.000001)
8079
return fitness

0 commit comments

Comments
 (0)