-
Notifications
You must be signed in to change notification settings - Fork 16
Partial enabling of transition types for different label scorers #148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
SimBe195
wants to merge
22
commits into
master
Choose a base branch
from
disabled-transition-types
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
7502b82
Add TransitionLabelScorer
SimBe195 7430001
Rewrite docstring
SimBe195 2a6272e
Clean up includes
SimBe195 7e325e1
Rewrite docstring again
SimBe195 a276136
Merge branch 'master' into tdp_label_scorer
SimBe195 d2d78fe
Refactor params to string list with compile time check
SimBe195 303fa46
Remove transitionTypeToIndex function and revert associated changes
SimBe195 ddd75c7
Revert unnecessary static_cast
SimBe195 b856c1e
Change std=c++17 to c++20
SimBe195 70699c0
Merge remote-tracking branch 'origin/version-bump' into tdp_label_scorer
SimBe195 5b89d0f
Move transition type string array to LabelScorer.hh
SimBe195 8b27b19
Add parameter for ignoring transition types in LabelScorer
SimBe195 1e877c7
Add missing parenthesis in description
SimBe195 3dcadee
Add some docstrings for the `Internal` functions
SimBe195 b9d919b
Move transitionTypeArray to protected space
SimBe195 23df463
Merge branch 'tdp_label_scorer' into disabled-transition-types
SimBe195 a437c04
Merge branch 'master' into disabled-transition-types
curufinwe 8337fea
Fix order in .cc files
curufinwe 0cfdf3d
Add `set` function to Core::CollapsedVector
SimBe195 85522b5
Apply suggestions from code review
SimBe195 4098ad4
Fix compilation
SimBe195 0d34085
Introduce configurable presets of enabled transition types + extras
SimBe195 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -46,9 +46,6 @@ public: | |
| // Get start context from decoder component | ||
| ScoringContextRef getInitialScoringContext() override; | ||
|
|
||
| // Get extended context from decoder component | ||
| ScoringContextRef extendedScoringContext(Request const& request) override; | ||
|
|
||
| // Cleanup decoder component. Encoder is "self-cleaning" already in that it only stores outputs until they are | ||
| // retrieved. | ||
| void cleanupCaches(Core::CollapsedVector<ScoringContextRef> const& activeContexts) override; | ||
|
|
@@ -60,11 +57,20 @@ public: | |
| // Same as `addInput` but adds features for multiple timesteps at once | ||
| void addInputs(DataView const& input, size_t nTimesteps) override; | ||
|
|
||
| protected: | ||
| // Get extended context from decoder component | ||
| ScoringContextRef extendedScoringContextInternal(Request const& request) override; | ||
|
|
||
| // Run request through decoder component | ||
| std::optional<LabelScorer::ScoreWithTime> computeScoreWithTime(LabelScorer::Request const& request) override; | ||
| std::optional<LabelScorer::ScoreWithTime> computeScoreWithTimeInternal(LabelScorer::Request const& request) override; | ||
|
|
||
| // Run requests through decoder component | ||
| std::optional<LabelScorer::ScoresWithTimes> computeScoresWithTimes(std::vector<LabelScorer::Request> const& requests) override; | ||
| std::optional<LabelScorer::ScoresWithTimes> computeScoresWithTimesInternal(std::vector<LabelScorer::Request> const& requests) override; | ||
|
|
||
| // Request filtering should happen in the decoder, this one should let everything through | ||
| virtual TransitionPresetType defaultPreset() const override { | ||
| return TransitionPresetType::ALL; | ||
| } | ||
|
Comment on lines
+71
to
+73
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. see others |
||
|
|
||
| private: | ||
| Core::Ref<Encoder> encoder_; | ||
|
|
||
This file contains hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see others