Skip to content
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

Add ICanSummarize and implement IEstimator.Summary for StandardTrainers #6584

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

LittleLittleCloud
Copy link
Contributor

We are excited to review your PR.

So we can do the best job, please check:

  • There's a descriptive title that will make sense to other developers some time from now.
  • There's associated issues. All PR's should have issue(s) associated - unless a trivial self-evident change such as fixing a typo. You can use the format Fixes #nnnn in your description to cause GitHub to automatically close the issue(s) when your PR is merged.
  • You have included any necessary tests in the same PR.

#6563

This PR adds a Summary function to all IEstimator<ITransformer> which prints meta data like estimator name, hyper-parameters and other informations. This helps code generator in model builder to generate pipeline code.

@LittleLittleCloud LittleLittleCloud changed the title Add ICanSummarize and implement IEstimator.Summary Add ICanSummarize and implement IEstimator.Summary for Lbfgs Mar 2, 2023
@LittleLittleCloud LittleLittleCloud changed the title Add ICanSummarize and implement IEstimator.Summary for Lbfgs Add ICanSummarize and implement IEstimator.Summary for StandardTrainers Mar 6, 2023
@LittleLittleCloud
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@@ -42,7 +42,6 @@
<ProjectReference Include="..\Microsoft.ML.OnnxTransformer\Microsoft.ML.OnnxTransformer.csproj" />
<ProjectReference Include="..\Microsoft.ML.SearchSpace\Microsoft.ML.SearchSpace.csproj">
<PrivateAssets>all</PrivateAssets>
<IncludeInNuget>true</IncludeInNuget>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does removing this line break anything?

@@ -3,8 +3,10 @@
// See the LICENSE file in the project root for more information.

using System.Runtime.CompilerServices;
using Microsoft.ML;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this using statement needed here? Doesn't seem like it.

@@ -2,7 +2,6 @@

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<IncludeInPackage>Microsoft.ML.Core</IncludeInPackage>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What package is this going to be included in now?


namespace Microsoft.ML.SearchSpace
{
internal class Schema
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we change the name of this class from Schema to something else? We already use schema for many things, and this seems more like a summary rather than a schema.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants