Heading Changes

This commit is contained in:
Daniel Wilczak
2020-09-21 14:25:50 -04:00
parent 01e689711f
commit 365ae7eac6

View File

@ -37,7 +37,7 @@ ga = EasyGA.GA(Population_size, Chromosome_length,user_gene_function)
ga.initialize() ga.initialize()
``` ```
# Getting your Genes and Chromosomes from the population: ### Getting your Genes and Chromosomes from the population:
```Python ```Python
# Looking to print the first Chromosome # Looking to print the first Chromosome
ga.population.chromosomes[0].print_chromosome() ga.population.chromosomes[0].print_chromosome()
@ -53,7 +53,7 @@ my_gene = ga.population.chromosomes[0].genes[0].get_value()
print(f"my_gene: {my_gene}") print(f"my_gene: {my_gene}")
``` ```
# Ouput: ### Ouput:
```Python ```Python
[99],[30],[59],[77],[68],[57],[14],[92],[85],[27] [99],[30],[59],[77],[68],[57],[14],[92],[85],[27]
@ -75,7 +75,7 @@ my_gene: 99
``` ```
# Developing EasyGA: ## Developing EasyGA:
Download the repository to some folder - If you never used git. Look up a youtube tutorial. It will all make sense. Download the repository to some folder - If you never used git. Look up a youtube tutorial. It will all make sense.
``` ```
git clone https://github.com/danielwilczak101/EasyGA.git git clone https://github.com/danielwilczak101/EasyGA.git
@ -85,7 +85,7 @@ Then install the repositroy using this command:
pip install -e . pip install -e .
``` ```
# Working on developing a devel branch: ## Working on developing a devel branch:
To install EASY, along with the tools you need to develop and run tests, run the following in your virtual env: To install EASY, along with the tools you need to develop and run tests, run the following in your virtual env:
```bash ```bash