shinTB icon indicating copy to clipboard operation
shinTB copied to clipboard

missing 1 required positional argument: 'outputdrawer'

Open rohitsaluja22 opened this issue 7 years ago • 2 comments

Getting this error when I run "runner = runner.Runner(config, graphdrawer, dataloader, dbcontrol)" :- Traceback (most recent call last): File "", line 1, in TypeError: init() missing 1 required positional argument: 'outputdrawer'

rohitsaluja22 avatar Jan 18 '18 12:01 rohitsaluja22

Hi. While not in the documentation, I fixed that by changing the shintb import to:

from shintb import graph_drawer, output_drawer, default_box_control, svt_data_loader, runner

then adding the variable with runner:

outputdrawer = output_drawer.OutputDrawer(config, dbcontrol)

runner = runner.Runner(config, graphdrawer, dataloader, dbcontrol, outputdrawer)

I also found that with runner.train() you need two args, being a name for the training set, and an int to iterate to with training cycles. ie runner.train('train_data', 2000). Hope this helps you :)

MattBSG avatar Feb 16 '18 23:02 MattBSG

@MattBSG in your case, how many training iterations did you do to achieve fairly good results? Thanks.

gaalejandre avatar Nov 13 '19 13:11 gaalejandre