Error while running the code

Hello Nancy,

welcome to Python discussions.

Please next time do not send text in pictures. It is hard to work with.

You did not provide any information in addition to the exception traceback so we can only help you interpreting it.

The last line shows the error message and it looks like it explains the problem well. I do not know any details about sklearn but it looks like your problem is that you do not provide any samples? (n_samples=0)

The code at line 70 of the number-named .py file seems to be your code which is in the chain of causes for the exception. Probably some of its arguments causes the above mentioned value: n_samples=0