Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Christian Fischer Pedersen
AIR
Commits
eefc6126
Commit
eefc6126
authored
Aug 18, 2021
by
Christian Marius Lillelund
Browse files
split feature making and target making
parent
d1d74131
Changes
3
Hide whitespace changes
Inline
Side-by-side
ml/client.py
View file @
eefc6126
...
...
@@ -81,7 +81,7 @@ def main():
print
(
f
"Completed making models. Models and SHAP plots can be found at:
\n
"
+
f
"
{
pt
.
COMPLETE_XGB_DIR
}
\n
"
+
f
"
{
pt
.
COMPLIANCE_XGB_DIR
}
\n
"
+
f
"
{
pt
.
FALL_XGB_DIR
}
\n
"
+
f
"
{
pt
.
FALL_TEST
_XGB_DIR
}
"
+
"
\n
"
)
f
"
{
pt
.
FALL_XGB_DIR
}
\n
"
+
f
"
{
pt
.
RISK
_XGB_DIR
}
"
+
"
\n
"
)
if
__name__
==
"__main__"
:
main
()
\ No newline at end of file
ml/src/analysis/test_fall_test_model.py
View file @
eefc6126
...
...
@@ -8,7 +8,7 @@ import joblib
from
pathlib
import
Path
def
main
():
model
=
file_reader
.
read_joblib
(
pt
.
FALL_TEST
_XGB_DIR
,
model
=
file_reader
.
read_joblib
(
pt
.
RISK
_XGB_DIR
,
'fall_test_xgboost.joblib'
)
for
gender
in
range
(
0
,
2
):
...
...
ml/src/analysis/test_risk_model.py
View file @
eefc6126
...
...
@@ -8,7 +8,7 @@ import joblib
from
pathlib
import
Path
def
main
():
model
=
file_reader
.
read_joblib
(
pt
.
FALL_TEST
_XGB_DIR
,
model
=
file_reader
.
read_joblib
(
pt
.
RISK
_XGB_DIR
,
'fall_test_xgboost.joblib'
)
for
gender
in
range
(
0
,
2
):
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment