Cody

Problem 2181. Hard limit function

Created by Ahmad Alzahrani in Community

Classify x data as

 if x>=0 then  y=1
 if x<0  then  y=0

Example

 x = [ -2 -1  0  1  2]
 y = [  0  0  1  1  1]

Solution Stats

70.05% Correct | 29.95% Incorrect
Last solution submitted on Jul 08, 2019

Problem Comments