mlpy.auxiliary.datasets.DataSet.add_field¶
-
DataSet.
add_field
(name, dim, dtype=None, description=None)[source]¶ Add a field with given the specifications.
Parameters: name : str
The name of the field.
dim : int
The dimensions of the field
dtype : dtype
The
numpy.dtype
for the underlyingnumpy.ndarray
.description : str
An optional description of the field.