Supervised Learning - Softmax Classfication (multi-variable 2)
Softmax Classifiation : 주어진 입력에 따라 3개 이상의 class에서의 예측 (=Multi Classification) Linear : H(x) ∈ (-inf, inf) Softmax : H(x) ∈ [0,1] Step1) Hypothesis Step2) Cost function Step3) Training - gradient descent method Tensorflow w/ min-max scaling #load module import numpy as np import tensorflow as tf import matplotlib.pyplot as plt #input & label x_input = tf.constant([[25,22],[25,26],[25,30],[35,22],..
2023. 8. 6.
Supervised Learning - Softmax Classification (multi-variable 1)
Softmax Classifiation : 주어진 입력에 따라 3개 이상의 class에서의 예측 (=Multi Classification) Linear : H(x) ∈ (-inf, inf) Softmax : H(x) ∈ [0,1] Step1) Hypothesis Step2) Cost function Step3) Training - gradient descent method Numpy w/o min-max scaling #load module import numpy as np import matplotlib.pyplot as plt #input & label x_input = np.array([[1, 1], [2, 2.5], [2.5, 1.3], [4.3, 9.5], [5.5, 7.0], [6, 8.2],..
2023. 8. 6.