public GeneticAlgorithm() { random = new Random(); MutationMethod = mutationMethod; SelectionMethod = selectionMethod; InitializePopulation(); }
/** @copydoc LayerParameterBase::Copy */ public override void Copy(LayerParameterBase src) { BinaryHashParameter p = (BinaryHashParameter)src; m_nCacheDepth = p.m_nCacheDepth; m_dfBinaryThresholdForPooling = p.m_dfBinaryThresholdForPooling; m_nTopK = p.m_nTopK; m_nPoolSize = p.m_nPoolSize; m_bEnableDebug = p.m_bEnableDebug; m_selMethod = p.m_selMethod; m_nIterationEnable = p.m_nIterationEnable; m_bEnableDuringTesting = p.m_bEnableDuringTesting; m_distPass1 = p.m_distPass1; m_distPass2 = p.m_distPass2; m_bEnableTripletLoss = p.m_bEnableTripletLoss; m_dfAlpha = p.m_dfAlpha; }