Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Do objects outputted by the step method have specific requirements?#80

Answeredbyemuskardin
andreastedile asked this question inQ&A
Discussion options

Input alphabet is a list of any hashable object, most often strings or integers.
What about the objects that are outputted by the step method? Do they just need to implement hash, or perhaps str?

You must be logged in to vote

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 therecould 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 :)

Replies: 1 comment

Comment options

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 therecould 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 :)

You must be logged in to vote
0 replies
Answer selected byemuskardin
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
2 participants
@andreastedile@emuskardin

[8]ページ先頭

©2009-2025 Movatter.jp