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 18:55:14 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
153229ae15634fcc3c102c0e29b99b5ecffdd69e
153229ae
1 parent
a80ef27b
Upload new file
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
age_prediction_graph_validation_set.py
age_prediction_graph_validation_set.py
0 → 100644
View file @
153229a
# -*- coding: utf-8 -*-
"""age-prediction_graph_validation_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/valid_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