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
f6346bb3
Commit
f6346bb3
authored
Jun 28, 2024
by
Joaquin Torres
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Access to attribute names updated
parent
d769c473
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
8 deletions
+8
-8
.gitignore
.gitignore
+2
-2
explainability/compute_shap_inter_vals.py
explainability/compute_shap_inter_vals.py
+1
-1
explainability/compute_shap_vals.py
explainability/compute_shap_vals.py
+1
-1
explainability/fit_final_models.py
explainability/fit_final_models.py
+1
-1
explainability/shap_plots.ipynb
explainability/shap_plots.ipynb
+3
-3
No files found.
.gitignore
View file @
f6346bb3
gen_train_data/
input/
gen_train_data/output/
gen_train_data/
output/post
gen_train_data/output/
pre
EDA/input/17_abril.sav
EDA/output/datasets
\ No newline at end of file
explainability/compute_shap_inter_vals.py
View file @
f6346bb3
...
...
@@ -36,7 +36,7 @@ if __name__ == "__main__":
# Setup
# --------------------------------------------------------------------------------------------------------
# Retrieve attribute names in order
attribute_names
=
list
(
np
.
load
(
'../
gen_train_data/output/attribut
es.npy'
,
allow_pickle
=
True
))
attribute_names
=
list
(
np
.
load
(
'../
EDA/output/feature_names/feature_nam
es.npy'
,
allow_pickle
=
True
))
# Reading data
data_dic
=
read_test_data
(
attribute_names
)
method_names
=
{
...
...
explainability/compute_shap_vals.py
View file @
f6346bb3
...
...
@@ -36,7 +36,7 @@ if __name__ == "__main__":
# Setup
# --------------------------------------------------------------------------------------------------------
# Retrieve attribute names in order
attribute_names
=
list
(
np
.
load
(
'../
gen_train_data/output/attribut
es.npy'
,
allow_pickle
=
True
))
attribute_names
=
list
(
np
.
load
(
'../
EDA/output/feature_names/feature_nam
es.npy'
,
allow_pickle
=
True
))
# Reading data
data_dic
=
read_test_data
(
attribute_names
)
method_names
=
{
...
...
explainability/fit_final_models.py
View file @
f6346bb3
...
...
@@ -111,7 +111,7 @@ if __name__ == "__main__":
# Setup
# --------------------------------------------------------------------------------------------------------
# Retrieve attribute names in order
attribute_names
=
list
(
np
.
load
(
'../
gen_train_data/output/attribut
es.npy'
,
allow_pickle
=
True
))
attribute_names
=
list
(
np
.
load
(
'../
EDA/output/feature_names/feature_nam
es.npy'
,
allow_pickle
=
True
))
# Reading data
data_dic
=
read_training_data
(
attribute_names
)
method_names
=
{
...
...
explainability/shap_plots.ipynb
View file @
f6346bb3
...
...
@@ -35,7 +35,7 @@
"outputs": [],
"source": [
"# Retrieve attribute names in order\n",
"attribute_names =
list(np.load('../gen_train_data/output/attribut
es.npy', allow_pickle=True))\n",
"attribute_names =
attribute_names = list(np.load('../EDA/output/feature_names/feature_nam
es.npy', allow_pickle=True))\n",
"\n",
"# Load test data\n",
"X_test_pre = np.load('../gen_train_data/output/pre/X_test_pre.npy', allow_pickle=True)\n",
...
...
@@ -71,8 +71,8 @@
" \"UNDER\": \"XGB\"\n",
"}\n",
"\n",
"soc_var_names = np.load('../EDA/output/soc_vars_names.npy', allow_pickle=True)\n",
"ind_var_names = np.load('../EDA/output/ind_vars_names.npy', allow_pickle=True)"
"soc_var_names = np.load('../EDA/output/
feature_names/
soc_vars_names.npy', allow_pickle=True)\n",
"ind_var_names = np.load('../EDA/output/
feature_names/
ind_vars_names.npy', allow_pickle=True)"
]
},
{
...
...
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