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
4d425452
Commit
4d425452
authored
3 years ago
by
Khalleud
Browse files
Options
Downloads
Patches
Plain Diff
[UPDATE] main and script
parent
b772854d
No related branches found
Branches containing commit
No related tags found
1 merge request
!1
Branch v1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
projet/experimentsClassicClassifiers.py
+3
-3
3 additions, 3 deletions
projet/experimentsClassicClassifiers.py
projet/script.txt
+2
-0
2 additions, 0 deletions
projet/script.txt
with
5 additions
and
3 deletions
projet/experimentsClassicClassifiers.py
+
3
−
3
View file @
4d425452
...
...
@@ -43,14 +43,13 @@ if not os.path.exists(os.path.join('reports', columnClass, dir_name_report)):
preprocessor
=
Preprocessor
()
df_original
=
pd
.
read_csv
(
dataPath
,
sep
=
"
\t
"
)
df_original
=
pd
.
read_csv
(
dataPath
)
df
=
df_original
[[
columnClass
,
columnText
]].
copy
()
############ shall we remove articles with less n tokens ####### remove markers
preprocessor
.
remove_null_rows
(
df
,
columnText
)
preprocessor
.
remove_null_rows
(
df
,
columnClass
)
df
=
split_class
(
df
,
columnClass
)
#
df = split_class(df, columnClass)
df
=
remove_weak_classes
(
df
,
columnClass
,
minOfInstancePerClass
)
df
=
resample_classes
(
df
,
columnClass
,
maxOfInstancePerClass
)
...
...
@@ -211,3 +210,4 @@ for feature_technique_name, features in features_techniques_paragraphe:
sys
.
stdout
=
sys
.
stdout
# Reset the standard output to its original value
sys
.
stdout
=
sys
.
__stdout__
This diff is collapsed.
Click to expand it.
projet/script.txt
+
2
−
0
View file @
4d425452
pip install -r requierments.txxt
python tmp_preprocess_data.py
python experimentsClassicClassifiers.py data/EDdA_dataframe_withContent.tsv content ensemble_domaine_enccre 300 1500
python experimentsClassicClassifiers.py data/EDdA_dataframe_withContent.tsv content ensemble_domaine_enccre 50 1500
python experimentsClassicClassifiers.py data/EDdA_dataframe_withContent.tsv content ensemble_domaine_enccre 50 800
...
...
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