public void ValueObject_Test_With_Yield_Enumerator() { var o = new ValueObject() { V1 = 1, V2 = 60 }; Prediction<ValueObject>( new DecisionTreeGenerator(), ValueObject.GetData(), o, vo => "l".Sanitize() == vo.R ); }
public void ValueObject_Test_With_Yield_Enumerator() { var data = ValueObject.GetData(); var generator = new DecisionTreeGenerator() { Descriptor = Descriptor.Create<ValueObject>() }; var model = generator.Generate(data); var s = model.ToString(); var o = new ValueObject() { V1 = 1, V2 = 60 }; var os = model.Predict<ValueObject>(o).R; Assert.AreEqual("l".Sanitize(), os); }