Karma 9
2
Posted by hasarinduperera •
1
Posted by hasarinduperera •
1
Posted by hasarinduperera •
aqora test
?1
Posted by hasarinduperera •
2
Posted by hasarinduperera •
Please run your submission using aqora test for now.
aqora test
right?2
Posted by hasarinduperera •
aqora test
.aqora test
worked, but notebook did not, now after my code change, notebook does work, aqora test
is not.2
Posted by hasarinduperera •
Are you running the notebook with aqora test as expected? Or do you run it using Visual Studio Code?
aqora test
worked fine on terminal. But then I tried to follow the notebook (running cell by cell). That's when I got the error.Can you quote the full error trace in the topic please?
Model output: [[1 1 2 1 2]]
Model output: [[1 1 2 1 2]]
[1 FAIL] Evaluation error
Model output: [[1 1 2 1 2]]
Traceback (most recent call last):
File "/home/personal/Documents/Personal/Documents/aqora/quantum-signals-lob/.venv/lib/python3.10/site-packages/use_case/run.py", line 32, in score
return compute_score(Tensor(solution), Tensor(original_input[1]))
File "/home/personal/Documents/Personal/Documents/aqora/quantum-signals-lob/.venv/lib/python3.10/site-packages/use_case/metrics.py", line 54, in compute_score
scores = [
File "/home/personal/Documents/Personal/Documents/aqora/quantum-signals-lob/.venv/lib/python3.10/site-packages/use_case/metrics.py", line 55, in <listcomp>
compute_metrics(truth[:, h], prediction[:, h])[cst.Metrics.F1.value]
File "/home/personal/Documents/Personal/Documents/aqora/quantum-signals-lob/.venv/lib/python3.10/site-packages/use_case/metrics.py", line 19, in compute_metrics
cr = classification_report(truth, prediction, output_dict=True, zero_division=0)
File "/home/personal/Documents/Personal/Documents/aqora/quantum-signals-lob/.venv/lib/python3.10/site-packages/sklearn/utils/_param_validation.py", line 213, in wrapper
return func(*args, **kwargs)
File "/home/personal/Documents/Personal/Documents/aqora/quantum-signals-lob/.venv/lib/python3.10/site-packages/sklearn/metrics/_classification.py", line 2626, in classification_report
y_type, y_true, y_pred = _check_targets(y_true, y_pred)
File "/home/personal/Documents/Personal/Documents/aqora/quantum-signals-lob/.venv/lib/python3.10/site-packages/sklearn/metrics/_classification.py", line 103, in _check_targets
check_consistent_length(y_true, y_pred)
File "/home/personal/Documents/Personal/Documents/aqora/quantum-signals-lob/.venv/lib/python3.10/site-packages/sklearn/utils/validation.py", line 457, in check_consistent_length
raise ValueError(
ValueError: Found input variables with inconsistent numbers of samples: [1, 32]
[2 FAIL] Evaluation error
Failed to run pipeline ERROR Oh no! Failed to run pipeline
To try and fix this, you can:
- Check the above error and try again
2
Posted by hasarinduperera • (edited)