Comments (3)
It's hard to say. Here are a few things you can check:
- Is
batch_predictions
always an empty array in every iteration of the loop, or maybe only at the last batch? When it's empty, isx_test_batch
non-empty? - What does
all_predictions
contain after each iteration?
It could be an issue with iterating through your data in batches. Maybe there's an empty batch that creates a problem, etc.
from cnn-text-classification-tf.
Thanks for getting back to me!
batch_predictions
is always empty.
x_test_batch
is non-empty for every batch.
all_predictions
is also always empty.
from cnn-text-classification-tf.
If x_test_batch
is non-empty it's very strange that batch_predictions
would be empty and I'm not sure how that could happen. You may need to trace the execution through the graph somehow to figure out where it starts failing...
from cnn-text-classification-tf.
Related Issues (20)
- Why the direction of concatting is `axis 3`?
- Sentence Length in code
- eval.py
- AttributeError: _parse_flags on running eval.py HOT 2
- About code
- Training problem
- Unknown error
- What's the best results on MR data?
- 1 Epoch size? HOT 1
- Model size after training HOT 1
- why training speed is very slow when using a large of training dataset ?
- output/predictions not in train.py
- what should I do if I wanna predict whether a piece of news is true?
- AttributeError: _parse_flags HOT 3
- Vocabulary size
- size of maxpooling HOT 2
- What is the size of embedded_chars_expanded ?
- tf.get_variable and tf.Variable HOT 2
- Please, How to print F1-score and recall etc. HOT 3
- AttributeError: module 'tensorflow_estimator.python.estimator.api._v1.estimator' has no attribute 'preprocessing' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cnn-text-classification-tf.