jonmanrique-2242 avatar image
0 Votes"
jonmanrique-2242 asked JiachenLiMFST-9349 edited

Attempting to Create a model with unknown columns count.

I would like to create a model in with unknown count of columns.

I load the data from a text file. The first column will always be the result label. After that, it can be 2, 3 or even 20 columns with custom names(Header).

I tried creating a class like this

 public class NewData
         public float Label { get; set; }
         [LoadColumn(1, 100)]
         public float[] Features { get; set; }

I wrote 100 because it will never be more than 100 columns.
After that, how could I create the pipeline and the model?
Would I need to concatenate all the columns inside Features?


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

0 Answers