-
Notifications
You must be signed in to change notification settings - Fork 1.9k
how to load 25k features using TextLoader? #420
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
Great question, Vivek. public class MyData
{
[Column(ordinal: "0")]
public string Label;
[Column(ordinal: "1,2,10-1000")]
[VectorType(992)]
public float[] NumericFeatures;
[Column(ordinal: "3-9,2000-3000")]
[VectorType(1007)]
public string[] CategoricalFeatures;
// You can add accessors to features of interest.
public float? NumericFeature0 => NumericFeatures?[0];
}
…
pipeline.Add(new TextLoader(dataPath).CreateFrom<MyData>(useHeader: false, allowQuotedStrings: true, supportSparse: false)); |
This works perfectly. Thanks. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
System information
.NET Core SDK:
Version: 2.1.301
Commit: 59524873d6
Runtime Environment:
OS Name: ubuntu
OS Version: 16.04
Issue
Loaded a subset of columns of my data using one of the examples (Iris data). I have a total of 25k features in the CSV file. I don't want to list all 25k of them in
public class IrisData
. Is there a better way to load this dataset?The text was updated successfully, but these errors were encountered: