Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
EDdA Classification
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Projet GEODE
EDdA Classification
Commits
6827bb95
Commit
6827bb95
authored
3 years ago
by
lmoncla
Browse files
Options
Downloads
Patches
Plain Diff
Update
parent
a0d132bb
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
experimentsClassicClassifiers.py
+7
-0
7 additions, 0 deletions
experimentsClassicClassifiers.py
requirements.txt
+3
-0
3 additions, 0 deletions
requirements.txt
script.txt
+10
-13
10 additions, 13 deletions
script.txt
with
20 additions
and
13 deletions
experimentsClassicClassifiers.py
+
7
−
0
View file @
6827bb95
...
@@ -13,6 +13,11 @@ from evaluate_model import evaluate_model
...
@@ -13,6 +13,11 @@ from evaluate_model import evaluate_model
from
sklearn.model_selection
import
GridSearchCV
from
sklearn.model_selection
import
GridSearchCV
import
configparser
import
configparser
import
nltk
nltk
.
download
(
'
stopwords
'
)
nltk
.
download
(
'
punkt
'
)
parser
=
argparse
.
ArgumentParser
()
parser
=
argparse
.
ArgumentParser
()
parser
.
add_argument
(
"
dataPath
"
,
help
=
"
Path of the dataframe
"
)
parser
.
add_argument
(
"
dataPath
"
,
help
=
"
Path of the dataframe
"
)
...
@@ -77,6 +82,8 @@ doc2vec_lr = float(config.get('vectorizers','doc2vec_lr'))
...
@@ -77,6 +82,8 @@ doc2vec_lr = float(config.get('vectorizers','doc2vec_lr'))
for
columnInput
in
[
columnText
,
'
firstParagraph
'
]:
for
columnInput
in
[
columnText
,
'
firstParagraph
'
]:
print
(
'
Process:
'
+
columnInput
)
extractor
=
feature_extractor
(
df
,
columnText
,
columnClass
)
extractor
=
feature_extractor
(
df
,
columnText
,
columnClass
)
#extractor_paragraphe = feature_extractor(df,'paragraphe', columnClass)
#extractor_paragraphe = feature_extractor(df,'paragraphe', columnClass)
...
...
This diff is collapsed.
Click to expand it.
requirements.txt
+
3
−
0
View file @
6827bb95
pandas
matplotlib
seaborn
beautifulsoup4
beautifulsoup4
lxml
lxml
Unidecode
Unidecode
...
...
This diff is collapsed.
Click to expand it.
script.txt
+
10
−
13
View file @
6827bb95
mkdir -p reports/domaine_enccre
mkdir -p reports/ensemble_domaine_enccre
mkdir -p reports/normClass_artfl
pip install -r requirements.txt
pip install -r requirements.txt
python tmp_preprocess_data.py
python tmp_preprocess_data.py
python experimentsClassicClassifiers.py data/
EDdA_
dataframe_with
Content.t
sv contentWithoutClass ensemble_domaine_enccre 300 1500
python experimentsClassicClassifiers.py data/dataframe_with
_ensemble_domaine_enccre.c
sv contentWithoutClass ensemble_domaine_enccre 300 1500
python experimentsClassicClassifiers.py data/
EDdA_
dataframe_with
Content.t
sv contentWithoutClass ensemble_domaine_enccre 50 1500
python experimentsClassicClassifiers.py data/dataframe_with
_ensemble_domaine_enccre.c
sv contentWithoutClass ensemble_domaine_enccre 50 1500
python experimentsClassicClassifiers.py data/
EDdA_
dataframe_with
Content.t
sv contentWithoutClass ensemble_domaine_enccre 50 800
python experimentsClassicClassifiers.py data/dataframe_with
_ensemble_domaine_enccre.c
sv contentWithoutClass ensemble_domaine_enccre 50 800
python experimentsClassicClassifiers.py data/
EDdA_
dataframe_with
Content.t
sv contentWithoutClass ensemble_domaine_enccre 100 1500
python experimentsClassicClassifiers.py data/dataframe_with
_ensemble_domaine_enccre.c
sv contentWithoutClass ensemble_domaine_enccre 100 1500
python experimentsClassicClassifiers.py data/
EDdA_
dataframe_with
Content.t
sv contentWithoutClass domaine_enccre 300 1500
python experimentsClassicClassifiers.py data/dataframe_with
_domaine_enccre.c
sv contentWithoutClass domaine_enccre 300 1500
python experimentsClassicClassifiers.py data/
EDdA_
dataframe_with
Content.t
sv contentWithoutClass domaine_enccre 50 1500
python experimentsClassicClassifiers.py data/dataframe_with
_domaine_enccre.c
sv contentWithoutClass domaine_enccre 50 1500
python experimentsClassicClassifiers.py data/
EDdA_
dataframe_with
Content.t
sv contentWithoutClass domaine_enccre 300 500
python experimentsClassicClassifiers.py data/dataframe_with
_domaine_enccre.c
sv contentWithoutClass domaine_enccre 300 500
python experimentsClassicClassifiers.py data/
EDdA_
dataframe_with
Content.t
sv contentWithoutClass normClass
_artfl
300 1500
python experimentsClassicClassifiers.py data/dataframe_with
_normClass.c
sv contentWithoutClass normClass 300 1500
python experimentsClassicClassifiers.py data/
EDdA_
dataframe_with
Content.t
sv contentWithoutClass normClass
_artfl
50 2000
python experimentsClassicClassifiers.py data/dataframe_with
_normClass.c
sv contentWithoutClass normClass 50 2000
python experimentsClassicClassifiers.py data/
EDdA_
dataframe_with
Content.t
sv contentWithoutClass normClass
_artfl
50 500
python experimentsClassicClassifiers.py data/dataframe_with
_normClass.c
sv contentWithoutClass normClass 50 500
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment