From d613369048eae2508a60a86b50c366db632eca76 Mon Sep 17 00:00:00 2001 From: Robert Kwiecinski Date: Wed, 31 Mar 2021 23:42:45 +0200 Subject: [PATCH] small improvement --- P1. Baseline.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/P1. Baseline.ipynb b/P1. Baseline.ipynb index 58d6b8a..793ceb5 100644 --- a/P1. Baseline.ipynb +++ b/P1. Baseline.ipynb @@ -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,