We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f925a94 commit e5bb624Copy full SHA for e5bb624
1 file changed
src/diffupy/process_input.py
@@ -16,14 +16,17 @@ def generate_categoric_input_vector_from_labels(
16
if isinstance(col_label, str):
17
col_label = [col_label]
18
19
- input_mat = Matrix(rows_labels=list(rows_labeled),
20
- cols_labels=col_label,
21
- init_value=1)
+ input_mat = Matrix(
+ rows_labels=list(rows_labeled),
+ cols_labels=col_label,
22
+ init_value=1)
23
if rows_unlabeled:
- input_mat.row_bind(matrix=Matrix(rows_labels=list(rows_unlabeled),
24
25
- init_value=0)
26
- )
+ input_mat.row_bind(
+ matrix=Matrix(
+ rows_labels=list(rows_unlabeled),
27
28
+ init_value=0)
29
+ )
30
31
return input_mat.match_missing_rows(background_mat.rows_labels, missing_value).match_rows(background_mat)
32
0 commit comments