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
Noric Couderc
JBrainy
Commits
665b1833
Commit
665b1833
authored
Nov 15, 2021
by
Noric Couderc
Browse files
Fix: Validation of merged table for training data
If you consider all the duplicates, of course it doesn't work.
parent
a687d5c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
train_model.py
View file @
665b1833
...
...
@@ -470,7 +470,7 @@ def prepare_long_form_data(jmh_data, features_data):
merged_table
=
pd
.
merge
(
jmh_with_best
,
features_data_wide
,
on
=
"benchmark_id"
)
# I think there should be one row for each iteration of each benchmark
assert
len
(
merged_table
)
==
len
(
features_data
.
get
([
"benchmark_id"
,
"iteration"
])
assert
len
(
merged_table
)
==
len
(
features_data
.
get
([
"benchmark_id"
,
"iteration"
])
.
drop_duplicates
())
# Return data that should replace the original data.
return
{
"data"
:
merged_table
,
...
...
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