Skip to content

Commit d50ad59

Browse files
author
nyxflower
committed
Update data.ipynb
1 parent 2c01c04 commit d50ad59

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

data.ipynb

+13-4
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@
693693
},
694694
"outputs": [],
695695
"source": [
696-
"import decagon.utility.preprocessing as preprocessing"
696+
"from data.utils import sparse_to_tuple"
697697
]
698698
},
699699
{
@@ -707,7 +707,7 @@
707707
"gene_feat = sp.identity(num_gene)\n",
708708
"\n",
709709
"gene_nonzero_feat, gene_num_feat = gene_feat.shape\n",
710-
"gene_feat = preprocessing.sparse_to_tuple(gene_feat.tocoo())"
710+
"gene_feat = sparse_to_tuple(gene_feat.tocoo())"
711711
]
712712
},
713713
{
@@ -739,7 +739,7 @@
739739
"drug_feat_sparse = sp.csr_matrix(([1] * array_length, (r, c)), shape=(num_drug, num_drug + num_drug_additional_feature))\n",
740740
"\n",
741741
"drug_nonzero_feat, drug_num_feat = drug_feat_sparse.shape[1], np.count_nonzero(drug_feat_sparse.sum(axis=0))\n",
742-
"drug_feat = preprocessing.sparse_to_tuple(drug_feat_sparse.tocoo())\n"
742+
"drug_feat = sparse_to_tuple(drug_feat_sparse.tocoo())\n"
743743
]
744744
},
745745
{
@@ -986,8 +986,17 @@
986986
"nbconvert_exporter": "python",
987987
"pygments_lexer": "ipython3",
988988
"version": "3.6.8"
989+
},
990+
"pycharm": {
991+
"stem_cell": {
992+
"cell_type": "raw",
993+
"source": [],
994+
"metadata": {
995+
"collapsed": false
996+
}
997+
}
989998
}
990999
},
9911000
"nbformat": 4,
9921001
"nbformat_minor": 1
993-
}
1002+
}

0 commit comments

Comments
 (0)