-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
306 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"# Differnce between DP-Ml-AI\n", | ||
"<br><br>\n", | ||
"\n", | ||
"\n", | ||
"\n", | ||
"\n", | ||
"## Deep Learning \n", | ||
"\n", | ||
"https://www.youtube.com/watch?v=1G0e-mR9a4k\n", | ||
"\n", | ||
"\n", | ||
"Deep learning (also known as deep structured learning, hierarchical learning, or deep machine learning) is the study of artificial neural networks and related machine learning algorithms that contain more than one hidden layer.\n", | ||
"\n", | ||
"Deep learning is a special type of machine-learning algorithm—it is multiple layers of neural networks that mimic the connectivity of the brain, and these types of connectivity seem to work much better than pre-existing systems,” said Samarjit Das, a senior research scientist at Bosch. \n", | ||
"<br><br>\n", | ||
"“We currently have to define parameters for machine learning based on our human experience. When we look at images of apples and oranges, we need to define features manually, so that machine-learning systems can identify the difference. Deep learning is the next level because it can create those distinctions on its own. By just showing sample images of apples and oranges to a deep-learning system, **it will create its own rules** realizing that color and geometry are the key features that distinguish which are which, and not have to teach it based off human knowledge.”\n", | ||
"\n", | ||
" \n", | ||
"\n", | ||
"## Machine Learning\n", | ||
"\n", | ||
"In simple words, it is a method of teaching computers to make predictions based on some data.<br>\n", | ||
"\n", | ||
"Machine Learning: A type of AI that can include but isn’t limited to neural networks and deep learning. Generally, it is the ability for a computer to output or do something that it wasn’t programmed to do.<br>\n", | ||
"https://www.youtube.com/watch?v=f_uwKZIAeM0\n", | ||
"\n", | ||
"\n", | ||
"https://www.youtube.com/watch?v=ty-kTUzMnjk\n", | ||
"\n", | ||
"\n", | ||
"Let's see what Sundar Pichai wants to tell for this -<br> https://www.youtube.com/watch?v=5cFUZ03Sbhc\n", | ||
"\n", | ||
"https://www.intel.com/content/www/us/en/analytics/ai-luminary-reza-zadeh-video.html\n", | ||
"\n", | ||
"\n", | ||
"** Artificial Intelligence and Machine learning\"**\n", | ||
"https://www.youtube.com/watch?v=1eBxt9HUfh8\n", | ||
"\n", | ||
"\n", | ||
"## Artificial Intelligence\n", | ||
"Artificial Intelligence (AI) is usually defined as the science of making computers do things that require intelligence when done by humans.\n", | ||
"\n", | ||
"https://www.youtube.com/watch?v=fvtrRGmv7aU\n", | ||
"\n", | ||
"## Types of AI \n", | ||
"- Weak \n", | ||
"- Strong\n", | ||
"\n", | ||
"### Weak AI : \n", | ||
"It might behave as though a robot or manufacturing line is thinking on its own. However, it’s supervised programming, which means there is a programmed output, or action for given inputs. \n", | ||
"\n", | ||
"\n", | ||
"### Strong AI \n", | ||
"It is a system that might actually change an output based on given goals and input data. A program could do something it wasn’t programmed to if it notices a pattern and determines a more efficient way of accomplishing the goal it was given. \n" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"metadata": { | ||
"collapsed": true | ||
}, | ||
"outputs": [], | ||
"source": [] | ||
} | ||
], | ||
"metadata": { | ||
"kernelspec": { | ||
"display_name": "Python 2", | ||
"language": "python", | ||
"name": "python2" | ||
}, | ||
"language_info": { | ||
"codemirror_mode": { | ||
"name": "ipython", | ||
"version": 2 | ||
}, | ||
"file_extension": ".py", | ||
"mimetype": "text/x-python", | ||
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython2", | ||
"version": "2.7.13" | ||
} | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 2 | ||
} |
117 changes: 117 additions & 0 deletions
117
Activation Functions/.ipynb_checkpoints/Activation Functions-checkpoint.ipynb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"# Activation Functions \n", | ||
"\n", | ||
"### Definition \n", | ||
"It’s just a thing (node) that you add to the output end of any neural network. It is also known as Transfer Function. It can also be attached in between two Neural Networks.\n", | ||
"\n", | ||
"### Why ?\n", | ||
"\n", | ||
"It is used to determine the output of neural network like yes or no. It maps the resulting values in between 0 to 1 or -1 to 1 etc. (depending upon the function).\n", | ||
"\n", | ||
"**The Activation Functions can be basically divided into 2 types-**\n", | ||
"- Linear Activation Functions\n", | ||
"- Non Linear Activation Functions\n", | ||
"\n", | ||
"### Linear or Identity Activation Function\n", | ||
"As you can see the function is a line or linear.Therefore, the output of the functions will not be confined between any range.\n", | ||
"<br>\n", | ||
"\n", | ||
"\n", | ||
"*Equation* : f(x) = x<br>\n", | ||
"*Range* : (-infinity to infinity)<br>\n", | ||
"It doesn’t help with the complexity or various parameters of usual data that is fed to the neural networks.\n", | ||
"\n", | ||
"### Non-linear Activation Function\n", | ||
"\n", | ||
"The Nonlinear Activation Functions are the most used activation functions. Nonlinearity helps to makes the graph look something like this :\n", | ||
"<br>\n", | ||
"\n", | ||
"\n", | ||
"It makes it easy for the model to generalize or adapt with variety of data and to differentiate between the output.\n", | ||
"<br>\n", | ||
"The main terminologies needed to understand for nonlinear functions are:\n", | ||
"\n", | ||
"The Nonlinear Activation Functions are mainly divided on the basis of their **range or curves-**\n", | ||
"\n", | ||
"#### 1. Sigmoid or Logistic Activation Function\n", | ||
"\n", | ||
"The Sigmoid Function curve looks like a S-shape.\n", | ||
"<br>\n", | ||
"\n", | ||
"\n", | ||
"The main reason why we use sigmoid function is because it exists between (0 to 1). \n", | ||
"It is used to predict probability as an output.\n", | ||
"<br>\n", | ||
"*The function is differentiable.That means, we can find the slope of the sigmoid curve at any two points.\n", | ||
"The function is monotonic but function’s derivative is not*\n", | ||
"\n", | ||
"### Be Quick :\n", | ||
"> Why is it used to predict probability as an output?\n", | ||
"\n", | ||
"#### 2. Tanh or hyperbolic tangent Activation Function\n", | ||
"tanh is also like logistic sigmoid but better. The range of the tanh function is from (-1 to 1). tanh is also sigmoidal (s - shaped).\n", | ||
"<br>\n", | ||
"\n", | ||
"\n", | ||
"The advantage is that the negative inputs will be mapped strongly negative and the zero inputs will be mapped near zero in the tanh graph.\n", | ||
"*The function is differentiable.\n", | ||
"The function is monotonic while its derivative is not.*\n", | ||
"\n", | ||
"**The tanh function is mainly used classification between two classes.**\n", | ||
"\n", | ||
"#### 3. ReLU (Rectified Linear Unit) Activation Function\n", | ||
"The ReLU is the most used activation function in the world right now.Since, it is used in almost all the convolutional neural networks or deep learning.\n", | ||
"<br>\n", | ||
"\n", | ||
"\n", | ||
"*The function and its derivative both are monotonic.*\n", | ||
"\n", | ||
"**Issue with ReLu :** All the negative values become zero immediately which decreases the ability of the model to fit or train from the data properly. That means any negative input given to the ReLU activation function turns the value into zero immediately in the graph, which in turns affects the resulting graph by not mapping the negative values appropriately.\n", | ||
"\n", | ||
"#### 4. Leaky ReLU\n", | ||
"It is an attempt to solve the dying ReLU problem\n", | ||
"<br>\n", | ||
"\n", | ||
"\n", | ||
"The leak helps to increase the range of the ReLU function.Usually, the value of a is 0.01 or so.<br>\n", | ||
"When a is not 0.01 then it is called Randomized ReLU.<br>\n", | ||
"Therefore the range of the Leaky ReLU is (-infinity to infinity).<br>\n", | ||
"\n", | ||
"*Both Leaky and Randomized ReLU functions are monotonic in nature. Also, their derivatives also monotonic in nature*\n", | ||
"\n", | ||
"**Why derivative/differentiation is used ?**\n", | ||
"When updating the curve, to know in which direction and how much to change or update the curve depending upon the slope.That is why we use differentiation in almost every part of Machine Learning and Deep Learning.\n", | ||
"<br>\n", | ||
"\n", | ||
"\n", | ||
"\n" | ||
] | ||
} | ||
], | ||
"metadata": { | ||
"kernelspec": { | ||
"display_name": "Python 2", | ||
"language": "python", | ||
"name": "python2" | ||
}, | ||
"language_info": { | ||
"codemirror_mode": { | ||
"name": "ipython", | ||
"version": 2 | ||
}, | ||
"file_extension": ".py", | ||
"mimetype": "text/x-python", | ||
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython2", | ||
"version": "2.7.13" | ||
} | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 2 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"# Differnce between DP-Ml-AI\n", | ||
"<br><br>\n", | ||
"\n", | ||
"\n", | ||
"\n", | ||
"\n", | ||
"## Deep Learning \n", | ||
"\n", | ||
"https://www.youtube.com/watch?v=1G0e-mR9a4k\n", | ||
"\n", | ||
"\n", | ||
"Deep learning (also known as deep structured learning, hierarchical learning, or deep machine learning) is the study of artificial neural networks and related machine learning algorithms that contain more than one hidden layer.\n", | ||
"\n", | ||
"Deep learning is a special type of machine-learning algorithm—it is multiple layers of neural networks that mimic the connectivity of the brain, and these types of connectivity seem to work much better than pre-existing systems,” said Samarjit Das, a senior research scientist at Bosch. \n", | ||
"<br><br>\n", | ||
"“We currently have to define parameters for machine learning based on our human experience. When we look at images of apples and oranges, we need to define features manually, so that machine-learning systems can identify the difference. Deep learning is the next level because it can create those distinctions on its own. By just showing sample images of apples and oranges to a deep-learning system, **it will create its own rules** realizing that color and geometry are the key features that distinguish which are which, and not have to teach it based off human knowledge.”\n", | ||
"\n", | ||
" \n", | ||
"\n", | ||
"## Machine Learning\n", | ||
"\n", | ||
"In simple words, it is a method of teaching computers to make predictions based on some data.<br>\n", | ||
"\n", | ||
"Machine Learning: A type of AI that can include but isn’t limited to neural networks and deep learning. Generally, it is the ability for a computer to output or do something that it wasn’t programmed to do.<br>\n", | ||
"https://www.youtube.com/watch?v=f_uwKZIAeM0\n", | ||
"\n", | ||
"\n", | ||
"https://www.youtube.com/watch?v=ty-kTUzMnjk\n", | ||
"\n", | ||
"\n", | ||
"Let's see what Sundar Pichai wants to tell for this -<br> https://www.youtube.com/watch?v=5cFUZ03Sbhc\n", | ||
"\n", | ||
"https://www.intel.com/content/www/us/en/analytics/ai-luminary-reza-zadeh-video.html\n", | ||
"\n", | ||
"\n", | ||
"** Artificial Intelligence and Machine learning\"**\n", | ||
"https://www.youtube.com/watch?v=1eBxt9HUfh8\n", | ||
"\n", | ||
"\n", | ||
"## Artificial Intelligence\n", | ||
"Artificial Intelligence (AI) is usually defined as the science of making computers do things that require intelligence when done by humans.\n", | ||
"\n", | ||
"https://www.youtube.com/watch?v=fvtrRGmv7aU\n", | ||
"\n", | ||
"## Types of AI \n", | ||
"- Weak \n", | ||
"- Strong\n", | ||
"\n", | ||
"### Weak AI : \n", | ||
"It might behave as though a robot or manufacturing line is thinking on its own. However, it’s supervised programming, which means there is a programmed output, or action for given inputs. \n", | ||
"\n", | ||
"\n", | ||
"### Strong AI \n", | ||
"It is a system that might actually change an output based on given goals and input data. A program could do something it wasn’t programmed to if it notices a pattern and determines a more efficient way of accomplishing the goal it was given. \n" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"metadata": { | ||
"collapsed": true | ||
}, | ||
"outputs": [], | ||
"source": [] | ||
} | ||
], | ||
"metadata": { | ||
"kernelspec": { | ||
"display_name": "Python 2", | ||
"language": "python", | ||
"name": "python2" | ||
}, | ||
"language_info": { | ||
"codemirror_mode": { | ||
"name": "ipython", | ||
"version": 2 | ||
}, | ||
"file_extension": ".py", | ||
"mimetype": "text/x-python", | ||
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython2", | ||
"version": "2.7.13" | ||
} | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 2 | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.