mlpy.knowledgerep.cbr.features.FeatureFactory.create¶
-
static
FeatureFactory.
create
(_type, name, value, **kwargs)[source]¶ Create a feature of the given type.
Parameters: _type: str
The feature type. Valid feature types are:
- bool
The feature values are boolean types (
BoolFeature
).- string
The feature values are of types sting (
StringFeature
).- int
The feature values are of type integer (
IntFeature
).- float
The feature values are of type float (
FloatFeature
).
kwargs : dict, optional
Non-positional arguments to pass to the class of the given type for initialization.
Returns: Feature :
A feature instance of the given type.