mohd-faizy / TF01_Introduction-to-TensorFlow-for-AI-ML-and-DL

TensorFlow for building basic neural network for computer vision and use convolutions to improve your neural network.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tensorflow

TensorFlow is an end-to-end open source platform for machine learning. It has a comprehensive, flexible ecosystem of tools, libraries, and community resources that lets researchers push the state-of-the-art in ML and developers easily build and deploy ML-powered applications.

TensorFlow was originally developed by researchers and engineers working on the Google Brain team within Google's Machine Intelligence Research organization to conduct machine learning and deep neural networks research. The system is general enough to be applicable in a wide variety of other domains, as well.

Why Tensorflow?

  • Easy model building: Build and train ML models easily using intuitive high-level APIs like Keras with eager execution, which makes for immediate model iteration and easy debugging.

  • Robust ML production anywhere: Easily train and deploy models in the cloud, on-prem, in the browser, or on-device no matter what language you use.

  • Powerful experimentation for research: A simple and flexible architecture to take new ideas from concept to code, to state-of-the-art models, and to publication faster.

“Hello World” of machine learning

import tensorflow as tf
import numpy as np
from tensorflow.keras import Sequential
from tensorflow.keras.layers import Dense

l0 = Dense(units=1, input_shape=[1])
model = Sequential([l0])
model.compile(optimizer='sgd', loss='mean_squared_error')

xs = np.array([-1.0, 0.0, 1.0, 2.0, 3.0, 4.0], dtype=float)
ys = np.array([-3.0, -1.0, 1.0, 3.0, 5.0, 7.0], dtype=float)

model.fit(xs, ys, epochs=500)

print(model.predict([10.0]))
print("Here is what I learned: {}".format(l0.get_weights()))

The output was as follows:

Here is what I learned: [array([[1.9967953]], dtype=float32),
array([-0.9900647], dtype=float32)]

Thus, the learned relationship between X and Y was Y = 1.9967953X – 0.9900647


Course 1: Introduction to TensorFlow for AI, ML and DL
01 Housing Prices
02 Computer Vision fashion MNIST
03 Callbacks
04 Handwriting Recognition
05 Improving The CV Accuracy Using Convolution
06 Experiment with filters and pools
07 Improve_MNIST_with_convolutions
08 Horse Or human Classifier
09 Classifier Happy Or Sad Images

Connect with me:

codeSTACKr | Twitter codeSTACKr | LinkedIn codeSTACKr.com


Faizy's github stats

Top Langs

About

TensorFlow for building basic neural network for computer vision and use convolutions to improve your neural network.

License:MIT License


Languages

Language:Jupyter Notebook 100.0%