Author archives

Fibonacci number

In Mathematics, the Fibonacci numbers are the numbers in the following integer sequence called the Fibonacci sequence, and characterized by the fact that every number after the first two is the sum of the two preceding ones: In Python we may write the solution like this.. #Create a list and instantiate it with 0,1 lst=[0,1] #Run a loop …

Types of Tensor

We can define basically three types of tensor: Constant: It is a tensor which will be constant while a graph run there is no need to initialize it. Variable: It is a tensor which will be asynchronously assigned and initiated. Placeholder: It is a tensor which accept value at run time from the feed_dict.

Hello world in Tensorflow

First i want to tell you Tensorflow is not a library to be used as writing a hello world code, but still if you want then go ahead ! So import tensorflow library… import tensorflow as tf hello=tf.constant(‘Hello world’,name=’Hello’,shape=[1]) print(hello)

what is keras

Keras is an open source deep learning library written in python.It is capable of running on the top of MXNet,Deeplearning4j, Tensorflow,CNTK or Theano, Deeplearning4j, Tensorflow, CNTK or Theano. In 2017, Google’s TensorFlow team decided to support Keras in TensorFlow’s core library. Microsoft has been working to add a CNTK backend to Keras as well, and the functionality is …