Dataviews for data structured in records
These represent heterogenous data type feature vectors,
and are used as inputs to the mixturemodel
model.
Dataviews for relation (tensor) data
These are the data inputs for the irm
model.
microscopes.common.relation.dataview.
numpy_dataview
¶A numpy.ndarray
dataview.
Parameters: | npd : array |
---|
Examples
>>> Y = np.array([[1, 2], [3, 4]])
>>> view = numpy_dataview(Y)
>>> print view.shape()
(2, 2)
digest
(self, h)¶shape
(self)¶toarray
(self)¶microscopes.common.relation.dataview.
sparse_2d_dataview
¶A scipy.sparse
dataview
Parameters: | rep : a scipy.sparse matrix |
---|
Examples
>>> Y = scipy.sparse.coo_matrix((3, 4))
>>> view = sparse_2d_dataview(Y)
>>> print view.shape()
(3, 4)
digest
(self, h)¶shape
(self)¶tocoo
(self)¶tocsc
(self)¶tocsr
(self)¶