-
Notifications
You must be signed in to change notification settings - Fork 1.9k
updating namespaces #2914
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
updating namespaces #2914
Conversation
@@ -8,7 +8,7 @@ | |||
using Microsoft.ML.EntryPoints; | |||
using Microsoft.ML.Runtime; | |||
|
|||
namespace Microsoft.ML.LightGBM | |||
namespace Microsoft.ML.Trainers.LightGBM |
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.
If we are changing all of these places, should we start using the new casing we decided on in #2762.
namespace Microsoft.ML.Trainers.LightGbm
#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.
How about assembly names? #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.
It kind of feels like if that is our casing... we should probably case it the same way everywhere. #Resolved
I have renamed the package definition files in disc, but git didn't pick up the change. Will update and re-post. #Resolved |
My suggestion would be to either use a case sensitive file system (like a Linux box), or use |
Microsoft.ML.Transforms.FeatureSelection -> moves to Microsoft.ML.Transforms
and the ImageLoader transform moved to Microsoft.ML.Data together with the TextLoader.
thanks Eric. In reply to: 472009849 [](ancestors = 472009849) |
@@ -13,10 +13,10 @@ | |||
<ProjectReference Include="..\Microsoft.ML.Data\Microsoft.ML.Data.csproj" /> | |||
<ProjectReference Include="..\Microsoft.ML.Ensemble\Microsoft.ML.Ensemble.csproj" /> | |||
<ProjectReference Include="..\Microsoft.ML.FastTree\Microsoft.ML.FastTree.csproj" /> | |||
<ProjectReference Include="..\Microsoft.ML.LightGBM\Microsoft.ML.LightGbm.csproj" /> |
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.
LightGBM
=> LightGbm
#Resolved
@@ -6,7 +6,7 @@ | |||
|
|||
<ItemGroup> | |||
<ProjectReference Include="..\Microsoft.ML.Data\Microsoft.ML.Data.csproj" /> | |||
<ProjectReference Include="..\Microsoft.ML.LightGBM\Microsoft.ML.LightGBM.csproj" /> | |||
<ProjectReference Include="..\Microsoft.ML.LightGBM\Microsoft.ML.LightGbm.csproj" /> |
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.
You changed the casing of the folder, right? \Microsoft.ML.LightGBM\
=> \Microsoft.ML.LightGbm\
or else the Linux build is gonna fail. #Resolved
It should become Refers to: docs/samples/Microsoft.ML.Samples/Dynamic/Trainers/BinaryClassification/LightGbmWithOptions.cs:8 in cfcc7d8. [](commit_id = cfcc7d8, 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.
Codecov Report
@@ Coverage Diff @@
## master #2914 +/- ##
==========================================
+ Coverage 72.19% 72.19% +<.01%
==========================================
Files 796 796
Lines 142023 142023
Branches 16046 16046
==========================================
+ Hits 102527 102531 +4
+ Misses 35116 35113 -3
+ Partials 4380 4379 -1
|
/// <summary> | ||
/// Support for feature contribution calculation. | ||
/// </summary> | ||
public sealed class FeatureContributionCalculator |
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'm not seeing how this class is used anywhere in the code.
Can it be deleted?
It appears the way this is working is that we have a public API that takes in a ICalculateFeatureContribution
(the public interface above) object, and then we internally cast that same object to IFeatureContributionMapper
(the internal interface above that). I don't see where we are using this public class anywhere in our code.
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.
tried to remove it, and just use the IFeatureContributionMapper, but it will need the GetFeatureContributionMapper, and the ValueMapper to be public too. The ValueMapper is internal atm.
In reply to: 265147046 [](ancestors = 265147046)
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 was able to remove it, and make the solution build successfully:
(Obviously this is outside of the scope of this current PR - which is just moving namespaces. Maybe we should open an issue for this design, as I think it kind of "smells".)
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 ic, you've removed it completely. I was merging it with the IFeatureContributionMapper. I'll create an issue.
Towards #2751
Microsoft.ML.LightGBM -> changes to Microsoft.ML.Trainers.LightGBM
Microsoft.ML.Transforms.FeatureSelection -> moves to Microsoft.ML.Transforms