You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@madlib.apache.org by GitBox <gi...@apache.org> on 2020/08/27 18:30:18 UTC

[GitHub] [madlib] fmcquillan99 commented on pull request #514: DL: Improve the predict output with prob

fmcquillan99 commented on pull request #514:
URL: https://github.com/apache/madlib/pull/514#issuecomment-682118085


   updated user doc as:
   
   ```
   pred_type (optional)
   TEXT, default: 'prob'. Type of output desired, where 'prob' gives predictions for all classes and their associated 
   probabilities.  To see only the top probability use 'response'.  Alternatively, you can specify a filter for top n or 
   minimum probability.  For top n, use  an INTEGER > 0 to indicate the top ranked probabilities to output.  
   For minimum probability, specify a REAL value between 0.0 and 1.0 for the cutoff.
   ```
   
   'prob' (default). -- used to be 'all' please change back to 'prob'
   
   'response' -- don't show rank col
   
   updated user doc
   
   INTEGER 1, 2, 3... yes show rank col
   
   DOUBLE between 0.0 and 1.0 yes show rank col
   
   differentiate between 1.0 and 1
   
   suggested error message
   
   plpy.Error: madlib_keras_predict: Invalid value for pred_type param (azdadg). Must be integer>0, double precision between 0.0 and 1.0, 'response' or 'prob'. (plpython.c:5038)


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org