top of page

Detecting biases in Word-Emdeddings

Important links:

github link- ( check requirement.txt for dependency)

WEFE will not work if there is any conflict of dependency.

metrics available with WEFE- Word Embedding Association Test (WEAT) Relative Norm Distance (RND) Relative Negative Sentiment Bias (RNSB) Mean Average Cosine (MAC)

know more about the WEFE-

Step 1 -( load the word embedding model)

Here user has to load their embedding ( pre-defined mapping)

Step 2- ( Create a query)

Create the Query with a loaded, fetched or custom target and attribute word sets. In this case, we manually set both target words and attribute words.

Step 3 -Run the WEAT metric from Wefe

1. model checks the dissemilarity of female words between both type of attribues. 2. model chekcs the dissemilarity of male words with both set type of attributes 3. dissemilarity for both the targets( male and female) should be equal.

Step 4- Interpretation of Results

Any postive value represnts that there is indeed a biased relationship between women and the arts with respect to men and science. Any negative value represnts that there is indeed a biased relationship between men and the sciemce with respect to women and arts. Ideal value is 0.

149 views0 comments

Recent Posts

See All

1. What is co-variance matrix- A covariance matrix is a square matrix that describes the covariance between multiple variables. It is commonly used in statistics and probability theory to describe the

bottom of page