Get the input value present at position index
Get the input value present at position index
the index of the value
a Double representing the feature value
Get the output value present at position index
Get the output value present at position index
the index of the value
a Double representing the value
Add a feature to the instance in the example
Add a feature to the instance in the example
the index at which the value is added
the feature value which is added up
an Example containing an Instance with the new features
Add a feature to the instance in the example
Add a feature to the instance in the example
the index at which the value is added
the label value which is added up
an Example containing an Instance with the new labels
Set the weight of the Example
Set the weight of the Example
the weight value
an Example containing the new weight
An Example is a wrapper on top of the Instance class hierarchy. It contains a reference to an input Instance and an output Instance, and provides setters and getters for the features and labels. This is done so that the DStream accepts any type of Instance in the parameters, and that the same DStream can be allowed to contain multiple types of Instance.