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
I tried multi classification, but the following error occurs when training. any solution?.
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-97-34924934fd19> in <module>
1 logging.getLogger('small_text').setLevel(logging.INFO)
----> 2 main()
<ipython-input-96-e3cc4fd7354b> in main()
30 for i in range(20):
31 # ...where each iteration consists of labelling 20 samples
---> 32 q_indices = active_learner.query(num_samples=20, x=train)
33
34 # Simulate user interaction here. Replace this for real-world usage.
/opt/anaconda3/envs/small_text/lib/python3.7/site-packages/small_text-1.0.0a4-py3.7.egg/small_text/active_learner.py in query(self, num_samples, x, query_strategy_kwargs)
175
176 self.mask = np.ones(size, bool)
--> 177 self.mask[np.concatenate([self.x_indices_labeled, self.x_indices_ignored])] = False
178 indices = np.arange(size)
179
<__array_function__ internals> in concatenate(*args, **kwargs)
ValueError: all the input arrays must have same number of dimensions, but the array at index 0 has 1 dimension(s) and the array at index 1 has 0 dimension(s)
The text was updated successfully, but these errors were encountered:
Some parts of the examples seem to have not been adapted to recent changes. I fixed this just now and released 1.0.0a6.
If you reinstall now (pip install small-text[pytorch]==1.0.0.a6) this problem should be solved.
In case you are using a newer pytorch version, also have a look at issue #2 (and downgrade pytorch if necessary).
Some parts of the examples seem to have not been adapted to recent changes. I fixed this just now and released 1.0.0a6. If you reinstall now (pip install small-text[pytorch]==1.0.0.a6) this problem should be solved.
In case you are using a newer pytorch version, also have a look at issue #2 (and downgrade pytorch if necessary).
I tried multi classification, but the following error occurs when training. any solution?.
The text was updated successfully, but these errors were encountered: