Welcome to MLink Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
199 views
in Technique[技术] by (71.8m points)

python - How to load tensorflow dataset?

I am trying to follow the Tensorflow text classification example Here. I want to save the tokenized dataset by using tf.data.experimental.save(). However, I can't load it properly. What should I do to load it properly? The offical Colab link is Here. enter image description here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Split the batch labelled dataset as 2 pieces

  1. Training Dataset
  2. Training Dataset Label

and fit with model.fit(x=training_dataset, y=training_dataset_label)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to MLink Developer Q&A Community for programmer and developer-Open, Learning and Share
...