Beispiel #1
0
        public override string ToString()
        {
            var sb = new StringBuilder();

            sb.Append("numInput = " + this.Props.NumInput + " numHidden = " + this.Props.NumHidden + " numOutput = " + this.Props.NumOutput + "\n\n");

            ArrayFormatter.Matrix(sb, this.ihWeights, this.ihWeights.Length, 4, true, "ihWeights:");
            ArrayFormatter.Vector(sb, this.hBiases, 0, 4, true, "hBiases:");
            ArrayFormatter.Matrix(sb, this.hoWeights, this.hoWeights.Length, 4, true, "hoWeights:");
            ArrayFormatter.Vector(sb, this.oBiases, 0, 4, true, "hBiases:");
            return(sb.ToString());
        }
        public override string ToString() // yikes
        {
            var s  = this.Network.ToString();
            var sb = new StringBuilder(s);

            ArrayFormatter.Vector(sb, this.hGrads, 0, 4, true, "hGrads:");
            ArrayFormatter.Vector(sb, this.oGrads, 0, 4, true, "oGrads:");
            ArrayFormatter.Matrix(sb, this.ihPrevWeightsDelta, this.ihPrevWeightsDelta.Length, 4, true, "ihPrevWeightsDelta:");
            ArrayFormatter.Vector(sb, this.hPrevBiasesDelta, 0, 4, true, "hPrevBiasesDelta:");
            ArrayFormatter.Matrix(sb, this.hoPrevWeightsDelta, this.hoPrevWeightsDelta.Length, 4, true, "hoPrevWeightsDelta:");
            ArrayFormatter.Vector(sb, this.oPrevBiasesDelta, 0, 4, true, "oPrevBiasesDelta:");

            return(sb.ToString());
        }