Skip to content

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

@nadzhou

Description

@nadzhou

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions