Coder Social home page Coder Social logo

Binary classification about ai_19_ss_class HOT 6 OPEN

iammiori avatar iammiori commented on May 23, 2024
Binary classification

from ai_19_ss_class.

Comments (6)

iammiori avatar iammiori commented on May 23, 2024

sigmoid

sigmoid

: curved in two directions (like S)
: logistic function := sigmoid function
sigmoid 때문에 h(x) 는 [0,1] 로 bound 됨

from ai_19_ss_class.

iammiori avatar iammiori commented on May 23, 2024

hypothesis

= 1/ (1+ e^(-W^T * X))

from ai_19_ss_class.

iammiori avatar iammiori commented on May 23, 2024

cost function

  • 기존 linear regression 에 cost function 적용하면 local minima 에 빠짐
  • cost function : 우리의 예측값이 얼마나 정답에 가까운가를 측정하는 척도
  • 말인즉슨, 정답에 가까워 질수록 cost function 값 작게
  • 정답에서 멀어질 수록 cost function 값 크게
  • Y=1 일때는 -log(H(x))
  • Y=0 일때는 -log(1-H(x))
  • cost = -1/m 시그마 {ylog(H(x)) + (1-y)log(1-H(x))}

from ai_19_ss_class.

iammiori avatar iammiori commented on May 23, 2024

Gradient Decent Alogrithm

code 로 나타내면

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

minimize 시키면

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

from ai_19_ss_class.

iammiori avatar iammiori commented on May 23, 2024

Softmax

모든 값이 [0,1]
전체합이 1 (확률정규화)

from ai_19_ss_class.

iammiori avatar iammiori commented on May 23, 2024

One-hot encoding

argmax 써서 확률을 1, 0으로 바꿔줘

Cross-entropy

D(S,L) = - 시그마 Li log(Si)

from ai_19_ss_class.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.