Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GenVQA
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor 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
Vision
GenVQA
Commits
d9c120e0
Commit
d9c120e0
authored
8 years ago
by
tgupta6
Browse files
Options
Downloads
Patches
Plain Diff
generate plot in freq_acc_plot
parent
ee24ebfe
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
object_attribute_classifier_cached_features/freq_acc_plot.py
+17
-0
17 additions, 0 deletions
object_attribute_classifier_cached_features/freq_acc_plot.py
with
17 additions
and
0 deletions
object_attribute_classifier_cached_features/freq_acc_plot.py
+
17
−
0
View file @
d9c120e0
...
...
@@ -3,6 +3,10 @@ import ujson
import
pprint
from
collections
import
namedtuple
from
operator
import
attrgetter
import
numpy
as
np
import
matplotlib
matplotlib
.
use
(
'
pdf
'
)
import
matplotlib.pyplot
as
plt
import
constants
...
...
@@ -69,6 +73,19 @@ if __name__=='__main__':
# obj_test_freq_dict[obj],
# )
freq
=
[]
acc
=
[]
for
record
in
sorted_records
:
freq
.
append
(
record
.
train_freq
)
acc
.
append
(
record
.
acc
)
plt
.
plot
(
freq
,
acc
)
plot_filename
=
os
.
path
.
join
(
constants
.
region_object_scores_dirname
,
'
obj_acc_vs_freq.pdf
'
)
plt
.
savefig
(
plot_filename
)
print
(
len
(
obj_pred_data
))
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