MusiteDeep icon indicating copy to clipboard operation
MusiteDeep copied to clipboard

nclass_init is taken as an str, not int. TypeError: range() integer end argument expected, got str.

Open nadzhou opened this issue 4 years ago • 0 comments

Another issue that I face is that the nclass_init variable gets value of str weird enough. Here is the total error:

Traceback (most recent call last):
  File "predict_batch.py", line 184, in <module>
    main()         
  File "predict_batch.py", line 104, in main
    predictproba=batch_predict(testfrag,models,model,nclass,nclass_init,outputfile)           
  File "predict_batch.py", line 33, in batch_predict
    for ini in range(nclass_init):
TypeError: range() integer end argument expected, got str.

nadzhou avatar Jan 31 '21 08:01 nadzhou