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
File "/home/users/rmadaj/anaconda3/envs/util/lib/python3.9/site-packages/sklearn/cluster/_dbscan.py", line 388, in fit
core_samples = np.asarray(n_neighbors >= self.min_samples, dtype=np.uint8)
TypeError: '>=' not supported between instances of 'numpy.ndarray' and 'str'
As it came out, fix is just adding type=int at declaring args for argparse:
p.add_argument('--min_samples', action='store',default=3, help='Default min_samples for DBSCAN (Default 3, recommended no lower than that).', **type=int**)
Just if somebody had problems declaring minimum samples :)
Regards,
Rafał
The text was updated successfully, but these errors were encountered:
Hello,
I encountered an error trying to run command:
it yields:
As it came out, fix is just adding
type=int
at declaring args for argparse:Just if somebody had problems declaring minimum samples :)
Regards,
Rafał
The text was updated successfully, but these errors were encountered: