Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hyunji
/
CapstoneDesign2021-1
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Hyunji
2021-06-21 19:06:45 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
23ba6c78b1b06667f4c9c6932abe86d52690f8ad
23ba6c78
1 parent
c23d74d4
Age-Prediction correlation graph for test set with saved result data
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
main/age_prediction_graph_test_set.py
main/age_prediction_graph_test_set.py
0 → 100644
View file @
23ba6c7
# -*- coding: utf-8 -*-
"""age-prediction_graph_test_set.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/16Rn0IDJTE6vJMOZtafDAI19AvGD9eK4C
"""
import
pandas
as
pd
import
matplotlib.pyplot
as
plt
plt
.
xlabel
(
"Age"
)
plt
.
ylabel
(
"Prediction"
)
df
=
pd
.
read_csv
(
'/content/drive/MyDrive/2d-slice-set-networks-for-brain-age-master/data/test_pred - 시트1.csv'
)
df1
=
pd
.
DataFrame
(
df
)
.
T
corr
=
df
.
corr
(
method
=
'pearson'
)
print
(
corr
)
X
=
df
[
"Age"
]
y
=
df
[
"Prediction"
]
plt
.
plot
(
X
,
y
,
'o'
)
plt
.
plot
(
y
,
y
)
plt
.
show
\ No newline at end of file
Please
register
or
login
to post a comment