DECISION SUPPORT SYSTEM USING TENSOR FLOW

Similar documents
CS224n: Natural Language Processing with Deep Learning 1

Basic Models in TensorFlow. CS 20SI: TensorFlow for Deep Learning Research Lecture 3 1/20/2017

Deep Learning Frameworks. COSC 7336: Advanced Natural Language Processing Fall 2017

ndpi & Machine Learning A future concrete idea

Deep RL and Controls Homework 2 Tensorflow, Keras, and Cluster Usage

python numpy tensorflow tutorial

ABSTRACT I. INTRODUCTION. Dr. J P Patra 1, Ajay Singh Thakur 2, Amit Jain 2. Professor, Department of CSE SSIPMT, CSVTU, Raipur, Chhattisgarh, India

Frameworks in Python for Numeric Computation / ML

TENSORFLOW: LARGE-SCALE MACHINE LEARNING ON HETEROGENEOUS DISTRIBUTED SYSTEMS. By Sanjay Surendranath Girija

Homework 01 : Deep learning Tutorial

Deep Learning on AWS with TensorFlow and Apache MXNet

Image Classification with Convolutional Networks & TensorFlow

Machine Learning Workshop

Keras: Handwritten Digit Recognition using MNIST Dataset

Code Mania Artificial Intelligence: a. Module - 1: Introduction to Artificial intelligence and Python:

Lecture 3: Overview of Deep Learning System. CSE599W: Spring 2018

TensorFlow: A System for Learning-Scale Machine Learning. Google Brain

An introduction to TensorFlow! Chip Huyen CS224N 1/25/2018

Review: The best frameworks for machine learning and deep learning

Voice, Image, Video : AI in action with AWS. 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Deep Learning Frameworks with Spark and GPUs

Lecture note 7: Playing with convolutions in TensorFlow

Polytechnic University of Tirana

NVIDIA DATA LOADING LIBRARY (DALI)

Package tensorflow. January 17, 2018

A HPX backend for TensorFlow

Introduction to Deep Learning in Signal Processing & Communications with MATLAB

Keras: Handwritten Digit Recognition using MNIST Dataset

R for SQListas, a Continuation

Manage Experiments. CS 20SI: TensorFlow for Deep Learning Research Lecture 5 1/27/2017

BAYESIAN GLOBAL OPTIMIZATION

SVM multiclass classification in 10 steps 17/32

NVIDIA DIGITS CONTAINER

Tutorial on Keras CAP ADVANCED COMPUTER VISION SPRING 2018 KISHAN S ATHREY

Get Started Tutorials How To Mobile API Resources About

Onto Petaflops with Kubernetes

Bright Cluster Manager: Using the NVIDIA NGC Deep Learning Containers

Assignment4. November 29, Follow the directions on to install Tensorflow on your computer.

Open Standards for Vision and AI Peter McGuinness NNEF WG Chair CEO, Highwai, Inc May 2018

Deploying Deep Learning Networks to Embedded GPUs and CPUs

Demystifying Deep Learning

Hardware and Software. Fei-Fei Li & Justin Johnson & Serena Yeung. Lecture 6-1

TensorFlow. Research at Scale. Rajat Monga

USING NGC WITH GOOGLE CLOUD PLATFORM

2015 The MathWorks, Inc. 1

AI & Machine Learning at Amazon

Open Source at Amazon. Alolita Sharma Principal Technologist, Amazon Web Services FOSS Backstage, Berlin June

NVIDIA DLI HANDS-ON TRAINING COURSE CATALOG

Machine Learning In A Snap. Thomas Parnell Research Staff Member IBM Research - Zurich

TENSORFLOW: LARGE-SCALE MACHINE LEARNING ON HETEROGENEOUS DISTRIBUTED SYSTEMS. by Google Research. presented by Weichen Wang

Foolbox Documentation

Tutorial on Machine Learning Tools

M. Sc. (Artificial Intelligence and Machine Learning)

Experiments with Tensor Flow

TENSORFLOW. DU _v1.8.0 June User Guide

Machine Learning with Python

Demystifying Deep Learning

Machine Learning Software ROOT/TMVA

End to End Optimization Stack for Deep Learning

Neural Network Exchange Format

PROGRAMMING THE IPU POPLAR

Practical Applications of Machine Learning for Image and Video in the Cloud

BAYESIAN MACHINE LEARNING IN PYTHON: A/B TESTING UDEMY MASTERING MACHINE LEARNING FOR PENETRATION TESTING PACKT

Core ML in Depth. System Frameworks #WWDC17. Krishna Sridhar, Core ML Zach Nation, Core ML

Index. Mark Wickham 2018 M. Wickham, Practical Java Machine Learning,

