/// <summary> /// Calculates matched error (out-target) and propagates it through layer to inputs /// </summary> /// <param name="targets">Sequence of targets</param> public virtual List <Matrix <T> > ErrorPropagate(List <Matrix <T> > targets) { if (ErrorFunction == null) { throw new InvalidOperationException("Layer error function is not specified!"); } return(ErrorFunction.BackpropagateError(Outputs, targets)); }