Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
N
NLP-Project
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
almohanad.hafez
NLP-Project
Commits
de72d7c1
Commit
de72d7c1
authored
Oct 17, 2024
by
Almouhannad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use constants class
parent
6097a6b2
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
47 additions
and
44 deletions
+47
-44
.gitignore
.gitignore
+1
-0
1.1-Preprocessing.ipynb
1.1-Preprocessing.ipynb
+20
-22
1.2-Morphological-Analyzer-Classifier.ipynb
1.2-Morphological-Analyzer-Classifier.ipynb
+22
-22
constants.py
constants.py
+4
-0
No files found.
.gitignore
View file @
de72d7c1
test.ipynb
clf-test.ipynb
__pycache__/constants.cpython-311.pyc
1.1-Preprocessing.ipynb
View file @
de72d7c1
...
...
@@ -9,7 +9,7 @@
},
{
"cell_type": "code",
"execution_count": 1
3
,
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
...
...
@@ -18,18 +18,16 @@
"from sklearn.model_selection import train_test_split\n",
"\n",
"\n",
"DATASET_PATH = 'data/Symptom2Disease.csv'\n",
"TRAIN_SET_PATH = 'data/Preprocessed_Symptom2Disease_Train.csv'\n",
"TEST_SET_PATH = 'data/Preprocessed_Symptom2Disease_Test.csv'"
"from constants import CONSTANTS"
]
},
{
"cell_type": "code",
"execution_count":
14
,
"execution_count":
2
,
"metadata": {},
"outputs": [],
"source": [
"df = pd.read_csv(DATASET_PATH)"
"df = pd.read_csv(
CONSTANTS.
DATASET_PATH)"
]
},
{
...
...
@@ -41,7 +39,7 @@
},
{
"cell_type": "code",
"execution_count":
15
,
"execution_count":
3
,
"metadata": {},
"outputs": [],
"source": [
...
...
@@ -50,7 +48,7 @@
},
{
"cell_type": "code",
"execution_count":
16
,
"execution_count":
4
,
"metadata": {},
"outputs": [
{
...
...
@@ -123,7 +121,7 @@
"4 4 Psoriasis My nails have small dents or pits in them, and..."
]
},
"execution_count":
16
,
"execution_count":
4
,
"metadata": {},
"output_type": "execute_result"
}
...
...
@@ -141,7 +139,7 @@
},
{
"cell_type": "code",
"execution_count":
17
,
"execution_count":
5
,
"metadata": {},
"outputs": [
{
...
...
@@ -208,7 +206,7 @@
"4 My nails have small dents or pits in them, and... Psoriasis"
]
},
"execution_count":
17
,
"execution_count":
5
,
"metadata": {},
"output_type": "execute_result"
}
...
...
@@ -229,7 +227,7 @@
},
{
"cell_type": "code",
"execution_count":
18
,
"execution_count":
6
,
"metadata": {},
"outputs": [
{
...
...
@@ -259,7 +257,7 @@
},
{
"cell_type": "code",
"execution_count":
19
,
"execution_count":
7
,
"metadata": {},
"outputs": [
{
...
...
@@ -293,7 +291,7 @@
},
{
"cell_type": "code",
"execution_count":
20
,
"execution_count":
8
,
"metadata": {},
"outputs": [
{
...
...
@@ -360,7 +358,7 @@
"4 I've been quite exhausted and ill. My throat h... Common Cold"
]
},
"execution_count":
20
,
"execution_count":
8
,
"metadata": {},
"output_type": "execute_result"
}
...
...
@@ -380,7 +378,7 @@
},
{
"cell_type": "code",
"execution_count":
21
,
"execution_count":
9
,
"metadata": {},
"outputs": [
{
...
...
@@ -441,7 +439,7 @@
},
{
"cell_type": "code",
"execution_count":
22
,
"execution_count":
10
,
"metadata": {},
"outputs": [
{
...
...
@@ -508,7 +506,7 @@
"4 i've been quite exhausted and ill. my throat h... common cold"
]
},
"execution_count":
22
,
"execution_count":
10
,
"metadata": {},
"output_type": "execute_result"
}
...
...
@@ -528,7 +526,7 @@
},
{
"cell_type": "code",
"execution_count":
23
,
"execution_count":
11
,
"metadata": {},
"outputs": [
{
...
...
@@ -548,12 +546,12 @@
},
{
"cell_type": "code",
"execution_count":
24
,
"execution_count":
12
,
"metadata": {},
"outputs": [],
"source": [
"train_df.to_csv(TRAIN_SET_PATH, index=False)\n",
"test_df.to_csv(TEST_SET_PATH, index=False)"
"train_df.to_csv(
CONSTANTS.
TRAIN_SET_PATH, index=False)\n",
"test_df.to_csv(
CONSTANTS.
TEST_SET_PATH, index=False)"
]
}
],
...
...
1.2-Morphological-Analyzer-Classifier.ipynb
View file @
de72d7c1
This diff is collapsed.
Click to expand it.
constants.py
0 → 100644
View file @
de72d7c1
class
CONSTANTS
:
DATASET_PATH
=
'data/Symptom2Disease.csv'
TRAIN_SET_PATH
=
'data/Preprocessed_Symptom2Disease_Train.csv'
TEST_SET_PATH
=
'data/Preprocessed_Symptom2Disease_Test.csv'
\ No newline at end of file
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