Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
ZX_PostProcessingPlotter
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Christian Weber
ZX_PostProcessingPlotter
Commits
b8cf7863
Commit
b8cf7863
authored
2 years ago
by
Rui Zhang
Browse files
Options
Downloads
Patches
Plain Diff
Switch to obs-exp as active learning target
parent
d3800f10
No related branches found
No related tags found
No related merge requests found
Pipeline
#4625062
passed
2 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
limitSetting/limitSetting.py
+5
-3
5 additions, 3 deletions
limitSetting/limitSetting.py
with
5 additions
and
3 deletions
limitSetting/limitSetting.py
+
5
−
3
View file @
b8cf7863
...
@@ -836,18 +836,20 @@ def writeLimitsToCSV( limitDict ):
...
@@ -836,18 +836,20 @@ def writeLimitsToCSV( limitDict ):
for
csvLine
in
csvMetaList
:
writer
.
writerow
(
csvLine
)
for
csvLine
in
csvMetaList
:
writer
.
writerow
(
csvLine
)
limit
=
0
limit
_exp
,
limit_obs
=
0
with
open
(
'
limits.csv
'
)
as
f
:
with
open
(
'
limits.csv
'
)
as
f
:
reader
=
csv
.
DictReader
(
f
)
reader
=
csv
.
DictReader
(
f
)
for
row
in
reader
:
for
row
in
reader
:
for
(
k
,
v
)
in
row
.
items
():
for
(
k
,
v
)
in
row
.
items
():
if
k
==
'
bestEstimate
'
:
if
k
==
'
bestEstimate
'
:
limit
=
float
(
v
)
limit_obs
=
float
(
v
)
if
k
==
'
expectedLimit
'
:
limit_exp
=
float
(
v
)
import
json
import
json
import
numpy
as
np
import
numpy
as
np
result
=
{}
result
=
{}
with
open
(
'
output.json
'
,
'
w
'
)
as
f
:
with
open
(
'
output.json
'
,
'
w
'
)
as
f
:
result
[
'
loss
'
]
=
limit
result
[
'
loss
'
]
=
limit
_obs
-
limit_exp
# let active learning searching for excess
print
(
result
)
print
(
result
)
json
.
dump
(
result
,
f
,
indent
=
2
)
json
.
dump
(
result
,
f
,
indent
=
2
)
...
...
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