-
Notifications
You must be signed in to change notification settings - Fork 1
Convert Sample Space dict to Named Tuples #21
Copy link
Copy link
Open
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels