biigle / maia

:m: BIIGLE module for the Machine Learning Assisted Image Annotation method
GNU General Public License v3.0
2 stars 3 forks source link

Setting an array element with a sequence #31

Closed mzur closed 5 years ago

mzur commented 5 years ago

MAIA job 10 got this error:

Error while executing python command '/var/www/vendor/biigle/maia/src/config/../resources/scripts/novelty-detection/DetectionRunner.py /var/www/storage/maia_jobs/maia-10-novelty-detection/input.json':
Traceback (most recent call last):
  File "/var/www/vendor/biigle/maia/src/config/../resources/scripts/novelty-detection/DetectionRunner.py", line 120, in <module>
    runner.run()
  File "/var/www/vendor/biigle/maia/src/config/../resources/scripts/novelty-detection/DetectionRunner.py", line 57, in run
    clusters = images.make_clusters(number=self.clusters)
  File "/var/www/vendor/biigle/maia/src/resources/scripts/novelty-detection/ImageCollection.py", line 54, in make_clusters
    pca_features = PCA(n_components=2, copy=False).fit_transform(pca_features)
  File "/usr/local/lib/python3.5/dist-packages/sklearn/decomposition/pca.py", line 359, in fit_transform
    U, S, V = self._fit(X)
  File "/usr/local/lib/python3.5/dist-packages/sklearn/decomposition/pca.py", line 381, in _fit
    copy=self.copy)
  File "/usr/local/lib/python3.5/dist-packages/sklearn/utils/validation.py", line 522, in check_array
    array = np.asarray(array, dtype=dtype, order=order)
  File "/usr/local/lib/python3.5/dist-packages/numpy/core/numeric.py", line 501, in asarray
    return array(a, dtype, copy=False, order=order)
ValueError: setting an array element with a sequence.