A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://glue-core.readthedocs.io/en/latest/api/glue.core.subset.MaskSubsetState.html below:

MaskSubsetState — Glue documentation

MaskSubsetState#
class glue.core.subset.MaskSubsetState(mask, cids)[source]#

Bases: SubsetState

A subset defined by a boolean mask.

Parameters:
maskndarray

The boolean mask to apply to the data.

cidsiterable of ComponentID

The component IDs along which the mask applies.

Attributes Summary

Methods Summary

Attributes Documentation

attributes[source]#
cids[source]#

The component IDs along which the mask applies.

mask[source]#

The boolean mask to apply to the data.

Methods Documentation

copy()[source]#

Return a copy of the subset state.

to_mask(data, view=None)[source]#

Compute the mask for this subset state.

Parameters:
dataData

The dataset to compute the mask for.

view

Any object that returns a valid view for a Numpy array.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4