Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
C
covid_analysis
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
COMPARA
covid_analysis
Commits
1dc5f817
Commit
1dc5f817
authored
Jun 27, 2024
by
Joaquin Torres
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated paths
parent
c95056a4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
22 deletions
+22
-22
.gitignore
.gitignore
+3
-3
gen_train_data/gen_train_data.ipynb
gen_train_data/gen_train_data.ipynb
+19
-19
No files found.
.gitignore
View file @
1dc5f817
./gen_train_data/input
gen_train_data/input/
./gen_train_data/output
gen_train_data/output/
./EDA/input
EDA/input/
\ No newline at end of file
\ No newline at end of file
gen_train_data/gen_train_data.ipynb
View file @
1dc5f817
...
@@ -36,8 +36,8 @@
...
@@ -36,8 +36,8 @@
"outputs": [],
"outputs": [],
"source": [
"source": [
"# Load clean datasets\n",
"# Load clean datasets\n",
"df_pre = pd.read_csv('./
data/
input/pre_dataset.csv')\n",
"df_pre = pd.read_csv('./input/pre_dataset.csv')\n",
"df_post = pd.read_csv('./
data/
input/post_dataset.csv')"
"df_post = pd.read_csv('./input/post_dataset.csv')"
]
]
},
},
{
{
...
@@ -95,10 +95,10 @@
...
@@ -95,10 +95,10 @@
"outputs": [],
"outputs": [],
"source": [
"source": [
"# Save test data\n",
"# Save test data\n",
"np.save('./
data/
output/pre/X_test_pre.npy', X_test_pre)\n",
"np.save('./output/pre/X_test_pre.npy', X_test_pre)\n",
"np.save('./
data/
output/pre/y_test_pre.npy', y_test_pre)\n",
"np.save('./output/pre/y_test_pre.npy', y_test_pre)\n",
"np.save('./
data/
output/post/X_test_post.npy', X_test_post)\n",
"np.save('./output/post/X_test_post.npy', X_test_post)\n",
"np.save('./
data/
output/post/y_test_post.npy', y_test_post)"
"np.save('./output/post/y_test_post.npy', y_test_post)"
]
]
},
},
{
{
...
@@ -108,10 +108,10 @@
...
@@ -108,10 +108,10 @@
"outputs": [],
"outputs": [],
"source": [
"source": [
"# Save ORIGINAL training data\n",
"# Save ORIGINAL training data\n",
"np.save('./
data/
output/pre/X_train_pre.npy', X_train_pre)\n",
"np.save('./output/pre/X_train_pre.npy', X_train_pre)\n",
"np.save('./
data/
output/pre/y_train_pre.npy', y_train_pre)\n",
"np.save('./output/pre/y_train_pre.npy', y_train_pre)\n",
"np.save('./
data/
output/post/X_train_post.npy', X_train_post)\n",
"np.save('./output/post/X_train_post.npy', X_train_post)\n",
"np.save('./
data/
output/post/y_train_post.npy', y_train_post)"
"np.save('./output/post/y_train_post.npy', y_train_post)"
]
]
},
},
{
{
...
@@ -133,10 +133,10 @@
...
@@ -133,10 +133,10 @@
"outputs": [],
"outputs": [],
"source": [
"source": [
"# Save oversampled training data\n",
"# Save oversampled training data\n",
"np.save('./
data/
output/pre/X_train_over_pre.npy', X_train_over_pre)\n",
"np.save('./output/pre/X_train_over_pre.npy', X_train_over_pre)\n",
"np.save('./
data/
output/pre/y_train_over_pre.npy', y_train_over_pre)\n",
"np.save('./output/pre/y_train_over_pre.npy', y_train_over_pre)\n",
"np.save('./
data/
output/post/X_train_over_post.npy', X_train_over_post)\n",
"np.save('./output/post/X_train_over_post.npy', X_train_over_post)\n",
"np.save('./
data/
output/post/y_train_over_post.npy', y_train_over_post)"
"np.save('./output/post/y_train_over_post.npy', y_train_over_post)"
]
]
},
},
{
{
...
@@ -158,10 +158,10 @@
...
@@ -158,10 +158,10 @@
"outputs": [],
"outputs": [],
"source": [
"source": [
"# Save undersampled training data\n",
"# Save undersampled training data\n",
"np.save('./
data/
output/pre/X_train_under_pre.npy', X_train_under_pre)\n",
"np.save('./output/pre/X_train_under_pre.npy', X_train_under_pre)\n",
"np.save('./
data/
output/pre/y_train_under_pre.npy', y_train_under_pre)\n",
"np.save('./output/pre/y_train_under_pre.npy', y_train_under_pre)\n",
"np.save('./
data/
output/post/X_train_under_post.npy', X_train_under_post)\n",
"np.save('./output/post/X_train_under_post.npy', X_train_under_post)\n",
"np.save('./
data/
output/post/y_train_under_post.npy', y_train_under_post)"
"np.save('./output/post/y_train_under_post.npy', y_train_under_post)"
]
]
},
},
{
{
...
@@ -171,7 +171,7 @@
...
@@ -171,7 +171,7 @@
"outputs": [],
"outputs": [],
"source": [
"source": [
"# Save features\n",
"# Save features\n",
"np.save('./
data/
output/attributes.npy', feat)"
"np.save('./output/attributes.npy', feat)"
]
]
}
}
],
],
...
...
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