packing-box / docker-packing-box

Docker image gathering packers and tools for making datasets of packed executables and training machine learning models for packing detection

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`TypeError` on `model visualize`

AlexVanMechelen opened this issue · comments

Steps to reproduce

dataset make test -n 300 -f PE
model train test -A rf
model visualize test_pe_300_rf_f138 

Traceback

┌──[user@packing-box]──[/mnt/share]──[main|✓]────────                          ────[172.17.0.2]──[16:23:18]────
$ model visualize test_pe_300_rf_f138 
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 609, in visualize
    print(viz_func(c, **params))
          ^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/.local/lib/python3.11/site-packages/pbox/core/model/visualization.py", line 228, in text_rf
    s += sktree.export_text(classifier.estimators_[i], **params)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/.local/lib/python3.11/site-packages/sklearn/utils/_param_validation.py", line 191, in wrapper
    params = func_sig.bind(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/inspect.py", line 3212, in bind
    return self._bind(args, kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/inspect.py", line 3201, in _bind
    raise TypeError(
TypeError: got an unexpected keyword argument 'algo_name'