-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
questionFurther information is requestedFurther information is requested
Description
The VectorType
attribute can be added to an array-valued field when the length of the array is known at compile time, e.g.,
public class Data
{
[ColumnName("Features")]
[VectorType(2)]
public float[] Features;
[ColumnName("Label")]
public bool Label;
}
However, what if the length of the array is only known at run time?
For example, given IEnumerable<Data> data
where the length of the Features
array is given by int numFeatures
, I need to be able to pass numFeatures
to CollectionDataSource.Create(data)
somehow, and remove the static 2
argument to the VectorType
attribute on the Features
field.
baruchiro and lionelquirynen
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested