`TypeError` on `model train --n-jobs`
AlexVanMechelen opened this issue · comments
Steps to reproduce
dataset make test -n 300 -f PE
model train test -A rf --n-jobs 32
Traceback
┌──[user@packing-box]──[/mnt/share]──[main|✓]──────── ────[172.17.0.2]──[16:50:04]────
$ model train test -A svm --n-jobs 32
00:00:01.080 [INFO] Selected algorithm: Support Vector Machine
Traceback (most recent call last):
File "/home/user/.opt/tools/model", line 114, in <module>
getattr(Model(**vars(args)), args.command)(**vars(args))
File "/home/user/.local/lib/python3.11/site-packages/pbox/core/model/__init__.py", line 471, in train
if n_jobs > n_cpu:
^^^^^^^^^^^^^^
TypeError: '>' not supported between instances of 'str' and 'int'