Showing
1 changed file
with
1 additions
and
0 deletions
... | @@ -106,6 +106,7 @@ if __name__ == "__main__": | ... | @@ -106,6 +106,7 @@ if __name__ == "__main__": |
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 | print("integer_encoded: {}".format(integer_encoded)) |
109 | + print("classes: {}".format(integer_encoded.classes_)) | ||
109 | one_hot_encoded = one_hot_encoder.fit_transform(integer_encoded) | 110 | one_hot_encoded = one_hot_encoder.fit_transform(integer_encoded) |
110 | print(" shape: {}".format(one_hot_encoded.toarray().shape)) | 111 | print(" shape: {}".format(one_hot_encoded.toarray().shape)) |
111 | input_features.append(one_hot_encoded.toarray()) | 112 | input_features.append(one_hot_encoded.toarray()) | ... | ... |
-
Please register or login to post a comment