π» Coding Mission
Vectors in NumPy
Click Run to start Python
Four tasks using what you just learned. You are modeling a simple visual neuron that receives signals from retinal neurons. Task 1: Create a firing rate vector for 3 neurons (rates: 10, 50, 2 Hz). Task 2: Compute its length using np.linalg.norm. Task 3: Normalize it to a unit vector. Task 4: Compute the LGN neuron's activity using np.dot with weights [4, 3, 1].
Hints (only if you're stuck!)
solution.py
β Loading...