Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
GUM-compliant_neural-network_uncertainty-propagation
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ludwig10_masters_thesis
GUM-compliant_neural-network_uncertainty-propagation
Commits
7a7df381
Verified
Commit
7a7df381
authored
2 years ago
by
Björn Ludwig
Browse files
Options
Downloads
Patches
Plain Diff
fix(zema_dataset): adapt to most recent zema_emc_annotated version v0.7.0
parent
f5967516
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/pytorch_gum_uncertainty_propagation/examples/zema_dataset.py
+4
-1
4 additions, 1 deletion
...orch_gum_uncertainty_propagation/examples/zema_dataset.py
with
4 additions
and
1 deletion
src/pytorch_gum_uncertainty_propagation/examples/zema_dataset.py
+
4
−
1
View file @
7a7df381
...
...
@@ -3,6 +3,7 @@
__all__
=
[
"
convert_zema_std_uncertainties_into_synthetic_full_cov_matrices
"
]
import
torch
from
zema_emc_annotated.data_types
import
SampleSize
from
zema_emc_annotated.dataset
import
ZeMASamples
# type: ignore[import]
from
pytorch_gum_uncertainty_propagation.uncertainties
import
(
...
...
@@ -23,7 +24,9 @@ def convert_zema_std_uncertainties_into_synthetic_full_cov_matrices(
synthetically into full covariance matrices only for showcasing the capabilities
of the GUM-enabled :doc:`pytorch_gum_uncertainty_propagation.modules`.
"""
uncertain_array
=
ZeMASamples
(
n_samples
,
size_scaler
,
normalize
,
idx_start
)
uncertain_array
=
ZeMASamples
(
SampleSize
(
idx_start
,
n_samples
,
size_scaler
),
normalize
,
True
)
uncertain_values
=
UncertainTensor
(
values
=
torch
.
from_numpy
(
uncertain_array
.
values
),
uncertainties
=
torch
.
from_numpy
(
uncertain_array
.
uncertainties
),
...
...
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