I want to run Lasso regression using TensorFlow. As the Lasso regression is simply adding L1-norm to the cost, I am going to define my cost term as
cost = RSS + tf.nn.l1_norm(Weight) or
cost = RSS + tf.reduce_sum(tf.abs(Weight))
train = tf.train.GradientDescentOptimizer(cost)
Is the above code work as a Lasso regression? One of my question is if I can use gradient descent in this case. Lasso regression has non-diffrentiable point and coordinate descent is widely used that does not exist in the TensorFlow library.