Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Articles by AmitDiwan
Page 701 of 840
How can Tensorflow be used to download flower dataset into the environment?
The flower dataset can be downloaded using a google API that basically links to the flower dataset. The ‘get_file’ method can be used to pass the API as a parameter. Once this is done, the data gets downloaded into the environment.Read More: What is TensorFlow and how Keras work with TensorFlow to create Neural Networks?We will be using the flowers dataset, which contains images of several thousands of flowers. It contains 5 sub-directories, and there is one sub-directory for every class. We are using the Google Colaboratory to run the below code. Google Colab or Colaboratory helps run Python code ...
Read MoreSorting only columns of a 2-D array in JavaScript
We are required to write a JavaScript function that takes in a two-dimensional array of integers as the only argument.The function should sort the elements present at the column of the array in increasing or decreasing order.For example −If the input array is −const arr = [ [6, 2, 9], [8, 1, 4], [5, 3, 7] ];Then the array should be sorted like this −const output = [ [8, 3, 9], [6, 2, 7], [5, 1, 4] ];ExampleFollowing is the code −const arr = [ [6, 2, 9], [8, 1, 4], ...
Read MoreHow can Keras be used to recreate the model and check its accuracy?
Keras means ‘horn’ in Greek. 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.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.Keras runs on top of Tensorflow framework. It was built to help ...
Read MoreHow can the 'Word2Vec' algorithm be trained using Tensorflow?
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. It has optimization techniques that help in performing complicated mathematical operations quickly.This is because it uses NumPy and multi−dimensional arrays. These multi−dimensional arrays are also known as ‘tensors’. The framework supports working with deep neural network. It is highly scalable, and comes with many popular datasets. It uses GPU computation and automates the management of resources.The ‘tensorflow’ package can be installed ...
Read MoreHow can Logistic Regression be implemented using TensorFlow?
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. It has optimization techniques that help in performing complicated mathematical operations quickly. This is because it uses NumPy and multi-dimensional arrays.Multi−dimensional arrays are also known as ‘tensors’. The framework supports working with deep neural network. It is highly scalable, and comes with many popular datasets. It uses GPU computation and automates the management of resources.The ‘tensorflow’ package can be installed on ...
Read MoreHow can MNIST data be used with TensorFlow for recognizing handwritten digits?
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 multidimensional array or a list.We are using the Google Colaboratory to run the below code. Google ...
Read MoreHow can 'placeholders' in Tensorflow be used while multiplying matrices?
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.It has optimization techniques that help in performing complicated mathematical operations quickly. This is because it uses NumPy and multi−dimensional arrays. These multi−dimensional arrays are also known as ‘tensors’. The framework supports working with deep neural network. It is highly scalable, and comes with many popular datasets.The ‘tensorflow’ package can be installed on Windows using the below line of code −pip install ...
Read MoreExplain how Pygal can be used to create interactive visualizations, and show how a bar graph can be visualized using Pygal.
Visualizing data is an important step since it helps understand what is going on in the data without actually looking at the complicated working underneath it and performing complicated computations.Pygal is an open source Python package that helps in the creation of interactive plots, and SVG (Scalar Vector Graphics) images of graphs. SVG refers to dynamically generating animated graphs with the given data.These SVG images of graphs can be used and customized depending on our requirements. The SVG images are highly scalable, hence they can be downloaded in high quality format. These downloaded images can also be embedded to various ...
Read MoreHow to visualize a multi-line graph, such as Lorentz attractor in Bokeh?
Bokeh is a Python package that helps in data visualization. It is an open source project. Bokeh renders its plot using HTML and JavaScript. This indicates that it is useful while working with web−based dashboards.Bokeh converts the data source into a JSON file. This file is used as an input to BokehJS, which is a JavaScript library. This BokehJS is written in TypeScript that helps render visualization on modern browsers.Matplotlib and Seaborn produce static plots, whereas Bokeh produces interactive plots. This means when the user interacts with these plots, they change accordingly.Dependencies of Bokeh −Numpy Pillow Jinja2 Packaging Pyyaml Six ...
Read MoreHow can Matplotlib be used to generate time-series data?
Matplotlib library is built upon Numpy. It is a Python library that is used to visualize data. It is a tree−like hierarchical structure which consists of objects that makeup each of these plots.A ’Figure’ in Matplotlib can be understood as the outermost storage for a graph. This ‘Figure’ can contains multiple ‘Axes’ objects. ‘Axes’ object is NOT the plural form of ‘Axis’ in this case.‘Axes’ can be understood as a part of ‘Figure’, a subplot. It can be used to manipulate every part of the graph inside it. A ‘Figure’ object in Matplotlib is a box that stores one or ...
Read More