Index. Umberto Michelucci 2018 U. Michelucci, Applied Deep Learning,

Deep learning in MATLAB From Concept to CUDA Code

Scalable Machine Learning in R. with H2O

Vinnie Saini Cloud Solution Architect Big Data & AI

SAP Enable Now What s New. WHAT S NEW PUBLIC Version 1.0, Feature Pack SAP Enable Now What s New. Introduction PUBLIC 1

PLT: Inception (cuz there are so many layers)

Embedding Tensorflow in applica4ons. Daniël de Kok

Characterization and Benchmarking of Deep Learning. Natalia Vassilieva, PhD Sr. Research Manager

NVIDIA DEEP LEARNING INSTITUTE

HPC & BD Survey: Results for participants who use resources outside of NJIT

Scaled Machine Learning at Matroid

Encoding RNNs, 48 End of sentence (EOS) token, 207 Exploding gradient, 131 Exponential function, 42 Exponential Linear Unit (ELU), 44

Package sgmcmc. September 26, Type Package

This document (including, without limitation, any product roadmap or statement of direction data) illustrates the planned testing, release and

The OpenVX Computer Vision and Neural Network Inference

Why data science is the new frontier in software development

Lecture note 4: How to structure your model in TensorFlow

CS 523: Multimedia Systems

An Introduction to NNs using Keras

FROM VSTS TO AZURE DEVOPS

What is Tensorflow? TensorFlow is a Python-friendly open source library for numerical computation that makes machine learning faster and easier.

Introduction to TensorFlow. Mor Geva, Apr 2018

NVIDIA GPU CLOUD DEEP LEARNING FRAMEWORKS

Getting Started with TensorFlow : Part II

Developing Intelligent Apps

AWS DeepLens Workshop: Building a Computer Vision App

arxiv: v2 [hep-ex] 14 Nov 2018

SCIENCE. An Introduction to Python Brief History Why Python Where to use

Nvidia Jetson TX2 and its Software Toolset. João Fernandes 2017/2018

Deep Nets with. Keras

TensorFlow for Deep Learning

Automatic Code Generation TVM Stack

Day 1 Lecture 6. Software Frameworks for Deep Learning

Video Object Segmentation using Deep Learning

Deep learning in action with DL4J

Transcription:

Volume 118 No. 24 2018 ISSN: 1314-3395 (on-line version) url: http://www.acadpubl.eu/hub/ http://www.acadpubl.eu/hub/ DECISION SUPPORT SYSTEM USING TENSOR FLOW D.Anji Reddy 1, G.Narasimha 2, K.Srinivas 3, B.Kavitha Rani 4 1 Assistant Professor, 2,3,4 Professor, Department of CSE, 1 Vaageshwari College of Engineering, 2 JNTUH College, 3,4 CMR Technical Campus 1 Karimnagar,India 2 Sultanpur,India 3,4 Hyderabad, India. May 24, 2018 Abstract Now a day Deep Learning is a service provided by all Cloud platforms. This service can be used by Tensor Flow in Google Cloud Platform (GCP), it makes users in easy way of application design, development and deployment. Tensor Flow for deep learning research and development applications used in many domains such as Natural Language Processing, Speech Recognition Translation, and Computer Vision etc. Tensor flow is also used to take recommend the user to take quick decision making. 1 Introduction Tensor Flow [1-8] is an open source software library for numerical computation using dataflow graphs. Nodes in the graph represents mathematical operations, while graph edges represent multidimensional data arrays (tensors) communicated between them. 1

The flexible architecture allows AP I s to deploy computation on computational devices such as desktop, mobile or server.amazon [9], Google [10], Azure [11] cloud platforms are providing various services classification, regression, Clustering, anomaly detection, recommendation, ranking, frameworks, algorithms, GUI s, automation levels. The Machine Learning service provided by all Cloud Platforms defined here as Machine Learning as a Service (MLaaS), such as AWS Deep Learning AMI, Apache MXNet and Gluon, Microsoft Azure ML studioetc.tensorflow is open source software for deep learning applications, used to process efficient computation of data flow graphs on single or multiple CPUs, GPUs and certain mobile operating systems. The advantages of using TensorFlow are: It has an intuitive construct, because as the name suggests it has flow of tensors. You can easily visualize each and every part of the graph. Easily train on cpu/gpu for distributed computing. Platform flexibility. You can run the models wherever you want, whether it is on mobile, server or PC. Limitations of TensorFlow: Even though TensorFlow is powerful, it s still a low level library. For example, it can be considered as a machine level language, which need modularity and high level interface through the frameworks, such as Keras. It s still in development, so much more awesomeness to come. It depends on your hardware specs, the more the merrier. Still not an API for many languages. There are still many things yet to be included in TensorFlow, such as OpenCL support. In the MNIST dataset, which is a dataset that contains 60,000 training samples and 10,000 testing samples of hand-written and labeled digits, 0 through 9, so ten total classes.for further advancedhigher level deep learning library is available on top of TensorFlow called Keras; and GitHub repository. 2

