Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TaggingBackends
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Nyx
TaggingBackends
Commits
3ffceb1a
Commit
3ffceb1a
authored
1 year ago
by
François LAURENT
Browse files
Options
Downloads
Patches
Plain Diff
support for label regex
parent
76a04751
No related branches found
No related tags found
3 merge requests
!9
Set of commits to be tagged 0.16
,
!7
Save larva_dataset file along with model files
,
!6
sample_size argument and check_larva_dataset_hdf5 function
Pipeline
#111658
passed
1 year ago
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/LarvaDatasets.jl
+3
-0
3 additions, 0 deletions
src/LarvaDatasets.jl
with
3 additions
and
0 deletions
src/LarvaDatasets.jl
+
3
−
0
View file @
3ffceb1a
...
@@ -705,6 +705,9 @@ function new_write_larva_dataset_hdf5(output_dir, input_data;
...
@@ -705,6 +705,9 @@ function new_write_larva_dataset_hdf5(output_dir, input_data;
else
else
# ensure labels are ordered as provided in input;
# ensure labels are ordered as provided in input;
# see https://gitlab.pasteur.fr/nyx/TaggingBackends/-/issues/24
# see https://gitlab.pasteur.fr/nyx/TaggingBackends/-/issues/24
if
labels
isa
AbstractDict
labels
=
collect
(
keys
(
labels
))
end
h5
[
"labels"
]
=
labels
h5
[
"labels"
]
=
labels
h5
[
"label_counts"
]
=
[
get
(
classcounts
,
Symbol
(
label
),
0
)
for
label
in
labels
]
h5
[
"label_counts"
]
=
[
get
(
classcounts
,
Symbol
(
label
),
0
)
for
label
in
labels
]
end
end
...
...
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