Skip to content
This repository has been archived by the owner on Nov 19, 2020. It is now read-only.

DecisionTree.ToCode() returns code that does not compile #706

Closed
ar7z1 opened this issue Jul 13, 2017 · 0 comments · Fixed by #707
Closed

DecisionTree.ToCode() returns code that does not compile #706

ar7z1 opened this issue Jul 13, 2017 · 0 comments · Fixed by #707

Comments

@ar7z1
Copy link
Contributor

ar7z1 commented Jul 13, 2017

DecisionTreeWriter adds ArgumentException to generated code:

writer.WriteLine(indent + "else throw new ArgumentException(\"input\", \"Unexpected value at position " + attributeIndex + ".\");");

But generated "usings" section does not contain using System; (ArgumentException lies there):

writer.WriteLine("    using System.CodeDom.Compiler;");
writer.WriteLine("    using System.Collections.Generic;");
ar7z1 added a commit to ar7z1/framework that referenced this issue Jul 13, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant