Mercurial > repos > jay > pdaug_peptide_data_access
comparison PDAUG_Word_Vector_Descriptor/PDAUG_Word_Vector_Descriptor.py @ 8:b67c1e1608c5 draft
"planemo upload for repository https://github.com/jaidevjoshi83/pdaug commit d396d7ff89705cc0dd626ed32c45a9f4029b1b05"
| author | jay |
|---|---|
| date | Mon, 10 Jan 2022 04:28:34 +0000 |
| parents | 6c12ca9f5d88 |
| children |
comparison
equal
deleted
inserted
replaced
| 7:24184ea66557 | 8:b67c1e1608c5 |
|---|---|
| 44 | 44 |
| 45 temp_word = temp_word | 45 temp_word = temp_word |
| 46 | 46 |
| 47 | 47 |
| 48 clm = [x for x in range(0,temp_word.shape[1])] | 48 clm = [x for x in range(0,temp_word.shape[1])] |
| 49 y_temp_word = np.vstack((np.ones((int(args.positive), 1)), np.zeros((int(args.negative),1)))) | 49 y_temp_word = np.vstack((np.ones((int(args.positive), 1),dtype=int), np.zeros((int(args.negative),1),dtype=int))) |
| 50 | 50 |
| 51 c, r = y_temp_word.shape | 51 c, r = y_temp_word.shape |
| 52 y_temp_word = y_temp_word.reshape(c,) | 52 y_temp_word = y_temp_word.reshape(c,) |
| 53 | 53 |
| 54 class_label = pd.DataFrame(y_temp_word, columns=["Class_label"]) | 54 class_label = pd.DataFrame(y_temp_word, columns=["Class_label"]) |
