AmitDiwan

AmitDiwan

8,392 Articles Published

Articles by AmitDiwan

Page 701 of 840

How can Tensorflow be used to download flower dataset into the environment?

AmitDiwan
AmitDiwan
Updated on 19-Feb-2021 497 Views

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 More

Sorting only columns of a 2-D array in JavaScript

AmitDiwan
AmitDiwan
Updated on 23-Jan-2021 855 Views

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 More

How can Keras be used to recreate the model and check its accuracy?

AmitDiwan
AmitDiwan
Updated on 21-Jan-2021 271 Views

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 More

How can the 'Word2Vec' algorithm be trained using Tensorflow?

AmitDiwan
AmitDiwan
Updated on 19-Jan-2021 300 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. 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 More

How can Logistic Regression be implemented using TensorFlow?

AmitDiwan
AmitDiwan
Updated on 19-Jan-2021 356 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. 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 More

How can MNIST data be used with TensorFlow for recognizing handwritten digits?

AmitDiwan
AmitDiwan
Updated on 19-Jan-2021 350 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 multidimensional array or a list.We are using the Google Colaboratory to run the below code. Google ...

Read More

How can 'placeholders' in Tensorflow be used while multiplying matrices?

AmitDiwan
AmitDiwan
Updated on 19-Jan-2021 299 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.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 More

Explain how Pygal can be used to create interactive visualizations, and show how a bar graph can be visualized using Pygal.

AmitDiwan
AmitDiwan
Updated on 19-Jan-2021 309 Views

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 More

How to visualize a multi-line graph, such as Lorentz attractor in Bokeh?

AmitDiwan
AmitDiwan
Updated on 19-Jan-2021 177 Views

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 More

How can Matplotlib be used to generate time-series data?

AmitDiwan
AmitDiwan
Updated on 19-Jan-2021 218 Views

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
Showing 7001–7010 of 8,392 articles
« Prev 1 699 700 701 702 703 840 Next »
Advertisements