public Run(ProtoRun protoRun, ProtoChromosome protoChrom, string symbol, DateTime startDate, DateTime endDate, double validationPct) : base(protoRun.Database) { ProtoChromosome = protoChrom; ProtoRun = protoRun; Symbol = symbol; StartDate = startDate; EndDate = endDate; ValidationPct = validationPct; Database.Store(this); }
public ProtoRun(Database db, string name, int numGenerations, ProtoChromosome protoChrom, int mixturesPerGen, int rnnPerMixture, int rbfPerMixture, int selectionSize, double mutationRate) : base(db) { Name = name; NumGenerations = numGenerations; ProtoChromosome = protoChrom; MixturesPerGeneration = mixturesPerGen; RnnPerMixture = rnnPerMixture; RbfPerMixture = rbfPerMixture; SelectionSize = selectionSize; MutationRate = mutationRate; db.Store(this); }
public static Chromosome MakeRandomChromosome(NetworkType networkType, ProtoChromosome protoChrom, int order) { return(new Chromosome(networkType, protoChrom.Genes.Select(gd => new Gene(gd.Name, Functions.RandomGeneValue(gd))), order)); }
public Run(ProtoRun protoRun, ProtoChromosome protoChrom) : this(protoRun, protoChrom, null, DateTime.MinValue, DateTime.MinValue, 0) { }