Class VectorSet

  • All Implemented Interfaces:
    java.lang.Iterable<VectorExample>

    public final class VectorSet
    extends RLinkDataSet<VectorExample>
    A container for storing a set of VectorExample training examples. Each example contains a feature vector and a label.
    • Constructor Detail

      • VectorSet

        public VectorSet​(int nFeatures)
        Creates empty dataset.
        Parameters:
        nFeatures - - number of model features in each example of this dataset
      • VectorSet

        public VectorSet​(int nFeatures,
                         int initialCapacity)
        Creates empty dataset. Use when the number of examples that will be added is already known.
        Parameters:
        nFeatures - - number of model features in each example of this dataset
        initialCapacity - - number of examples that will be stored in this dataset