public static void Decode_ThreeStrings() { var input = new string[] { "a", "b","c" }; var coder = new NetworkOutputCoder(input); var decoded = coder.Decode(new double[] { 0,1,0 }); Assert.True(decoded == "b"); }
public static void Decode_OneString() { var input = new string[] { "a" }; var coder = new NetworkOutputCoder(input); var decoded = coder.Decode(new double[] {1}); Assert.True(decoded=="a"); }