Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
diffwave
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
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maria Guaranda-Cabezas
diffwave
Merge requests
!3
Couldn't fetch the linked file.
Inference
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Inference
inference
into
main
Overview
0
Commits
4
Pipelines
0
Changes
4
Merged
Maria Guaranda-Cabezas
requested to merge
inference
into
main
1 year ago
Overview
0
Commits
4
Pipelines
0
Changes
3
Expand
0
0
Merge request reports
Compare
version 1
version 1
59ab4f5e
1 year ago
main (base)
and
latest version
latest version
45b2a05c
4 commits,
1 year ago
version 1
59ab4f5e
4 commits,
1 year ago
Show latest version
3 files
+
11
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
src/data/lagrangian_datatools.py
+
8
−
0
Options
@@ -14,6 +14,14 @@ class StandardScaler(object):
def
__call__
(
self
,
sample
):
return
(
sample
-
self
.
mean
)
/
self
.
std
class
ScaleDiffusionRange
(
object
):
"""
Scales data to be in range [-1,1]
"""
def
__init__
(
self
):
pass
def
__call__
(
self
,
sample
):
return
(
sample
*
2
)
-
1
class
ParticleDataset
(
Dataset
):
def
__init__
(
self
,
path
,
transform
=
None
):
Loading