dataviews

microscopes.common.recarray.dataview

Dataviews for data structured in records

These represent heterogenous data type feature vectors, and are used as inputs to the mixturemodel model.

class microscopes.common.recarray.dataview.numpy_dataview

A dataview around a numpy recarray. Supports masked arrays.

Parameters:npd : array
digest(self, h)
next(self)
size(self)

microscopes.common.relation.dataview

Dataviews for relation (tensor) data

These are the data inputs for the irm model.

class 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)
class 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)
Datamicroscopes is developed by Qadium, with funding from the DARPA XDATA program. Copyright Qadium 2015.