I want to use euclidean distance to match the predicted support vector with the tested support vector.
I need to set a distance threshold and calculate the distance between predicted label and tested label. If the calculated distance <= distance threshold, then it will be a match, else a non-match.
Could you help me with the coding?

Sorry. You do the coding. Then we can look at it and critique it. We don't give you the answers to your schoolwork.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.