Plot_loss_curve() takes 1 positional argument but 2 were given
时间: 2023-11-07 12:43:39 浏览: 108
This error message indicates that the function `Plot_loss_curve()` was called with too many arguments. The function expects only one positional argument, but it was passed two.
To fix this error, you can check the function definition and make sure that it only accepts one argument. You can also check where the function is called and make sure that only one argument is passed to it.
If you need to pass more than one argument to the function, you can modify the function definition to accept additional arguments, or you can pass the extra argument as a keyword argument.
阅读全文