Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hyunji
/
A-Performance-Evaluation-of-CNN-for-Brain-Age-Prediction-Using-Structural-MRI-Data
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-12-20 04:19:24 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
71433be0719c6d39900dd802a7bdf853a99a7e5d
71433be0
1 parent
cca819fb
splits
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
2DCNN/data/splits.py
2DCNN/data/splits.py
0 → 100644
View file @
71433be
#! /usr/bin/env python3
"""
code to create train data split
"""
import
pandas
if
__name__
==
"__main__"
:
df
=
pandas
.
read_csv
(
"data/train.csv"
)
for
n
in
[
1000
,
2500
,
5000
]:
df_
=
df
.
sample
(
n
,
random_state
=
0
)
df_
.
to_csv
(
f
"data/train_{n}.csv"
,
index
=
False
)
Please
register
or
login
to post a comment