Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
DAN
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Container Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Automatic Text Recognition
DAN
Merge requests
!288
Round mean values calculated during data analysis
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Round mean values calculated during data analysis
analyze-round-mean-value
into
main
Overview
4
Commits
5
Pipelines
0
Changes
1
All threads resolved!
Hide all comments
Merged
Manon Blanco
requested to merge
analyze-round-mean-value
into
main
1 year ago
Overview
4
Commits
5
Pipelines
0
Changes
1
All threads resolved!
Hide all comments
Expand
Closes
#201 (closed)
0
0
Merge request reports
Viewing commit
956e45a3
Prev
Next
Show latest version
1 file
+
2
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
956e45a3
Round mean values calculated during data analysis
· 956e45a3
Manon Blanco
authored
1 year ago
dan/datasets/analyze/statistics.py
+
2
−
1
Options
# -*- coding: utf-8 -*-
import
logging
from
collections
import
Counter
,
defaultdict
from
functools
import
partial
from
pathlib
import
Path
from
typing
import
Dict
,
List
,
Optional
@@ -38,7 +39,7 @@ def create_table(
[
(
"
Min
"
,
np
.
min
),
(
"
Max
"
,
np
.
max
),
(
"
Mean
"
,
np
.
mean
),
(
"
Mean
"
,
partial
(
np
.
mean
,
dtype
=
np
.
float16
)
),
(
"
Median
"
,
np
.
median
),
]
)
Loading