Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
io
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bioroboticslab
robofish
io
Commits
1089023c
Commit
1089023c
authored
Feb 21, 2022
by
Andi Gerken
Browse files
Options
Downloads
Patches
Plain Diff
Improved individual_iid individual speed performance
parent
8cf4c862
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/robofish/evaluate/evaluate.py
+8
-6
8 additions, 6 deletions
src/robofish/evaluate/evaluate.py
with
8 additions
and
6 deletions
src/robofish/evaluate/evaluate.py
+
8
−
6
View file @
1089023c
...
@@ -599,7 +599,7 @@ def evaluate_tracks_distance(
...
@@ -599,7 +599,7 @@ def evaluate_tracks_distance(
paths
:
Iterable
[
Union
[
str
,
Path
]],
paths
:
Iterable
[
Union
[
str
,
Path
]],
labels
:
Iterable
[
str
]
=
None
,
labels
:
Iterable
[
str
]
=
None
,
predicate
=
None
,
predicate
=
None
,
max_timesteps
=
1
000
,
max_timesteps
=
4
000
,
):
):
"""
Evaluate the distances of two or more fish on the track.
"""
Evaluate the distances of two or more fish on the track.
...
@@ -623,7 +623,7 @@ def evaluate_tracks(
...
@@ -623,7 +623,7 @@ def evaluate_tracks(
file_settings
=
None
,
file_settings
=
None
,
lw_distances
=
False
,
lw_distances
=
False
,
seed
=
42
,
seed
=
42
,
max_timesteps
=
1
000
,
max_timesteps
=
4
000
,
):
):
"""
Evaluate the track.
"""
Evaluate the track.
...
@@ -676,14 +676,16 @@ def evaluate_tracks(
...
@@ -676,14 +676,16 @@ def evaluate_tracks(
return
fig
return
fig
def
evaluate_individual_speed
(
**
kwargs
):
def
evaluate_individual_speed
(
speeds_turns_from_paths
,
**
kwargs
):
"""
Evaluate the average speeds per individual
"""
"""
Evaluate the average speeds per individual
"""
return
evaluate_individuals
(
mode
=
"
speed
"
,
**
kwargs
)
return
evaluate_individuals
(
speeds_turns_from_paths
=
speeds_turns_from_paths
,
mode
=
"
speed
"
,
**
kwargs
)
def
evaluate_individual_iid
(
**
kwargs
):
def
evaluate_individual_iid
(
poses_from_paths
,
**
kwargs
):
"""
Evaluate the average iid per file
"""
"""
Evaluate the average iid per file
"""
return
evaluate_individuals
(
mode
=
"
iid
"
,
**
kwargs
)
return
evaluate_individuals
(
poses_from_paths
=
poses_from_paths
,
mode
=
"
iid
"
,
**
kwargs
)
def
evaluate_individuals
(
def
evaluate_individuals
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment