Skip to main content

Deep Learning

What is Deep learning?
Deep learning is a subset of machine learning. It use cascade of many hidden layer of non-linear processing unit for feature extraction and Transformation.

Deep learning works on the basis of ANN(Artificial Neural Network), Where ANN is inspired or Bio-mimics of Human brain.

Each successive layer uses the output of its previous layer.



Where to use DL:

1.Financial Domani
2.Health care
3. Social medial
4.Access the Domain

Few Application:

Recommendation,Prediction,Anomaly detection,Drug Detection, Automatic car.

Gradient Descent Python code:

import numpy as np
def gradient_descent(x,y):
    m=b=0
    iterations =10
    
    n=len(x)
    learning_rate = 0.001

    for i in range(iterations):
      y_predicted = m * x + b
      cost=1/n * sum([val**2 for val in (y-y_predicted)])
      md = -2/n * sum(x*(y-y_predicted))
      bd = -2/n * sum(y-y_predicted)

      m_curr = m_curr - learning_rate*md
      b_curr = b_curr - learning_rate*bd
      print("m{}, b{}, cost{}  iteration{}".format(m, b, cost, i))

x = np.array([1,2,3,4,5])
y = np.array([5,10,15,20,25])
gradient_descent(x,y)
  
 

Comments

Post a Comment