-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generalize loss calculations (2 -- working)
- Convert `AbstractTaskTrialSpec` to `TaskTrialSpec`, and remove the existing subclasses like `DelayedReachTrialSpec`. - Remove references to `trial_specs.goal` from `feedbax.plot` and `feedbax.plotly`. - Add default spec to `TargetSpecLoss`, so that loss terms may either be static (e.g. penalize non-zero states) without any info provided by `trial_specs.targets`, OR have data provided and vary trial-by-trial (e.g. penalize distance from this trial's goal). - Rename `TargetSpecLoss` to `TargetStateLoss`. - Switch `WhereDict` to use `OrderedDict` tree flatten, which it should have used in the first place. - Draft docstring for `TargetStateLoss`. - Debug `TargetStateLoss` using example notebook 1. Breaks the old loss classes like `EffectorPositionLoss`, since `target` is no longer a field of `TaskTrialSpec`. However, I have not removed/replaced these classes yet.
- Loading branch information
Showing
11 changed files
with
358 additions
and
221 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.