コード例 #1
0
        public void TestBasic()
        {
            var model = new Sequential();

            model.Add(new Dense(64, inputShape: new int[] { 20 }, activation: "relu"));
            model.Add(new Dropout(0.5));
            model.Add(new Dense(64, activation: "relu"));
            model.Add(new Dropout(0.5));
            model.Add(new Dense(10, activation: "softmax"));
            var sgd = new SGD(lr: 0.01, momentum: 0.9, nesterov: true);

            model.Compile("categorical_crossentropy", sgd, new string[] { "accuracy" });
            var json = model.ToString(Formatting.Indented);
        }
コード例 #2
0
        public string getAll()
        {
            string result = $"Typ: {MessageType.ToString()}\nVerb: {MessageVerb.ToString()}\nSequenziell: {Sequential.ToString()}\nObjects As String: {Objects.ToString()}";

            return(result);
        }