Traceback (most recent call last):


 "<ipython-input-2-84e926dec73f>", line 8, in <module>

ransac_estimator.fit(X, y)


 "/Users/ogrisel/code/scikit-learn/sklearn/linear_model/_ransac.py", line 439, in fit

raise ValueError(
ValueError: RANSAC could not find a valid consensus set. All `max_trials` iterations were skipped because each randomly chosen sub-sample failed the passing criteria. See estimator attributes for diagnostics (n_skips*).

Traceback (most recent call last):


 "/run/media/zenbook/work/phd/work/__/pb1.py", line 26, in <module>

test(masked=True); print('Test 2 passed')


 "/home/zenbook/miniconda3/envs/tfn/lib/python3.7/site-packages/tensorflow/python/eager/def_function.py", line 580, in __call__

result = self._call(*args, **kwds)


 "/home/zenbook/miniconda3/envs/tfn/lib/python3.7/site-packages/tensorflow/python/eager/def_function.py", line 611, in _call

return self._stateless_fn(*args, **kwds)
# pylint: disable=not-callable


 "/home/zenbook/miniconda3/envs/tfn/lib/python3.7/site-packages/tensorflow/python/eager/function.py", line 2419, in __call__

graph_function, args, kwargs = self._maybe_define_function(args, kwargs)


 "/home/zenbook/miniconda3/envs/tfn/lib/python3.7/site-packages/tensorflow/python/eager/function.py", line 2777, in _maybe_define_function

graph_function = self._create_graph_function(args, kwargs)


 "/home/zenbook/miniconda3/envs/tfn/lib/python3.7/site-packages/tensorflow/python/eager/function.py", line 2667, in _create_graph_function

capture_by_value=self._capture_by_value),


 "/home/zenbook/miniconda3/envs/tfn/lib/python3.7/site-packages/tensorflow/python/framework/func_graph.py", line 981, in func_graph_from_py_func

func_outputs = python_func(*func_args, **func_kwargs)


 "/home/zenbook/miniconda3/envs/tfn/lib/python3.7/site-packages/tensorflow/python/eager/def_function.py", line 441, in wrapped_fn

return weak_wrapped_fn().__wrapped__(*args, **kwds)


 "/home/zenbook/miniconda3/envs/tfn/lib/python3.7/site-packages/tensorflow/python/framework/func_graph.py", line 968, in wrapper

raise e.ag_error_metadata.to_exception(e)
ValueError: in user code:
