Skip to content

Conversation

@harishsk
Copy link
Contributor

This work required the use of ConstantOfShape operator from onnx which has an attribute of type Tensor. Most operators have attributes that are of primitive types (int, float, etc). ML.NET Onnx converter coded didnt have support to add attributes of tensor types.
Therefore this PR includes the support for adding tensor type attributes along with the necessary code and tests for SlotsDroppingTransformer.

@harishsk harishsk requested a review from a team as a code owner December 10, 2019 23:28
…ssifiers and calibrators due to problems resulting from upgrading the op set version to 11
@codecov
Copy link

codecov bot commented Dec 17, 2019

Codecov Report

Merging #4562 into master will increase coverage by <.01%.
The diff coverage is 88.99%.

@@            Coverage Diff             @@
##           master    #4562      +/-   ##
==========================================
+ Coverage   75.64%   75.65%   +<.01%     
==========================================
  Files         938      938              
  Lines      168618   168715      +97     
  Branches    18208    18219      +11     
==========================================
+ Hits       127554   127642      +88     
- Misses      36037    36046       +9     
  Partials     5027     5027
Flag Coverage Δ
#Debug 75.65% <88.99%> (ø) ⬆️
#production 71.26% <82.6%> (-0.01%) ⬇️
#test 90.49% <100%> (+0.06%) ⬆️
Impacted Files Coverage Δ
...c/Microsoft.ML.Transforms/CountFeatureSelection.cs 92.48% <ø> (ø) ⬆️
...ML.Transforms/MutualInformationFeatureSelection.cs 79.31% <ø> (+0.72%) ⬆️
test/Microsoft.ML.Tests/OnnxConversionTest.cs 97.66% <100%> (+2.11%) ⬆️
...rd/MulticlassClassification/OneVersusAllTrainer.cs 81.8% <100%> (ø) ⬆️
...LogisticRegression/MulticlassLogisticRegression.cs 69.27% <100%> (+0.28%) ⬆️
src/Microsoft.ML.Data/Prediction/Calibrator.cs 80.31% <100%> (+0.03%) ⬆️
src/Microsoft.ML.OnnxConverter/OnnxUtils.cs 88.03% <100%> (ø) ⬆️
src/Microsoft.ML.Data/Utilities/SlotDropper.cs 96.5% <60%> (-2.75%) ⬇️
...oft.ML.Data/Transforms/SlotsDroppingTransformer.cs 72.16% <80.48%> (+0.71%) ⬆️
src/Microsoft.ML.Core/Data/ProgressReporter.cs 70.95% <0%> (-6.99%) ⬇️
... and 9 more

new CountFeatureSelectingEstimator.ColumnOptions("FeatureSelectDouble", "VectorDouble", count: 1),
new CountFeatureSelectingEstimator.ColumnOptions("ScalFeatureSelectMissing690", "ScalarFloat", count: 690),
new CountFeatureSelectingEstimator.ColumnOptions("ScalFeatureSelectMissing100", "ScalarFloat", count: 100),
new CountFeatureSelectingEstimator.ColumnOptions("VecFeatureSelectMissing690", "VectorDouble", count: 690),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VecFeatureSelectMissing690 [](start = 66, length = 26)

Why such strange names?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah sorry you created these test columns


In reply to: 363882851 [](ancestors = 363882851)

Copy link
Member

@ganik ganik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@harishsk harishsk merged commit 5bba7ed into dotnet:master Jan 7, 2020
@harishsk harishsk deleted the slotsdropper branch April 21, 2020 23:57
@ghost ghost locked as resolved and limited conversation to collaborators Mar 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants