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 way the sample space is coded awkwardly encodes object like data as a string.
Here's what it looks like:
self.sample_space = {
'Walk: Base on balls': base_on_balls / outcomes,
'Walk: Hit by pitch': stats['hbp'] / outcomes,
'Walk: Intentional Walk': stats["ibb"] / outcomes,
'Out: SO': stats["so"] / outcomes,
This needs to be coverted to named tuples. Something like ("Result Type", "Result Details", "Probability") and the code that uses it needs to be adjusted.
The text was updated successfully, but these errors were encountered:
adamzev
changed the title
Sample Space object encodes data as string
Convert Sample Space dict to Named Tuples
Jun 16, 2018
The way the sample space is coded awkwardly encodes object like data as a string.
Here's what it looks like:
This needs to be coverted to named tuples. Something like ("Result Type", "Result Details", "Probability") and the code that uses it needs to be adjusted.
The text was updated successfully, but these errors were encountered: