Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
MLD3
FIDDLE
Commits
31a273ff
Commit
31a273ff
authored
Mar 06, 2020
by
Shengpu Tang (tangsp)
Browse files
improve error handling
- cases with missing time-invariant or time-dependent data
parent
368b13e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
FIDDLE/run.py
View file @
31a273ff
...
...
@@ -102,7 +102,9 @@ df_data, df_types = detect_variable_data_type(df_data, value_type_override, args
df_time_invariant
,
df_time_series
=
split_by_timestamp_type
(
df_data
)
# Process time-invariant data
s
,
s_feature_names
,
s_feature_aliases
=
process_time_invariant
(
df_time_invariant
,
args
)
if
len
(
df_time_invariant
)
>
0
:
s
,
s_feature_names
,
s_feature_aliases
=
process_time_invariant
(
df_time_invariant
,
args
)
# Process time-dependent data
X
,
X_feature_names
,
X_feature_aliases
=
process_time_dependent
(
df_time_series
,
args
)
if
len
(
df_time_series
)
>
0
:
X
,
X_feature_names
,
X_feature_aliases
=
process_time_dependent
(
df_time_series
,
args
)
Write
Preview
Supports
Markdown
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