Module 02 · Natural Language Processing & Word Embeddings
Programming Assignment: Operations on Word Vectors - Debiasing编程作业:词向量运算与去偏
You have not submitted. You must earn 50/100 points to pass. 您尚未提交。您必须获得 50/100 分才能通过。
Deadline 截止日期
Pass this assignment by Jan 12, 11:59 PM CST
请于 1 月 12 日晚上 11:59(美中时间)前提交此作业
Welcome to your first assignment of Week 2, Course 5 of the Deep Learning Specialization!
欢迎来到深度学习专项课程第 5 门课第 2 周的第 1 次作业!
Because word embeddings are very computationally expensive to train, most ML practitioners will load a pre-trained set of embeddings. In this notebook you'll try your hand at loading, measuring similarity between, and modifying pre-trained embeddings.
由于词嵌入的训练计算成本非常高,大多数机器学习从业者会加载预训练的嵌入集。在这个笔记本中,你将尝试加载、测量预训练嵌入之间的相似度以及修改预训练嵌入。
At the end of this notebook you'll have a chance to try an optional exercise, where you'll modify word embeddings to reduce their gender bias. Reducing bias is an important consideration in ML and NLP, so you're encouraged to take this challenge!
在笔记本的结尾,您将有机会尝试一个可选练习,在该练习中,您将修改词嵌入以减少其性别偏见。减少偏见是机器学习和自然语言处理中的重要考虑因素,因此鼓励您接受这个挑战!

Instructions: 说明:
-
Do not use loops (for/while) in your code, unless the instructions explicitly ask you to do so.
不要在您的代码中使用循环(for/while),除非说明中明确要求这样做。 -
Some code blocks contain graded functions, where you’ll be expected to write some code. These are marked at the top of the block by a #GRADED FUNCTION comment, and you’ll write your code in between the ### START SOLUTION HERE ### and ###END SOLUTION HERE### comments. Also, look for another comment that indicates roughly how many lines of code it will take to complete. After coding your function, run the cell right below it. This cell checks whether your results are correct, and cannot be modified.
某些代码块包含评分函数,您需要编写一些代码。这些函数在代码块顶部以#评分函数注释标记,您将在### START SOLUTION HERE ###和###END SOLUTION HERE###注释之间编写代码。还要寻找另一个注释,它大致说明了完成代码需要多少行。编写完函数后,运行其下方的单元格。此单元格检查您的结果是否正确,且不能修改。
When you run that cell and see the following:
当你运行该单元格并看到以下内容:
"All tests passed." 所有测试通过。
...You’re in good shape. :)
你状态良好。 :)
Take your time to complete this assignment! After you are done, submit your work and check your results. You need to score 70% to pass. Good luck! :)
请慢慢完成这项作业!完成后,提交你的作品并检查你的结果。你需要得到 70%的分数才能通过。祝你好运! :)
Click on "My Submission" above to see your grades. It might take up to one minute for the graders to process your submission. You will see the point breakdown of your assignment, along with the grader feedback.
点击上方的“我的提交”查看成绩。评分员处理您的提交可能需要长达一分钟。您将看到作业的得分分解以及评分员的反馈。
📎 Operations_on_word_vectors_v2a-7411490c-2641-4941-8fe6-f289791ac0bb.ipynb