You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The API responded back with the same predicted_scores no mater what values I set in the record.
The fix was to convert the boolean string values from "true" or "false" to "1" or "0".
It would be great to see support for native ruby booleans (true and false). At the very least, the SDK should be able to convert "true" into "1" itself, or throw a validation error.
Sorry for the confusion. The SDK expects the record to be a hash of string keys and string values. This is based on the expected values of the service. It could be possible to provide a client-side conversion of booleans to their appropriate string representation.
I have a few boolean variables in my binary model. I was doing:
The API responded back with the same
predicted_scores
no mater what values I set in therecord
.The fix was to convert the boolean string values from "true" or "false" to "1" or "0".
It would be great to see support for native ruby booleans (
true
andfalse
). At the very least, the SDK should be able to convert"true"
into"1"
itself, or throw a validation error.related AWS forum thread
The text was updated successfully, but these errors were encountered: