ReLU not learning to handle negative inputs Keras / Tensorflow
问题 I want my neural network to convert a negative value into a positive value. Theoretically this can be done using a ReLU function and 1 node which learns the input weight to be -1 (so a negative input is multiplied by -1 = positive input. It just keeps on outputting 0. Code below. I used -1 as input values to see if it could learn on at least a single input. I tried adding more layers but it doesn't help see edit, IT DID help if I add more train_input = np.asarray([[-1]]*10000) # Input arr of