Question: Suppose you have two 100D feature vectors A and B. A = rand(100,1); B = rand(100,1); Please use Numpy to compute their Lo norm

Suppose you have two 100D feature vectors A and B. A =

Suppose you have two 100D feature vectors A and B. A = rand(100,1); B = rand(100,1); Please use Numpy to compute their Lo norm feature distance: ||A-B||- and their L norm feature distance: ||A-B||1 and their L2 norm feature distance: ||A-B|| 2.

Step by Step Solution

3.54 Rating (157 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

import numpy as np Generate random 100dimensional v... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!