func DSoftmax(X *Matrix.Matrix) *Matrix.Matrix { Total := 1 / X.TaxicabNorm() Y := X.Scalar(complex(Total, 0)) S, _ := Matrix.Sustract(Matrix.FixValueMatrix(X.GetNColumns(), X.GetNColumns(), 1.0), X) YD := Matrix.DotMultiplication(Y, S) return YD }
func Softmax(X *Matrix.Matrix) *Matrix.Matrix { Total := 1 / X.TaxicabNorm() Y := X.Scalar(complex(Total, 0)) return Y }