
sem6_ai_week_8_formula_code

Quiz
•
Computers
•
University
•
Hard
Sujan Pandey
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In TF‑IDF code, the weight for term t is often computed as
tf[t] / (idf[t] + 1e‑9)
np.exp(tf[t] * idf[t])
tf[t] ** idf[t]
tf[t] * idf[t]
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Keras Tokenizer converts text to indices through the call
tokenizer.join_texts(texts)
tokenizer.pad_on_texts(texts)
tokenizer.mask_texts(texts)
tokenizer.texts_to_sequences(texts)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The cosine similarity formula in numpy can be written as
np.dot(u,v)
np.sum(u-v)
np.linalg.norm(u*v)
np.dot(u,v)/(np.linalg.norm(u)*np.linalg.norm(v))
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To pad sequences post‑style you would use
pad_sequences(seq, padding='pre')
pad_sequences(seq, padding='mid')
pad_sequences(seq, truncating='post')
pad_sequences(seq, padding='post')
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Word2Vec Skip‑gram negative sampling, training loss per pair is
log(sigmoid(pos))
sigmoid(neg) - pos
mean_squared_error(pos,neg)
‑log(sigmoid(pos)) ‑ Σ log(sigmoid(‑neg_i))
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
FastText builds subword keys with the code
for w in words: make_wordpiece(w)
for c in chars: merge_pair(c)
ngrams = None
for i in range(len(word)): ngrams.add(word[i:j])
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
One‑hot encoding size in code is derived from
np.unique(labels).shape[1]
len(texts)
embedding_dim
len(tokenizer.word_index) + 1
Create a free account and access millions of resources
Similar Resources on Wayground
28 questions
Câu hỏi về Rút trích đặc trưng

Quiz
•
University
25 questions
Design And Analysis of Algorithms

Quiz
•
University
30 questions
Les bases de la programmation en Python

Quiz
•
University
25 questions
Simple TensorFlow Quiz

Quiz
•
University
25 questions
Pandas, NumPy, and Matplotlib Basics Quiz

Quiz
•
University
30 questions
Python Mock

Quiz
•
University
26 questions
Python Pandas Quiz

Quiz
•
University
30 questions
Kuis Metode Brute Force

Quiz
•
University
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
11 questions
NFL Football logos

Quiz
•
KG - Professional Dev...
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
38 questions
Unit 6 Key Terms

Quiz
•
11th Grade - University
20 questions
La Hora

Quiz
•
9th Grade - University
7 questions
Cell Transport

Interactive video
•
11th Grade - University
7 questions
What Is Narrative Writing?

Interactive video
•
4th Grade - University