question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

predict returned empty results.

See original GitHub issue
predictions = fitted_model.transform(encoded)
predictions.show(1)
+--------------------+--------------+---------+
|            features|        labels|predicted|
+--------------------+--------------+---------+
|(784,[132,133,134...|(10,[1],[1.0])|       []|
+--------------------+--------------+---------+
only showing top 1 row

I got empty predicted, all the source code is here, https://github.com/huseinzol05/Pyspark-ML/blob/master/sparkflow/1.mnist-sparkflow-feedforward.ipynb.

And I use docker to spawn a spark environment, can check here, https://github.com/huseinzol05/Pyspark-ML/blob/master/Dockerfile-cluster

Again, thanks!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
dmmiller612commented, Jan 8, 2019

Added the prediction fix. This will have a breaking change for pyspark users using python 2 (We still support python 2, just a small behavior change). I will update sparkflow to 0.6 in pypi when I get home tonight.

0reactions
dmmiller612commented, Jan 9, 2019

Version 0.6.0 is deployed. I also included a Dockerfile with a Makefile to test the simple-dnn file.

Read more comments on GitHub >

github_iconTop Results From Across the Web

predictions returns empty array: [] #114 - tensorflow/tfx - GitHub
I have implemented a custom example after working trough the taxi example. ... the model is a regression that should result in a...
Read more >
Why is predict_generator is returning an empty array?
I am trying to print the predicted labels of my test data but the predict_generator() function is returning an empty array. My Model:...
Read more >
r - predict.randomForest() returns empty rows beneath correct ...
predict.randomForest() returns empty rows beneath correct data with type="prob" selected · Subscribe to RSS.
Read more >
Model predictions — predict.model_fit • parsnip
Using type = "raw" with predict.model_fit() will return the unadulterated results of the prediction function. For censored regression:.
Read more >
How to use a model to do predictions with Keras - ActiveState
Keras models can be used to detect trends and make predictions, using the model.predict() class and it's variant, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found