-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[AutoML] Pull out Code Gen as separate library plus some changes in CodeGen #4043
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[AutoML] Pull out Code Gen as separate library plus some changes in CodeGen #4043
Conversation
|
src/Microsoft.ML.CodeGen/CodeGenerator/CSharp/CodeGeneratorSettings.cs
Outdated
Show resolved
Hide resolved
5a705ba
to
6189d72
Compare
src/Microsoft.ML.CodeGen/CodeGenerator/CSharp/CodeGeneratorSettings.cs
Outdated
Show resolved
Hide resolved
Could you run a smoke test with different datasets per task type. binary, multi and regression. and check the generated projects can compile and run and give meaningful results before closing in on this PR |
|
{ | ||
public CodeGeneratorSettings() | ||
{ | ||
// set default value |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment style in ML.NET is to begin comment with an uppercase character
// set default value | |
// Set default value |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for pointing out
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#resolved
|
||
} | ||
|
||
public enum GenerateTarget |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seem to be used only to print the right annotation for the platform. I might recommend just having a string field here for the annotation text.
This would address my other comment: https://github.com/dotnet/machinelearning/pull/4043/files#r317240647
@@ -0,0 +1 @@ | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the purpose of this empty file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh it's generated by T4... I will remove that
@@ -6,7 +6,7 @@ | |||
<Project Sdk="Microsoft.NET.Sdk"> | |||
|
|||
<PropertyGroup> | |||
<TargetFramework>netcoreapp2.1</TargetFramework> | |||
<TargetFramework>netstandard2.0</TargetFramework> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason this moved from core to standard? Does this allow the generated project to exist in a wider set of projects?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because ML.Net target netstandard 2.0 and we want to keep in pace with that.
@JakeRadMSFT is that correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah this makes it so .NET Framework and .NET Core projects can reference the model project.
We are excited to review your PR.
So we can do the best job, please check:
Fixes #nnnn
in your description to cause GitHub to automatically close the issue(s) when your PR is merged.Related Issue
[Implement] Code generation improvements
CLI Hand Off