Fit LinearSVC failed
Issue #661
resolved
Execution failed after running “Fit Linear SVC” without setting any parameters.
Error message:
Traceback (most recent call last):
File "C:/Users/PC/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\site-packages\typeguard\__init__.py", line 903, in wrapper
retval = func(*args, **kwargs)
File "C:/Users/PC/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\enmapboxprocessing\algorithm\fitclassifieralgorithmbase.py", line 88, in processAlgorithm
dump = ClassifierDump(None, None, None, None, classifier)
File "C:/Users/PC/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\site-packages\typeguard\__init__.py", line 902, in wrapper
check_argument_types(memo)
File "C:/Users/PC/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\site-packages\typeguard\__init__.py", line 748, in check_argument_types
raise exc from None
File "C:/Users/PC/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\site-packages\typeguard\__init__.py", line 746, in check_argument_types
check_type(description, value, expected_type, memo)
File "C:/Users/PC/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\site-packages\typeguard\__init__.py", line 641, in check_type
checker_func(argname, value, expected_type, memo)
File "C:/Users/PC/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\site-packages\typeguard\__init__.py", line 448, in check_union
raise TypeError('type of {} must be one of ({}); got {} instead'.
TypeError: type of argument "classifier" must be one of (ClassifierMixin, NoneType); got sklearn.pipeline.Pipeline instead
Execution failed after 0.07 seconds
QGIS Version: 3.16.6
Python: 3.7
EnMap Box: Version 3.7.20210507T061103.TEST
Comments (2)
-
-
- changed status to resolved
resolves
#661→ <<cset 30eed7c26f6f>>
- Log in to comment
Also applies to Gaussian Process, Logistic and SVC