Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
mu-map
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tamino Huxohl
mu-map
Commits
85930b5e
Commit
85930b5e
authored
2 years ago
by
Tamino Huxohl
Browse files
Options
Downloads
Patches
Plain Diff
formatting
parent
552a1ae3
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mu_map/dataset/normalization.py
+9
-3
9 additions, 3 deletions
mu_map/dataset/normalization.py
with
9 additions
and
3 deletions
mu_map/dataset/normalization.py
+
9
−
3
View file @
85930b5e
...
...
@@ -8,7 +8,9 @@ def norm_max(tensor: Tensor) -> Tensor:
class
MaxNormTransform
(
Transform
):
def
__call__
(
self
,
inputs
:
Tensor
,
outputs_expected
:
Tensor
)
->
Tuple
[
Tensor
,
Tensor
]:
def
__call__
(
self
,
inputs
:
Tensor
,
outputs_expected
:
Tensor
)
->
Tuple
[
Tensor
,
Tensor
]:
return
norm_max
(
inputs
),
outputs_expected
...
...
@@ -17,7 +19,9 @@ def norm_mean(tensor: Tensor):
class
MeanNormTransform
(
Transform
):
def
__call__
(
self
,
inputs
:
Tensor
,
outputs_expected
:
Tensor
)
->
Tuple
[
Tensor
,
Tensor
]:
def
__call__
(
self
,
inputs
:
Tensor
,
outputs_expected
:
Tensor
)
->
Tuple
[
Tensor
,
Tensor
]:
return
norm_mean
(
inputs
),
outputs_expected
...
...
@@ -26,7 +30,9 @@ def norm_gaussian(tensor: Tensor):
class
GaussianNormTransform
(
Transform
):
def
__call__
(
self
,
inputs
:
Tensor
,
outputs_expected
:
Tensor
)
->
Tuple
[
Tensor
,
Tensor
]:
def
__call__
(
self
,
inputs
:
Tensor
,
outputs_expected
:
Tensor
)
->
Tuple
[
Tensor
,
Tensor
]:
return
norm_gaussian
(
inputs
),
outputs_expected
...
...
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