Base Reward class
Bases: SynalinksSaveable
Reward base class.
This is the class to subclass in order to create new custom rewards.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
Optional name for the reward instance. |
None
|
reduction
|
str
|
Optional. One of |
'mean'
|
in_mask
|
list
|
Optional. List of exact field names to keep before computing the reward. |
None
|
out_mask
|
list
|
Optional. List of exact field names to drop before computing the reward. |
None
|
in_mask_pattern
|
str
|
Optional. Regex pattern; fields whose names
match are kept (combined with |
None
|
out_mask_pattern
|
str
|
Optional. Regex pattern; fields whose names
match are dropped (combined with |
None
|
To be implemented by subclasses:
call(): Contains the logic for eval calculation usingy_true,y_pred.