-
Notifications
You must be signed in to change notification settings - Fork 1.9k
More namespace alignment #2724
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
More namespace alignment #2724
Conversation
@@ -10,7 +10,6 @@ | |||
using Microsoft.ML.CommandLine; | |||
using Microsoft.ML.Data; | |||
using Microsoft.ML.EntryPoints; | |||
using Microsoft.ML.Internal.Calibration; | |||
using Microsoft.ML.Internal.Internallearn; |
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.
I assume Internal.Internallearn
will be taken care of in another change.
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.
Yep, I’ll be taking care of that today.
|
||
[assembly: LoadableClass(typeof(void), typeof(ImageAnalytics), null, typeof(SignatureEntryPointModule), "ImageAnalytics")] | ||
namespace Microsoft.ML.ImageAnalytics.EntryPoints | ||
namespace Microsoft.ML.ImageAnalytics | ||
{ | ||
internal static class ImageAnalytics |
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.
ImageAnalytics [](start = 26, length = 14)
Humm, is it really good to have a class named by its namespace? Once I ran into missing-reference problem because of that. #Resolved
@@ -80,7 +79,7 @@ | |||
[assembly: EntryPointModule(typeof(PavCalibratorTrainerFactory))] | |||
[assembly: EntryPointModule(typeof(PlattCalibratorTrainerFactory))] | |||
|
|||
namespace Microsoft.ML.Internal.Calibration | |||
namespace Microsoft.ML.Calibrator |
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.
Calibrator [](start = 23, length = 10)
If we really want to have another namespace that's fine I guess, but if the namespace name is Microsoft.ML.Trainers
then this should probably be Microsoft.ML.Calibrators
, not Calibrator
. #Resolved
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.
Should we do Microsoft.ML.StaticPipe"s"
? #Pending
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.
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.
Overall LGTM. Just a minor comment about potential naming.
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.
🕐
Should the namespace for this be Microsoft.ML.StaticPipe? Looking at other examples, classes are using Microsoft.ML.StaticPipeline for the namespace. #Pending Refers to: src/Microsoft.ML.LightGBM.StaticPipe/LightGbmStaticExtensions.cs:11 in 2af661d. [](commit_id = 2af661d, deletion_comment = False) |
Are there other classes in the StaticPipe that don't use Microsoft.ML.StaticPipe? In reply to: 467609030 [](ancestors = 467609030) Refers to: src/Microsoft.ML.LightGBM.StaticPipe/LightGbmStaticExtensions.cs:11 in 2af661d. [](commit_id = 2af661d, deletion_comment = False) |
Some other variations that I found: In reply to: 467609182 [](ancestors = 467609182,467609030) Refers to: src/Microsoft.ML.LightGBM.StaticPipe/LightGbmStaticExtensions.cs:11 in 2af661d. [](commit_id = 2af661d, deletion_comment = False) |
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.
Looks good to me, I left some feedback. |
Microsoft.ML.Trainers.Ensemble.DiversityMeasure Microsoft.ML.Trainers.Ensemble.FeatureSelector Microsoft.ML.Trainers.Ensemble.SubModelSelector
and Microsoft.ML.FactorizationMachine -> Microsoft.ML.Trainers.FactorizationMachine
Microsoft.ML.Internal.Calibration -> Microsoft.Ml.Calibrator
let me address that on a separate issue/PR since it is not related to the core Microsoft.ML nuget. Logged: #2746 In reply to: 467610688 [](ancestors = 467610688,467609182,467609030) Refers to: src/Microsoft.ML.LightGBM.StaticPipe/LightGbmStaticExtensions.cs:11 in 2af661d. [](commit_id = 2af661d, deletion_comment = False) |
Microsoft.ML.Calibrators namespace for calibrators Microsoft.ML.Data.Evaluators.Metrics -> Microsoft.ML.Data Microsoft.ML.FastTree --> Microsoft.ML.Trainers.FastTree ICanSaveModel, ModelSaveContext move from Microsoft.ML.Model to Microsoft.Ml
a0eb13d
to
0e365de
Compare
…ugh cmd doesn't build the test folder. Extending the changes of the prior commit to the test folder
… and regenerating the catalog.
Codecov Report
@@ Coverage Diff @@
## master #2724 +/- ##
==========================================
+ Coverage 71.65% 71.66% +<.01%
==========================================
Files 808 808
Lines 142350 142350
Branches 16121 16121
==========================================
+ Hits 102008 102010 +2
+ Misses 35905 35903 -2
Partials 4437 4437
|
Scratch all this. I was looking in the wrong place... 😕 |
Closes #2326 by :
1- First commit
substituting :
Microsoft.ML.Trainers.Ensemble.DiversityMeasure
Microsoft.ML.Trainers.Ensemble.FeatureSelector
Microsoft.ML.Trainers.Ensemble.SubModelSelector
with:
Microsoft.ML.Trainers.Ensemble
2 - Second commit:
Microsoft.ML.FactorizationMachine becomes Microsoft.ML.Trainers.FactorizationMachine
Microsoft.ML.EntryPoints.JsonUtils becomes Microsoft.ML.EntryPoints
3- third commit
Microsoft.ML.ImageAnalytics.EntryPoints becomes Microsoft.ML.ImageAnalytics
Microsoft.ML.Internal.Calibration becomes Microsoft.Ml.Calibrator
4- Fourth commit
Microsoft.ML.StaticPipe.Runtime changes to Microsoft.ML.StaticPipe
easier to review commit by commit.
I have used the VS replace all + reordering namespaces through Ctrl+R+G