小编Ash*_*Roy的帖子

Confusion Matrix ValueError: Classification metrics can't handle a mix of binary and continuous targets

I'm currently trying to make a confusion matrix for my neural network model, but keep getting this error:

ValueError: Classification metrics can't handle a mix of binary and continuous targets.
Run Code Online (Sandbox Code Playgroud)

I have a peptide dataset that I'm using with 100 positive and 100 negative examples, and the labels are 1s and 0s. I've converted each peptide into a Word2Vec embedding that was put into a ML model and trained.

This is my code:

pos = "/content/drive/MyDrive/pepfun/Training_format_pos (1).txt"
neg = "/content/drive/MyDrive/pepfun/Training_format_neg.txt" …
Run Code Online (Sandbox Code Playgroud)

python machine-learning neural-network keras tensorflow

4
推荐指数
1
解决办法
1万
查看次数