-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Tiny & Simple Change] Example classes should be static #2548
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2548 +/- ##
==========================================
- Coverage 71.35% 71.34% -0.02%
==========================================
Files 799 799
Lines 141496 141496
Branches 16120 16120
==========================================
- Hits 100971 100946 -25
- Misses 36062 36088 +26
+ Partials 4463 4462 -1
|
@@ -6,12 +6,12 @@ | |||
|
|||
namespace Microsoft.ML.Samples.Dynamic | |||
{ | |||
class OnnxTransformExample | |||
public static class OnnxTransformExample |
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.
(nit) you've dropped the Example
suffix in other places, but not here.
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.
@@ -5,7 +5,7 @@ | |||
|
|||
namespace Microsoft.ML.Samples.Dynamic | |||
{ | |||
public class ValueMappingExample | |||
public static partial class ValueMapping |
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.
partial [](start = 18, length = 7)
(nit) it doesn't have to be partial
@@ -6,7 +6,7 @@ | |||
|
|||
namespace Microsoft.ML.Samples.Dynamic | |||
{ | |||
public partial class TransformSamples | |||
public static partial class TransformSamples |
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.
TransformSamples [](start = 32, length = 16)
All timeseries example slightly different from our current samples.
They share same class and introduce data classes inside it, instead of using sample utils.
But I'm not sure they transformation to how we see samples should be done in your PR.
|
||
namespace Microsoft.ML.Samples.Dynamic | ||
{ | ||
public class PriorTrainerSample | ||
public class PriorTrainer |
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.
PriorTrainer [](start = 17, length = 12)
if you decide to update PR for nit comments, can you move this class and RandomTrainer to BinaryClassification folder? (If you decide to do it, don't forget to update catalog comments which looks on this 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.
Thank you for doing this @wschin ! |
Polish DYNAMIC examples to fix #2549. This change is inspired by @TomFinley's good comment to #2506 and I sincerely want to address that.
Example()
using
statements.Please note that this PR only focuses on dynamic examples'
static
problem. I don't have much bandwidth to take care other cases.