Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 1.12 KB

5.Logistic_Classification.md

File metadata and controls

23 lines (17 loc) · 1.12 KB

Rogistic Classification

  • Spame Detection : Spam or Ham
  • Facebook feed : show or hide

image

  • 위와 같은 그래프로 linear algorithm 을 정의하면 문제가 있음. 예를 들어 50시간 공부한 사람은 Pass 겠지만, 그래프에서는 fail로 표시됨.

Sigmoid

image image image image image

cost = -tf.reduce_mean(Y * tf.log(hypothesis) + (1-Y)*tf.log(1-hypothesis))

a = tf.Variable(0.1)
optimizer = tf.train.GradientDescentOptimizer(a)
train = optimizer.minimize(cost)