File weight_vector.hpp¶
-
class IWeightVector¶
- #include <weight_vector.hpp>
Defines an interface for one-dimensional vectors that provide access to weights.
Subclassed by BitWeightVector, DenseWeightVector< T >, EqualWeightVector
Public Functions
-
inline virtual ~IWeightVector()¶
-
virtual bool hasZeroWeights() const = 0¶
Returns whether the vector contains any zero weights or not.
- Returns:
True, if the vector contains any zero weights, false otherwise
-
virtual std::unique_ptr<IFeatureSubspace> createFeatureSubspace(IFeatureSpace &featureSpace) const = 0¶
Creates and returns a new instance of type
IFeatureSubspace
that uses the weights in this vector for the training examples it includes.- Parameters:
featureSpace – A reference to an object of type
IFeatureSpace
that should be used to create the instance- Returns:
An unique pointer to an object of type
IFeatureSubspace
that has been created
-
inline virtual ~IWeightVector()¶