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
940158a6
Commit
940158a6
authored
Nov 15, 2021
by
Noric Couderc
Browse files
Fix: Expected number of columns in feature data
We also expect the iteration number for the sample.
parent
665b1833
Changes
1
Hide whitespace changes
Inline
Side-by-side
train_model.py
View file @
940158a6
...
@@ -522,7 +522,7 @@ def validate_jmh_data(jmh_data):
...
@@ -522,7 +522,7 @@ def validate_jmh_data(jmh_data):
def
validate_features_data
(
features_data
,
number_benchmarks
):
def
validate_features_data
(
features_data
,
number_benchmarks
):
expected_columns
=
[
'benchmark_id'
,
'feature'
,
'feature_type'
,
'value'
]
expected_columns
=
[
'benchmark_id'
,
'iteration'
,
'feature'
,
'feature_type'
,
'value'
]
assert
(
features_data
.
columns
==
expected_columns
).
all
()
assert
(
features_data
.
columns
==
expected_columns
).
all
()
# Set of benchmark IDs matched number of benchmarks
# Set of benchmark IDs matched number of benchmarks
...
...
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