0
0
AI for Everyoneknowledge~10 mins

What is a neural network (simplified) 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 create a simple neural network layer using Python.

AI for Everyone
layer_output = input_data [1] weights + bias
Drag options to blanks, or click blank then click option'
A*
B/
C-
D+
Attempts:
3 left
💡 Hint
Common Mistakes
Using + instead of * causes wrong calculations.
2fill in blank
medium

Complete the code to apply an activation function to the neural network output.

AI for Everyone
activated_output = [1](layer_output)
Drag options to blanks, or click blank then click option'
Amax
Brelu
Csum
Dmin
Attempts:
3 left
💡 Hint
Common Mistakes
Using sum or max does not apply activation correctly.
3fill in blank
hard

Fix the error in the code to calculate the prediction from inputs and weights.

AI for Everyone
prediction = [1](inputs, weights)
Drag options to blanks, or click blank then click option'
Adot
Bsubtract
Cdivide
Dadd
Attempts:
3 left
💡 Hint
Common Mistakes
Using add or subtract does not combine inputs and weights correctly.
4fill in blank
hard

Fill both blanks to create a dictionary of squared inputs greater than 5.

AI for Everyone
result = {x: x[1]2 for x in inputs if x [2] 5}
Drag options to blanks, or click blank then click option'
A**
B>
C<
D+
Attempts:
3 left
💡 Hint
Common Mistakes
Using '+' instead of '**' or '<' instead of '>' causes wrong results.
5fill in blank
hard

Fill all three blanks to create a filtered dictionary with uppercase keys and values greater than 10.

AI for Everyone
filtered = [1]: [2] for [3], [2] in data.items() if [2] > 10
Drag options to blanks, or click blank then click option'
Ak.upper()
Bv
Ck
Ditem
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'item' instead of 'k' or not converting keys to uppercase.