0
0
AI for Everyoneknowledge~10 mins

What is generative AI and why it exploded in AI for Everyone - Interactive Quiz & Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to define a generative AI model that creates new data.

AI for Everyone
model = [1]()
Drag options to blanks, or click blank then click option'
AGenerativeModel
BDiscriminativeModel
CRegressionModel
DClusteringModel
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing a model that only classifies data instead of generating it.
2fill in blank
medium

Complete the code to train a generative AI model on data.

AI for Everyone
model.train([1])
Drag options to blanks, or click blank then click option'
Alabels
Btest_data
Cvalidation_data
Dtraining_data
Attempts:
3 left
💡 Hint
Common Mistakes
Using test or validation data for training.
3fill in blank
hard

Fix the error in the code to generate new data from the model.

AI for Everyone
new_data = model.[1]()
Drag options to blanks, or click blank then click option'
Apredict
Bfit
Cgenerate
Devaluate
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'predict' which is for classification or regression.
4fill in blank
hard

Fill both blanks to create a dictionary of generated samples with their lengths.

AI for Everyone
samples = {sample: len(sample) for sample in model.[1]() if len(sample) [2] 5}
Drag options to blanks, or click blank then click option'
Agenerate
B>
C<
Dpredict
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'predict' instead of 'generate'.
Using '<' instead of '>' for filtering.
5fill in blank
hard

Fill all three blanks to create a filtered dictionary of generated samples with their lengths.

AI for Everyone
filtered = {sample[1]: len(sample) for sample in model.[2]() if len(sample) [3] 10}
Drag options to blanks, or click blank then click option'
A.upper()
Bgenerate
C>
Dpredict
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'predict' instead of 'generate'.
Not transforming keys to uppercase.
Using '<' instead of '>'.