예제 #1
0
 private void SetBehavior(LayerBehavior behavior)
 {
     Interop.Layer.SetBehavior(SwigCPtr, (int)behavior);
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #2
0
 protected override bool PropsEquals(LayerBehavior other)
 {
     return GroupID == ((LearningBehavior)other).GroupID;
 }
 protected override bool PropsEquals(LayerBehavior other)
 {
     return Strength == ((UniformRandomizeWeights)other).Strength;
 }
 protected override bool PropsEquals(LayerBehavior other)
 {
     var gd = other as GradientDescentLearningRule;
     return base.PropsEquals(other) && LearningRate == gd.LearningRate && Momentum == gd.Momentum && Smoothing == gd.Smoothing;
 }
 protected override bool PropsEquals(LayerBehavior other)
 {
     return base.PropsEquals(other) && GetWeightUpdateMode() == ((SupervisedLearningRule)other).GetWeightUpdateMode();
 }
예제 #6
0
 /// <summary>
 /// Defines a new <see cref="NavigationProperties"/>.
 /// </summary>
 /// <param name="overlayMode">The <see cref="LayerBehavior"/> mode that should be used to present the navigated content.</param>
 /// <param name="historyMode">The <see cref="HistoryBehavior"/> mode that should be used by the <see cref="INavigationHistory"/> to handle the navigation stack.</param>
 public NavigationProperties(LayerBehavior overlayMode, HistoryBehavior historyMode)
 {
     LayerMode   = overlayMode;
     HistoryMode = historyMode;
 }