Parameter.row_sparse_data

Parameter.row_sparse_data(self, row_id)

Returns a copy of the ‘row_sparse’ parameter on the same context as row_id’s. The copy only retains rows whose ids occur in provided row ids. The parameter must have been initialized on this context before.

Parameters:
row_id: NDArray

Row ids to retain for the ‘row_sparse’ parameter.

Returns:
NDArray on row_id’s context