What is Artificial Intelligence?
Artificial Intelligence: A field of computer science that aims to make
computers achieve human-style intelligence. There are many approaches to
reaching this goal, including machine learning and deep learning.
Machine Learning: A set of related techniques in which computers are
trained to perform a particular task rather than by explicitly programming
them.
Neural Network: A construct in Machine Learning inspired by the network of
neurons (nerve cells) in the biological brain. Neural networks are a
fundamental part of deep learning, and will be covered in this course.
Deep Learning: A subfield of machine learning that uses multi-layered neural
networks. Often, “machine learning” and “deep learning” are used
interchangeably.
But, In addition to Python, you can create Tensor Flow models in JavaScript
using [Link]. Tensor Flow also has other language bindings, with
various degrees of support, including: Swift, R, and Julia. Python and
JavaScript are currently the most complete language implementations
however.
Welcome to this Colab where you will get a quick introduction to the Python
programming language and the environment used for the course's exercises:
Colab.
Colab is a Python development environment that runs in the browser using
Google Cloud.
For example, to print "Hello World", just hover the mouse over [ ] and press
the play button to the upper left. Or press shift-enter to execute.
Eg : Code 1
# Never mind this statement, for compatibility reasons
from __future__ import absolute_import, division, print_function, unicode_literals
What is Artificial Intelligence?
print("Hello World")
Now, Let's create a Python function, and call it from a loop.
Eg : Code 2
def HelloWorldXY(x, y):
if (x < 10):
print("Hello World, x was < 10")
elif (x < 20):
print("Hello World, x was >= 10 but < 20")
else:
print("Hello World, x was >= 20")
return x + y
for i in range(8, 25, 5): # i=8, 13, 18, 23 (start, stop, step)
print("--- Now running with i: {}".format(i))
r = HelloWorldXY(i,i)
print("Result from HelloWorld: {}".format(r))