11/8/2023 0 Comments Install prettytable for macX_train, X_test, Y_train, Y_test = train_test_split(X, Y, test_size = 0.1, random_state = 42) Y = pd.get_dummies(data=df.categoria).values #Uma vgez, e a lista STR é convertida em lista I can read the dataset(like the picture, using pandas), but cant make this turns into a tensor, tried lots of different ways to make the list to tensor, or array, matrix., but none worked.ĭo you have some idea how can I change my csv reading to make the data fit into the tensodflow?įrom sklearn.model_selection import train_test_splitįrom sklearn.preprocessing import StandardScalerįrom import Tokenizerįrom import pad_sequencesĪrg = tf.convert_to_tensor(arg, dtype=tf.float32) ![]() I really need your help, I have been trying to figure it out but still no way out of the problem.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |