public static IEnumerable<TeachingSet> Get(int countOfSamples) { var firstSet = new TeachingSet(FirstPoint, GetInputs(_firstPoint, countOfSamples / 4)); var secondSet = new TeachingSet(SecondPoint, GetInputs(_secondPoint, countOfSamples / 4)); var thirdSet = new TeachingSet(ThirdPoint, GetInputs(_thirdPoint, countOfSamples / 4)); var fourthSet = new TeachingSet(FourthPoint, GetInputs(_fourthPoint, countOfSamples / 4)); return new[] { firstSet,secondSet,thirdSet,fourthSet }; }
protected static bool LoadFileCheck(TeachingSet loaded, string expectedHead, IEnumerable<double[]> expectedInputs ) { return expectedHead == loaded.Output && SeqOfArraysEquals(expectedInputs, loaded.Inputs); }
public static IEnumerable<TeachingSet> Get(int countOfSamples) { var positiveSet = new TeachingSet(_positiveHead, GetInputs(1, countOfSamples/2)); var negativeSet = new TeachingSet(_negativeHead, GetInputs(-1, countOfSamples/2)); return new[] {positiveSet, negativeSet}; }