Found 10476 Articles for Python

How can the ‘subplot’ function be used to create two graphs in Matplotlib Python?

AmitDiwan
Updated on 18-Jan-2021 11:56:50

194 Views

Matplotlib is a popular Python package that is used for data visualization.Visualizing data is a key step since it helps understand what is going on in the data without actually looking at the numbers and performing complicated computations.It helps in communicating the quantitative insights to the audience effectively.Matplotlib is used to create 2 dimensional plots with the data. It comes with an object oriented API that helps in embedding the plots in Python applications. Matplotlib can be used with IPython shells, Jupyter notebook, Spyder IDE and so on.It is written in Python. It is created using Numpy, which is the ... Read More

Demonstrate a basic implementation of ‘tf.keras.layers.Dense’ in Python

AmitDiwan
Updated on 18-Jan-2021 11:56:19

280 Views

Tensorflow is a machine learning framework that is provided by Google. It is an open-source framework used in conjunction with Python to implement algorithms, deep learning applications and much more. It is used in research and for production purposes.The ‘tensorflow’ package can be installed on Windows using the below line of code −pip install tensorflowTensor is a data structure used in TensorFlow. It helps connect edges in a flow diagram. This flow diagram is known as the ‘Data flow graph’. Tensors are nothing but a multidimensional array or a list.Keras is a deep learning API, which is written in Python. ... Read More

How can multiple plots be plotted in same figure using matplotlib and Python?

AmitDiwan
Updated on 18-Jan-2021 11:54:56

324 Views

Matplotlib is a popular Python package that is used for data visualization.Visualizing data is a key step since it helps understand what is going on in the data without actually looking at the numbers and performing complicated computations.It helps in communicating the quantitative insights to the audience effectively.Matplotlib is used to create 2 dimensional plots with the data. It comes with an object oriented API that helps in embedding the plots in Python applications. Matplotlib can be used with IPython shells, Jupyter notebook, Spyder IDE and so on.It is written in Python. It is created using Numpy, which is the ... Read More

How can Keras be used to extract and reuse nodes in graph of layers using Python?

AmitDiwan
Updated on 18-Jan-2021 11:54:35

250 Views

Keras was developed as a part of research for the project ONEIROS (Open-ended Neuro-Electronic Intelligent Robot Operating System). Keras is a deep learning API, which is written in Python. It is a high-level API that has a productive interface that helps solve machine learning problems. It runs on top of the Tensorflow framework. It was built to help experiment in a quick manner. It provides essential abstractions and building blocks that are essential in developing and encapsulating machine learning solutions.It is highly scalable, and comes with cross-platform abilities. This means Keras can be run on TPU or clusters of GPUs. ... Read More

How can matplotlib be used to create histograms using Python?

AmitDiwan
Updated on 18-Jan-2021 11:54:01

189 Views

Matplotlib is a popular Python package that is used for data visualization.Visualizing data is a key step since it helps understand what is going on in the data without actually looking at the numbers and performing complicated computations.It helps in communicating the quantitative insights to the audience effectively.Matplotlib is used to create 2 dimensional plots with the data. It comes with an object oriented API that helps in embedding the plots in Python applications. Matplotlib can be used with IPython shells, Jupyter notebook, Spyder IDE and so on.It is written in Python. It is created using Numpy, which is the ... Read More

Check if a word exists in a grid or not in Python

Arnab Chakraborty
Updated on 18-Jan-2021 11:59:28

709 Views

Suppose, we have a grid or a matrix of words. We have to check whether a given word is present in the grid or not. The word can be found in four ways, horizontally left and right and vertically up and down. If we can find the word we return True, otherwise False.So, if the input is likepghsfykdghtkghihnsjsojfghnrtyuinput_str = "python", then the output will be True.To solve this, we will follow these steps −Define a function find_grid() . This will take matrix, input_str, row_pos, col_pos, row_count, col_count, degreeif degree is same as size of input_str , thenreturn Trueif row_pos < ... Read More

Check if a triplet with given sum exists in BST in Python

Arnab Chakraborty
Updated on 18-Jan-2021 12:00:51

188 Views

Suppose, we are provided with a Binary Search Tree (BST) that contains integer values, and a number 'total'. We have to find out if there are any group of three elements in the provided BST where the addition of the three elements is equal to the supplied 'total' value.So, if the input is liketotal = 12, then the output will be True.To solve this, we will follow these steps −temp_list := a new list initialized with zeroinorder traverse the tree and put it in temp_listfor i in range 0 to (size of temp_list - 2), increase by 1, doleft := ... Read More

How can Keras be used with Embedding layer to share layers using Python?

AmitDiwan
Updated on 18-Jan-2021 11:52:38

328 Views

Keras was developed as a part of research for the project ONEIROS (Open ended Neuro-Electronic Intelligent Robot Operating System). Keras is a deep learning API, which is written in Python. It is a high-level API that has a productive interface that helps solve machine learning problems. It runs on top of Tensorflow framework. It was built to help experiment in a quick manner. It provides essential abstractions and building blocks that are essential in developing and encapsulating machine learning solutions.It is highly scalable and comes with cross-platform abilities. This means Keras can be run on TPU or clusters of GPUs. ... Read More

Check if a string is Pangrammatic Lipogram in Python

Arnab Chakraborty
Updated on 18-Jan-2021 11:53:46

243 Views

Suppose, we have been provided with three strings and we are asked to find which of the strings are a Pangram, Lipogram, and a Pangrammatic Lipogram. A Pangram is a string or a sentence, where every letter in the alphabet appears at least once. A Lipogram is a string or a sentence where one or more letters in the alphabet do not appear. A Pangrammatic Lipogram is a string or sentence where all letters in the alphabet appear except one.So, if the input is like −pack my box with five dozen liquor jugs to stay in this mortal world or ... Read More

How can Keras be used to train the model using Python Program?

AmitDiwan
Updated on 18-Jan-2021 11:51:19

154 Views

Keras was developed as a part of the research for the project ONEIROS (Open-ended Neuro-Electronic Intelligent Robot Operating System). Keras is a deep learning API, which is written in Python. It is a high-level API that has a productive interface that helps solve machine learning problems. It runs on top of the Tensorflow framework. It was built to help experiment in a quick manner. It provides essential abstractions and building blocks that are essential in developing and encapsulating machine learning solutions.It is highly scalable and comes with cross-platform abilities. This means Keras can be run on TPU or clusters of ... Read More

Advertisements