Fixed file and everything
This commit is contained in:
@ -4,7 +4,7 @@ from initialization.chromosome_structure.chromosome import chromosome as create_
|
||||
from initialization.gene_structure.gene import gene as create_gene
|
||||
|
||||
# Import functions for defaults
|
||||
from initialization.gene_creation.gene_random import random_gene
|
||||
from initialization.gene_function.gene_random import random_gene
|
||||
# Import functionality defaults
|
||||
from initialization.random_initialization import random_initialization
|
||||
|
||||
|
||||
@ -4,10 +4,6 @@ from .chromosome_structure.chromosome import chromosome as create_chromosome
|
||||
from .gene_structure.gene import gene as create_gene
|
||||
|
||||
def random_initialization(chromosome_length,population_size,gene_function):
|
||||
# I dont understand why python needs this in its scope but it does.
|
||||
global population
|
||||
global chromosome
|
||||
global gene
|
||||
# Create the population object
|
||||
population = create_population()
|
||||
# Fill the population with chromosomes
|
||||
|
||||
Reference in New Issue
Block a user