2017-02-23 2 views
0

예제/image-classification/train_mnist.py를 실행하면 TypeError: fit() got an unexpected keyword argument 'monitor'이라고 들었습니다. 나는이 파일에서 아무것도 바꾸지 않았다. 그리고 나는 github에서 최신 버전을 다운로드했습니다.TypeError : fit() mxnet python에서 예상치 못한 키워드 인수 'monitor'가 있습니다.

example\image-classification>python train_mnist.py 
INFO:root:start with arguments Namespace(batch_size=64, disp_batches=100, gpus=N 
one, kv_store='device', load_epoch=None, lr=0.05, lr_factor=0.1, lr_step_epochs= 
'10', model_prefix=None, mom=0.9, monitor=0, network='mlp', num_classes=10, num_ 
epochs=20, num_examples=60000, num_layers=None, optimizer='sgd', test_io=0, top_ 
k=0, wd=0.0001) 
Traceback (most recent call last): 
    File "train_mnist.py", line 76, in <module> 
    fit.fit(args, sym, get_mnist_iter) 
    File "D:\Zhenxingjian\MxNet\mxnet-0.9.3\mxnet-0.9.3\example\image-classificati 
on\common\fit.py", line 183, in fit 
    monitor   = monitor) 
TypeError: fit() got an unexpected keyword argument 'monitor' 

답변

1

v09.3, v0.9.5 및 v0.10.0에서 train_mnist.py 예제를 성공적으로 실행할 수있었습니다. 그래도 문제가 지속되면 최신 버전을 체크 아웃하고 다시 시도하십시오.

관련 문제