predict returned empty results.
See original GitHub issuepredictions = 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:
- Created 5 years ago
- Comments:8 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
Version 0.6.0 is deployed. I also included a Dockerfile with a Makefile to test the simple-dnn file.