Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marcel Henrik Schubert
AttributionFeatures
Commits
8418f35a
Commit
8418f35a
authored
Jul 18, 2019
by
Marcel Henrik Schubert
Browse files
fixed savedir error
parent
373c275d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Scripts/Analysis_final_mult.py
View file @
8418f35a
...
...
@@ -785,7 +785,7 @@ def plotter(subsets, subana, phases, labels):
df
=
pd
.
DataFrame
(
tmp
,
index
=
ind
)
f
,
ax
=
plt
.
subplots
(
figsize
=
(
18
,
len
(
ind
)
/
6
))
sns
.
heatmap
(
df
,
fmt
=
'.1f'
,
ax
=
ax
,
center
=
0
,
yticklabels
=
True
)
f
.
savefig
(
'../Data/results/
featureplots/features_heat_{}_{}_{}_phases.png'
.
format
(
st
,
an
,
label
))
f
.
savefig
(
savedir
+
'
featureplots/features_heat_{}_{}_{}_phases.png'
.
format
(
st
,
an
,
label
))
elif
label
==
'author'
:
sex_key
=
[]
...
...
@@ -842,7 +842,7 @@ def plotter(subsets, subana, phases, labels):
df
=
pd
.
DataFrame
(
tmp
,
index
=
ind
)
f
,
ax
=
plt
.
subplots
(
figsize
=
(
18
,
len
(
ind_pos
+
ind_neg
)
/
6
))
sns
.
heatmap
(
df
,
fmt
=
'.1f'
,
ax
=
ax
,
center
=
0
,
yticklabels
=
True
)
f
.
savefig
(
'../Data/results/
featureplots/features_heat_{}_{}_{}_phases.png'
.
format
(
st
,
an
,
label
))
f
.
savefig
(
savedir
+
'
featureplots/features_heat_{}_{}_{}_phases.png'
.
format
(
st
,
an
,
label
))
dic
=
{}
ind_pos
=
[]
...
...
@@ -886,7 +886,7 @@ def plotter(subsets, subana, phases, labels):
df
=
pd
.
DataFrame
(
tmp
,
index
=
ind
)
f
,
ax
=
plt
.
subplots
(
figsize
=
(
18
,
len
(
ind_pos
+
ind_neg
)
/
6
))
sns
.
heatmap
(
df
,
fmt
=
'.1f'
,
ax
=
ax
,
center
=
0
,
yticklabels
=
True
)
f
.
savefig
(
'../Data/results/
featureplots/features_heat_{}_{}_{}_gender_phases.png'
.
format
(
st
,
an
,
label
))
f
.
savefig
(
savedir
+
'
featureplots/features_heat_{}_{}_{}_gender_phases.png'
.
format
(
st
,
an
,
label
))
return
1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment