Skip to content

Conversation

@yaeldekel
Copy link

@yaeldekel yaeldekel commented Mar 22, 2019

Fixes #3051.

Edit: This also fixes #2037.

@yaeldekel yaeldekel requested a review from artidoro March 23, 2019 01:27
@codecov
Copy link

codecov bot commented Mar 23, 2019

Codecov Report

Merging #3071 into master will decrease coverage by <.01%.
The diff coverage is 75%.

@@            Coverage Diff             @@
##           master    #3071      +/-   ##
==========================================
- Coverage   72.53%   72.53%   -0.01%     
==========================================
  Files         806      806              
  Lines      144282   144304      +22     
  Branches    16183    16188       +5     
==========================================
+ Hits       104661   104674      +13     
- Misses      35217    35223       +6     
- Partials     4404     4407       +3
Flag Coverage Δ
#Debug 72.53% <75%> (-0.01%) ⬇️
#production 68.16% <50%> (-0.01%) ⬇️
#test 88.76% <100%> (ø) ⬆️
Impacted Files Coverage Δ
test/Microsoft.ML.Tests/TextLoaderTests.cs 99.1% <100%> (+0.17%) ⬆️
.../Microsoft.ML.Data/DataLoadSave/Text/TextLoader.cs 81.79% <50%> (-0.11%) ⬇️
src/Microsoft.ML.Data/TrainCatalog.cs 82.91% <0%> (-1.28%) ⬇️
...soft.ML.Data/DataLoadSave/DataOperationsCatalog.cs 72.92% <0%> (-0.32%) ⬇️
...ML.Transforms/Text/StopWordsRemovingTransformer.cs 86.1% <0%> (-0.16%) ⬇️
src/Microsoft.ML.Recommender/RecommenderCatalog.cs 70.83% <0%> (ø) ⬆️
...oft.ML.StandardTrainers/StandardTrainersCatalog.cs 89.07% <0%> (ø) ⬆️
test/Microsoft.ML.Functional.Tests/Validation.cs 100% <0%> (ø) ⬆️
src/Microsoft.ML.Maml/MAML.cs 26.21% <0%> (+1.45%) ⬆️


host.Assert(mappingAttr != null, $"Field or property {memberInfo.Name} is missing the {nameof(LoadColumnAttribute)} attribute");
if (mappingAttr == null)
throw host.Except($"{(memberInfo is FieldInfo ? "Field" : "Property")} '{memberInfo.Name}' is missing the {nameof(LoadColumnAttribute)} attribute");
Copy link
Contributor

Choose a reason for hiding this comment

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

memberInfo.Name [](start = 93, length = 15)

Just a note, while we often use ' to indicate quoting of things that can contain potentially confusing items like spaces, since C# identifiers cannot contain spaces I view their presence as less essential than I would in, say, a column name or some other such entity. (Not a big deal at all, just registering a random thought since I am half allergic to letting PRs pass with no comments whatsoever. :D )

Copy link
Contributor

@TomFinley TomFinley left a comment

Choose a reason for hiding this comment

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

Thank you @yaeldekel !!

@TomFinley TomFinley merged commit 909721e into dotnet:master Mar 24, 2019
@ghost ghost locked as resolved and limited conversation to collaborators Mar 23, 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.

LoadFromTextFile invalid model throw NullReferenceException Need better exception for TextLoader when column attribute is not present

4 participants