You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/test_scikit_learn_issue/test.py", line 13, in <module>
mae = mean_absolute_error(y_test, y_pred)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/lib/python3.11/site-packages/sklearn/utils/_param_validation.py", line 213, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/lib/python3.11/site-packages/sklearn/metrics/_regression.py", line 216, in mean_absolute_error
y_type, y_true, y_pred, multioutput = _check_reg_targets(
^^^^^^^^^^^^^^^^^^^
File "/lib/python3.11/site-packages/sklearn/metrics/_regression.py", line 112, in _check_reg_targets
y_true = check_array(y_true, ensure_2d=False, dtype=dtype)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/lib/python3.11/site-packages/sklearn/utils/validation.py", line 1107, in check_array
array.flags.writeable = True
^^^^^^^^^^^^^^^^^^^^^
ValueError: cannot set WRITEABLE flag to True of this array
Describe the bug
Original issue: kedro-org/kedro#3674
Relates to #28824, #29103, #28899
The example below fails on validation step with
ValueError: cannot set WRITEABLE flag to True of this array
.Steps/Code to Reproduce
Attaching the contents of
_data
: _data.zipExpected Results
No error is thrown.
Actual Results
Versions
The text was updated successfully, but these errors were encountered: