All problems
Feature Map Channel Std
Problem
Compute the population standard deviation of each channel in an H x W x C feature map.
Return one value per channel rounded to 4 decimal places.
Test cases
case 1
in: [[[[0,10],[20,30]],[[1,1],[1,1]]]]
expected: [8.3815,11.8427]
case 2
in: [[[[5,5],[5,5]]]]
expected: [0,0]
case 3
in: [[[[1,2],[5,2]],[[2,2],[2,2]]]]
expected: [1.5,0]
Starter codePython
def channel_std(feature):
# Your code here
pass3 test cases · run your code against them in the editor