comparison PDAUG_Word_Vector_Descriptor/PDAUG_Word_Vector_Descriptor.py @ 8:1d815d386bd0 draft

"planemo upload for repository https://github.com/jaidevjoshi83/pdaug commit d396d7ff89705cc0dd626ed32c45a9f4029b1b05"
author jay
date Mon, 10 Jan 2022 04:43:57 +0000
parents fbd01647d7e6
children
comparison
equal deleted inserted replaced
7:9e88a47cf1aa 8:1d815d386bd0
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"])