Figure 1 Flow graph of TensorFlow A Simple Tensor Flow example Tensor Flow is a type of graph based computation, it is an alternative model for a given mathematical calculations. Consider the following expression result= (var1+var2) (var2+5). We can break this function down into the following components: int1 = var1+var2 int2 = var2+5 result = int1 int2 The representation of the above operations graphically as follows: Figure 2 Tensor Flow Graph for the expression result = int1 * int2 3

2 DESCRIPTION The expression is result = int1 * int2, is represented as flow graph. Where int1 is defined as var1 is added to var2; int2 is substituted as var2 added to a constant 5. Here var2 is contributed in two intermediate results, in turn is contributed in result. The following is code to Tensorflow in python programming language. import tensor flow as tf tensor flow constant creation const = tf.constant(6.0, name = const ) tensorflow variables creation var1 = tf.variable(3.0, name = var1 ) var2 = tf.variable(2.0, name = var2 ) The above snippet code explained as, tf.constant function defined as constant value, it consists of two parameters, where first parameter represents initial value and second element is type of constant value. tf.variable function to declare variables, the function also consists of two elements, first is initial value and second element is name of the variable is optional. The value of a variable or constant can also be set explicitly thru keyboard by using argument dtype such as tf.float32, tf.int32 etc. Next, we create the Tensor Flow operations: computation of operations int1= tf.add(var1, var2, name = int1 ) int1= tf.add(var2, const, name = int2 ) result = tf.multiply(int1, int2, name = result ) TensorFlow provides good number of operations to perform all types of interactions. In the above code addition of variables, addition of variable and constant value and a multiplication of variables. The next step is to setup an object to initialize the variables and the graph structure: variable initialization setup init op = tf.global variables initializer The next step is to start Tensor Flow session with tf.session. All the operations are executed in Python syntax through the Tensor Flow session object. session starts with tf.session() as ses: 4

variables initialization ses.run(init op) the output of the graph a out = ses.run(result) print( variable result is.format(a out)) First initialize the tensorflow session. This session can be executed by run command, which passes result. Here result is not a variable, operation as result = tf.multiply(int1, int2, name = result ); as session is accepting only operations. It automatically calculates the necessary and dependent operations or values through its data flow graph. Finally the output is of scalar and assigned to a out, the value is displayed on the output screen. Extension to the above simple example, if var1 can have array values, then calculation of result is performed with the TensorFlow placeholder. TensorFlow required to declare the data by using the tf.placeholder variable declaration. It has three arguments as type of placeholder variable, the second element is about size of array and it accepts even none argument with 1-dimensional data, and the third element is name of the variable. Therefore the var1 snippet code becomes as follows: TensorFlow variables var1 = tf.placeholder(tf.float32, [None, 1], name = var1 ) The change in program is the ses.run(result,) command: a out = ses.run(result,feed dict = resut:np.arange(0,10)[:,np.newaxis]) Where the argument feed dict is taking the input from Python dictionary, every key is being filled in the name of the placeholder. 3 EXPERIMENTAL RESULTS Using the Tensor Board functionality, the following is the graph that Tensor Flow created in the above program: 5

Figure 3 Tensor Flow graph on Tensor Board 4 CONCLUSION Tensor Flow enables developers to quickly and easily get started with deep learning in the cloud. Tensor flow is used to recommend the user to take quick decision making on any objects. Tensor Flow provides APIs for Python, C++, Haskell, Java, Go, Rust, and theres also a third-party package for R called tensor flow. References [1] https://www.analyticsvidhya.com/blog/2016/10/anintroduction-to-implementing-neural-networks-usingtensorflow/ [2] http://adventuresinmachinelearning.com/python-tensorflowtutorial/ [3] https://www.datacamp.com/community/tutorials/tensorflowtutorial [4] https://www.librec.net/datasets.html [5] https://docs.aws.amazon.com/dlami/latest/devguide/tutorialtensorflow.html [6] https://github.com/googlecloudplatform/cloudmlsamples/tree/master/movielens [7] https://pythonprogramming.net/using-our-own-datatensorflow-deep-learning-tutorial 6

[8] https://aws.amazon.com/tensorflow/?nc2=htm1 [9] https://cloud.google.com/solutions/big-data/ [10] 11.https://blogs.msdn.microsoft.com/uk faculty connection/2017/03/27/azuregpu-tensorflow-step-by-step-setup/ 7