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
ee6f1885
Commit
ee6f1885
authored
May 06, 2024
by
Joaquin Torres
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trying RF
parent
cb2c95a1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
requirements.txt
requirements.txt
+0
-0
training_models/train_models.py
training_models/train_models.py
+4
-4
No files found.
requirements.txt
deleted
100644 → 0
View file @
cb2c95a1
Binary files a/requirements.txt and /dev/null differ
Binary files a/requirements.txt and /dev/null differ
training_models/train_models.py
View file @
ee6f1885
...
@@ -78,8 +78,8 @@ if __name__ == "__main__":
...
@@ -78,8 +78,8 @@ if __name__ == "__main__":
# Defining the models to train
# Defining the models to train
# --------------------------------------------------------------------------------------------------------
# --------------------------------------------------------------------------------------------------------
# 1. No class weight
# 1. No class weight
models_1
=
{
"DT"
:
DecisionTreeClassifier
(),
models_1
=
{
#
"DT" : DecisionTreeClassifier(),
#
"RF" : RandomForestClassifier(),
"RF"
:
RandomForestClassifier
(),
# "Bagging" : BaggingClassifier(),
# "Bagging" : BaggingClassifier(),
# "AB" : AdaBoostClassifier(),
# "AB" : AdaBoostClassifier(),
# "XGB": XGBClassifier(),
# "XGB": XGBClassifier(),
...
@@ -90,8 +90,8 @@ if __name__ == "__main__":
...
@@ -90,8 +90,8 @@ if __name__ == "__main__":
}
}
# 2. Class weight
# 2. Class weight
models_2
=
{
"DT"
:
DecisionTreeClassifier
(
class_weight
=
'balanced'
),
models_2
=
{
#
"DT" : DecisionTreeClassifier(class_weight='balanced'),
#
"RF" : RandomForestClassifier(class_weight='balanced'),
"RF"
:
RandomForestClassifier
(
class_weight
=
'balanced'
),
# "Bagging" : BaggingClassifier(), # <-
# "Bagging" : BaggingClassifier(), # <-
# "AB" : AdaBoostClassifier(), # <-
# "AB" : AdaBoostClassifier(), # <-
# "XGB": XGBClassifier(), # <-
# "XGB": XGBClassifier(), # <-
...
...
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