Showing
1 changed file
with
1 additions
and
0 deletions
... | @@ -105,6 +105,7 @@ if __name__ == "__main__": | ... | @@ -105,6 +105,7 @@ if __name__ == "__main__": |
105 | print("Length sequence_adjust: {}".format(len(sequence_adjust))) | 105 | print("Length sequence_adjust: {}".format(len(sequence_adjust))) |
106 | integer_encoded = integer_encoder.fit_transform(list(sequence_adjust)) | 106 | integer_encoded = integer_encoder.fit_transform(list(sequence_adjust)) |
107 | integer_encoded = np.array(integer_encoded).reshape(-1, 1) | 107 | integer_encoded = np.array(integer_encoded).reshape(-1, 1) |
108 | + print("integer_encoded: {}".format(integer_encoded)) | ||
108 | one_hot_encoded = one_hot_encoder.fit_transform(integer_encoded) | 109 | one_hot_encoded = one_hot_encoder.fit_transform(integer_encoded) |
109 | print(" shape: {}".format(one_hot_encoded.toarray().shape)) | 110 | print(" shape: {}".format(one_hot_encoded.toarray().shape)) |
110 | input_features.append(one_hot_encoded.toarray()) | 111 | input_features.append(one_hot_encoded.toarray()) | ... | ... |
-
Please register or login to post a comment