Skip to content

unsupported operand type(s) for +: 'int' and 'NoneType' #1

@mrmrn

Description

@mrmrn

hi,
I used the code, every step runs ok but the final step gave me this error:

marn@mint18 ~/c/t/textclusteringDBSCAN> python 6_main_module.py
Traceback (most recent call last):
  File "6_main_module.py", line 38, in <module>
    init_threshold = find_near_threshold()	
  File "6_main_module.py", line 32, in find_near_threshold
    scorex = scorex + scr
TypeError: unsupported operand type(s) for +: 'int' and 'NoneType'

how to get rid of this error?

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