# -*- coding: utf-8 -*- """ Created on Thu May 10 04:48:21 2012 @author: gofrendi """ #from Go_GrammaticalEvolution import Go_GrammaticalEvolution from Go_GEFCS import Go_GEFCS from Go_Random import Go_Random from randomFunction import randomFunction from abaloneData import abaloneData ge = Go_GEFCS() ge.random = Go_Random(randomFunction) #ge.crossoverRate = 25 #ge.mutationRate = 45 #ge.newRate = 25 #ge.elitismRate = 5 #ge.maxEpoch = 50 #ge.populationSize = 100 #ge.maxCodon = 25 ge.startExpr = '<EXPR>' ge.grammar = { '<EXPR>' : [ {'become' : '(<EXPR>)<OP>(<EXPR>)', 'p' : 2}, {'become' : '<VAR>', 'p' : 8}, {'become' : '<NUM>', 'p' : 2} ], '<OP>' : [ {'become' : '+', 'p' : 2},
# -*- coding: utf-8 -*- """ Created on Thu May 10 04:48:21 2012 @author: gofrendi """ #from Go_GrammaticalEvolution import Go_GrammaticalEvolution from Go_GEFCS import Go_GEFCS from Go_Random import Go_Random from randomFunction import randomFunction from thresholdingData import thresholdingData ge = Go_GEFCS() ge.random = Go_Random(randomFunction) ge.grammar = { '<EXPR>' : [ {'become' : '(<EXPR>)<OP>(<EXPR>)', 'p' : 2}, {'become' : '<VAR>', 'p' : 8}, {'become' : '<NUM>', 'p' : 1}, ], '<OP>' : [ {'become' : '+', 'p' : 2}, {'become' : '-', 'p' : 2}, {'become' : '*', 'p' : 2}, {'become' : '/', 'p' : 2}, {'become' : '**', 'p' : 1} ], '<VAR>' : [ {'become' : 'minOtsu', 'p' : 2}, {'become' : 'otsu', 'p' : 2},
# -*- coding: utf-8 -*- """ Created on Tue May 8 13:35:47 2012 @author: gofrendi """ from Go_GEFCS import Go_GEFCS from Go_Random import Go_Random from randomFunction import randomFunction from thresholdingData import thresholdingData gfcs = Go_GEFCS() gfcs.random = Go_Random(randomFunction) gfcs._grammar = { '<EXPR>' : [ {'become' : '(<EXPR>)<OP>(<EXPR>)', 'p' : 2}, {'become' : '<VAR>', 'p' : 8}, {'become' : '<NUM>', 'p' : 2} ], '<OP>' : [ {'become' : '+', 'p' : 4}, {'become' : '-', 'p' : 3}, {'become' : '*', 'p' : 3}, {'become' : '/', 'p' : 3}, {'become' : '**', 'p' : 1} ], '<VAR>' : [ {'become' : 'otsu', 'p' : 5}, {'become' : 'stdev', 'p' : 5},