public static void Encode_ThreeString()
 {
     var input = new string[] {"a", "b", "c"};
     var coder = new NetworkOutputCoder(input);
     var endcoded = coder.Encode("b");
     Assert.True(endcoded.SequenceEqual(new double[]{0,1,0}));
 }
 public static IEnumerable<TeachingSample> GetSamples(IEnumerable<TeachingSet> set,
     NetworkOutputCoder coder)
 {
     return set.SelectMany(x => x.Inputs.Select(y => new TeachingSample(y, coder.Encode(x.Output)))).Mix();
 }