Do objects outputted by the step method have specific requirements? #80
-
|
Input alphabet is a list of any hashable object, most often strings or integers. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
This is a bit undefined. It can be anything. I did many deterministic learning setups with unhashable outputs, and it did not break anything. For stochastic learning there could be a problem, but I am not 100% certain. Do not have time right now to check. Personally, I prefer strings, as they are "symbolic", that is, you can assign any meaning to them, and when visualized or analyzed it makes it prettier than having object signatures or something too verbose or non descriptive. If you have a specific use-case in mind, we can also discuss it if you outline it here :) |
Beta Was this translation helpful? Give feedback.
This is a bit undefined. It can be anything. I did many deterministic learning setups with unhashable outputs, and it did not break anything. For stochastic learning there could be a problem, but I am not 100% certain. Do not have time right now to check.
Personally, I prefer strings, as they are "symbolic", that is, you can assign any meaning to them, and when visualized or analyzed it makes it prettier than having object signatures or something too verbose or non descriptive.
If you have a specific use-case in mind, we can also discuss it if you outline it here :)