-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Remove ISchema in TextLoader.cs and TextLoaderCursor.cs #2140
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
{ | ||
/// <summary> | ||
/// <see cref="Infos"/>[i] stores the i-th column's name type loaded from the input text file. |
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.
name type [](start = 64, length = 9)
Not a big deal perhaps since this is not a public comment, but what is a "name type"? #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.
// Empty iff either header+ not set in args, or if no header present, or upon load | ||
// there was no header stored in the model. | ||
/// <summary> | ||
/// Empty iff either header+ not set in args, or if no header present, or upon load |
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.
either header+ not set in args [](start = 26, length = 30)
I might prefer something like an actual reference using a <see
tag to the Arguments.HasHeader
field, given that we're now making this an XML comment, and we're working to de-emphasize the role of the command line in our code documentation. Not a big deal though. #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.
Now we have
/// <summary>
/// Empty if <see cref="ArgumentsCore.HasHeader"/> is false, no header presents, or upon load
/// there was no header stored in the model.
/// </summary>
In reply to: 247682367 [](ancestors = 247682367)
The reason why we had things like Refers to: src/Microsoft.ML.Data/DataLoadSave/Text/TextLoader.cs:449 in f690af1. [](commit_id = f690af1, 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.
Looks fine @wschin , my major comment is just wondering if we can make the TextLoader.ColInfo
more efficient since much of its information is now redundant, with your introduction of Schema
instead of ISchema
. Still a definite improvement, and what I am suggesting would not be user facing, just an efficiency/code hygiene thing.
@TomFinley, Thank you! Let me open an issue for cleaning |
// Empty iff either header+ not set in args, or if no header present, or upon load | ||
// there was no header stored in the model. | ||
/// <summary> | ||
/// Empty if <see cref="ArgumentsCore.HasHeader"/> is false, no header presents, or upon load |
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.
false [](start = 66, length = 5)
#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.
As title. This might be the tail of #1501.