用法:
asscipy()
返回一個
scipy.sparse.csr.csr_matrix
對象,其值從此數組複製例子:
>>> x = mx.nd.sparse.zeros('csr', (2,3)) >>> y = x.asscipy() >>> type(y) <type 'scipy.sparse.csr.csr_matrix'> >>> y <2x3 sparse matrix of type '<type 'numpy.float32'>' with 0 stored elements in Compressed Sparse Row format>
相關用法
- Python mxnet.ndarray.sparse.CSRNDArray用法及代碼示例
- Python mxnet.ndarray.sparse.trunc用法及代碼示例
- Python mxnet.ndarray.sparse.row_sparse_array用法及代碼示例
- Python mxnet.ndarray.sparse.broadcast_mul用法及代碼示例
- Python mxnet.ndarray.sparse.rsqrt用法及代碼示例
- Python mxnet.ndarray.sparse.sgd_update用法及代碼示例
- Python mxnet.ndarray.sparse.broadcast_plus用法及代碼示例
- Python mxnet.ndarray.sparse.rint用法及代碼示例
- Python mxnet.ndarray.sparse.RowSparseNDArray用法及代碼示例
- Python mxnet.ndarray.sparse.sign用法及代碼示例
- Python mxnet.ndarray.sparse.concat用法及代碼示例
- Python mxnet.ndarray.sparse.make_loss用法及代碼示例
- Python mxnet.ndarray.sparse.adagrad_update用法及代碼示例
- Python mxnet.ndarray.sparse.exp用法及代碼示例
- Python mxnet.ndarray.sparse.square用法及代碼示例
- Python mxnet.ndarray.sparse.clip用法及代碼示例
- Python mxnet.ndarray.sparse.retain用法及代碼示例
- Python mxnet.ndarray.sparse.round用法及代碼示例
- Python mxnet.ndarray.sparse.zeros_like用法及代碼示例
- Python mxnet.ndarray.sparse.Embedding用法及代碼示例
注:本文由純淨天空篩選整理自apache.org大神的英文原創作品 mxnet.ndarray.sparse.CSRNDArray.asscipy。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。