-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Mark EntryPoints classes and APIs as internal #2582
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
Comments
Would we allow third parties to develop against Entrypoints ? If yes then it cant be internal. |
My opinion is that Entry Points are not part of ML.NET's |
There are still public types in this namespace in the core package: namespace Microsoft.ML.EntryPoints {
public abstract class EvaluateInputBase {
public IDataView Data;
public string NameColumn;
protected EvaluateInputBase();
}
public abstract class LearnerInputBase {
public string FeatureColumn;
protected LearnerInputBase();
}
public abstract class LearnerInputBaseWithGroupId : LearnerInputBaseWithWeight {
public string GroupIdColumn;
protected LearnerInputBaseWithGroupId();
}
public abstract class LearnerInputBaseWithLabel : LearnerInputBase {
public string LabelColumn;
protected LearnerInputBaseWithLabel();
}
public abstract class LearnerInputBaseWithWeight : LearnerInputBaseWithLabel {
public string WeightColumn;
protected LearnerInputBaseWithWeight();
}
public abstract class TransformInputBase {
protected TransformInputBase();
}
public abstract class UnsupervisedLearnerInputBaseWithWeight : LearnerInputBase {
public string WeightColumn;
protected UnsupervisedLearnerInputBaseWithWeight();
}
} machinelearning/src/Microsoft.ML.Data/EntryPoints/InputBase.cs Lines 15 to 121 in a16eb30
|
We can't make them not public. |
Actually, i think |
My main concern with this issue is:
If there are types that cannot be made internal in this namespace, then they should not be in this namespace. |
We have a few classes in
Microsoft.ML.Core
that are public, but they shouldn't be.machinelearning/src/Microsoft.ML.Core/EntryPoints/TransformModel.cs
Line 14 in 13b3339
machinelearning/src/Microsoft.ML.Core/EntryPoints/PredictorModel.cs
Line 14 in 13b3339
Basically, anything under the
Microsoft.ML.EntryPoints
namespace should be internal.This is OK, because anything that uses EntryPoints already has
InternalsVisibleTo
.@TomFinley @glebuk @ganik @shauheen
The text was updated successfully, but these errors were encountered: