Skip to content
Advertisement

Tag: machine-learning

ValueError: Classification metrics unable to handle multiclass

I am trying to build a object classification model, but when trying to print out the classification report it returned a value error. ValueError: Classification metrics can’t handle a mix of multiclass and continuous-multioutput targets This is my current code: However, when I attempt to print out the classification report, it ran into this error: Answer Your problem is caused

How can I print the training and validation graphs, and training and validation loss graphs?

I need to plot the training and validation graphs, and trarining and validation loss for my model. Answer history object contains both accuracy and loss for both the training as well as the validation set. We can use matplotlib to plot from that. In these plots x-axis is no_of_epochs and the y-axis is accuracy and loss value. Below is one

Advertisement