d3m.container.numpy module

class d3m.container.numpy.ndarray[source]

Bases: numpy.ndarray

Extended numpy.ndarray with the metadata attribute.

Parameters:
  • input_array (Sequence) – Anything array-like to create an instance from. Including lists and standard numpy arrays.
  • metadata (typing.Dict[str, typing.Any]) – Optional initial metadata for the top-level of the array, or top-level metadata to be updated if input_array is another instance of this array class.
  • generate_metadata (bool) – Automatically generate and update the metadata.
  • check (bool) – DEPRECATED: argument ignored.
  • source (primitive or Any) – DEPRECATED: argument ignored.
  • timestamp (datetime) – DEPRECATED: argument ignored.
metadata[source]

Metadata associated with the array.

Type:DataMetadata
class d3m.container.numpy.matrix[source]

Bases: numpy.matrix, d3m.container.numpy.ndarray

Extended numpy.matrix with the metadata attribute.

Parameters:
  • data (Union[Sequence, str]) – Anything array-like to create an instance from. Including lists and standard numpy arrays and matrices.
  • metadata (typing.Dict[str, typing.Any]) – Optional initial metadata for the top-level of the matrix, or top-level metadata to be updated if data is another instance of this matrix class.
  • dtype (Union[dtype, str]) – Data type of the output matrix.
  • copy (bool) – If data is already an ndarray, then this flag determines whether the data is copied (the default), or whether a view is constructed.
  • source (primitive or Any) – DEPRECATED: argument ignored.
  • timestamp (datetime) – DEPRECATED: argument ignored.
metadata[source]

Metadata associated with the matrix.

Type:DataMetadata