small improvement
This commit is contained in:
parent
d560d04146
commit
d613369048
@ -809,7 +809,7 @@
|
||||
" \n",
|
||||
" max_row_mean=np.max(row_means)\n",
|
||||
" row_means[row_means==0]=max_row_mean+1\n",
|
||||
" to_subtract_rows=sparse.diags(row_means)*(result>0)\n",
|
||||
" to_subtract_rows=sparse.diags(row_means)*(result.power(0))\n",
|
||||
" to_subtract_rows.sort_indices() # needed to have valid .data\n",
|
||||
" \n",
|
||||
" subtract=to_subtract_rows.data\n",
|
||||
@ -1245,7 +1245,7 @@
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.6.9"
|
||||
"version": "3.8.5"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
|
Loading…
Reference in New Issue
Block a user