-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Creation of components through MLContext and cleanup (Convert, DropSlots, FeatureSelection) #2365
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 #2365 +/- ##
==========================================
- Coverage 71.23% 71.22% -0.01%
==========================================
Files 785 785
Lines 141034 141030 -4
Branches 16114 16116 +2
==========================================
- Hits 100468 100454 -14
- Misses 36095 36106 +11
+ Partials 4471 4470 -1
|
can you fix it? #Closed Refers to: src/Microsoft.ML.Data/Transforms/ConversionsExtensionsCatalog.cs:25 in bd98b16. [](commit_id = bd98b16, deletion_comment = False) |
src/Microsoft.ML.Data/Transforms/FeatureContributionCalculationTransformer.cs
Show resolved
Hide resolved
/// <summary> | ||
/// Returns the <see cref="SchemaShape"/> of the schema which will be produced by the transformer. | ||
/// Used for schema propagation and verification in a pipeline. | ||
/// </summary> |
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.
/// ? #Closed
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.
Please disregard my comments, apparently it doesn't work for intellisense. dotnet/csharplang#313
In reply to: 253150851 [](ancestors = 253150851)
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.
Yes we were talking about this with senja yesterday! it would be super useful!
In reply to: 253154622 [](ancestors = 253154622,253150851)
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.
@@ -78,8 +78,8 @@ public void TestConvertWorkout() | |||
var data = new[] { new TestClass() { A = 1, B = new int[2] { 1,4 } }, | |||
new TestClass() { A = 2, B = new int[2] { 3,4 } }}; | |||
var dataView = ML.Data.ReadFromEnumerable(data); | |||
var pipe = new TypeConvertingEstimator(Env, columns: new[] {new TypeConvertingTransformer.ColumnInfo("ConvA", DataKind.R4, "A"), | |||
new TypeConvertingTransformer.ColumnInfo("ConvB", DataKind.R4, "B")}); | |||
var pipe = new TypeConvertingEstimator(Env, columns: new[] {new TypeConvertingEstimator.ColumnInfo("ConvA", DataKind.R4, "A"), |
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.
TypeConvertingEstimator [](start = 27, length = 23)
TypeConvertingEstimator [](start = 27, length = 23)
why not ml.Catalog.ConvertType? #Closed
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.
Sorry I don't see what's wrong. In reply to: 459817377 [](ancestors = 459817377) Refers to: src/Microsoft.ML.Data/Transforms/ConversionsExtensionsCatalog.cs:25 in bd98b16. [](commit_id = bd98b16, deletion_comment = False) |
It's a two In reply to: 459884561 [](ancestors = 459884561,459817377) Refers to: src/Microsoft.ML.Data/Transforms/ConversionsExtensionsCatalog.cs:25 in bd98b16. [](commit_id = bd98b16, deletion_comment = False) |
Ah I see! I did not see the rest of the line! :) In reply to: 459885033 [](ancestors = 459885033,459884561,459817377) Refers to: src/Microsoft.ML.Data/Transforms/ConversionsExtensionsCatalog.cs:25 in bd98b16. [](commit_id = bd98b16, deletion_comment = False) |
@@ -312,7 +312,7 @@ public static CommonOutputs.TransformOutput PrepareRegressionLabel(IHostEnvironm | |||
} | |||
} | |||
}; |
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.
don't see this being used . can this be deleted ? #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.
@@ -46,6 +46,9 @@ public sealed class Arguments : TransformInputBase | |||
|
|||
internal static string RegistrationName = "CountFeatureSelectionTransform"; | |||
|
|||
/// <summary> |
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.
move to the corresponding Transformer ? #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.
We are moving them to the estimators right? I think it should stay here
In reply to: 254011201 [](ancestors = 254011201)
@@ -168,37 +171,11 @@ private static VersionInfo GetVersionInfo() | |||
|
|||
private const string RegistrationName = "Convert"; | |||
|
|||
public IReadOnlyCollection<ColumnInfo> Columns => _columns.AsReadOnly(); | |||
public IReadOnlyCollection<TypeConvertingEstimator.ColumnInfo> Columns => _columns.AsReadOnly(); |
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.
Columns [](start = 71, length = 7)
xml #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.
This PR is part of the work outlined in #1798, and focuses on the Convert, DropSlots, CountFeatureSelection, MutualInformationFeatureSelection, FeatureContributionCalculationTransform, PermutationFeatureImportanceTransform, MissingValueDropping, TreeEnsembleFeaturizationTransform transformers/estimators: