LuisSouto / AIDA

Implementation of the Analytic Isolation Distance-based Anomaly (AIDA) detection algorithm
4 stars 0 forks source link

About AIDA #1

Open houruixiang-1024 opened 6 months ago

houruixiang-1024 commented 6 months ago

Can Aida be used on two tensors? For example, I have a normal sample library tensor. shape of [1536,1536] and an abnormal sample tensor. shape of [784,1536]. How to use the AIDA algorithm to return a similar tensor with a shape of [784,1] for example faiss.IndexFlatL2.search method. Can U help me ☺

LuisSouto commented 5 months ago

Hi! Thanks for your message. Could you elaborate a bit more what you mean by using it on two tensors?

The AIDA algorithm takes as input a multidimensional data set of shape (n x d), where n is the number of observations, and d is the number of features per observation. I'm not sure what you mean by abnormal sample tensor, but if you input a data set of shape (784 x 1536), the method will return a vector of size 784.

Hope this helps! But otherwise let me know.

Best wishes, Luis