
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 10476 Articles for Python

298 Views
The encoded string scalar can be converted to a vector of code points using the ‘decode’ method. The vector of code points can be converted to an encoded string scalar using the ‘encode’ method. The encoded string scalar can be converted to a different encoding using the ‘transcode’ method.Read More: What is TensorFlow and how Keras work with TensorFlow to create Neural Networks?Let us understand how to represent Unicode strings using Python, and manipulate those using Unicode equivalents. First, we separate the Unicode strings into tokens based on script detection with the help of the Unicode equivalents of standard string ... Read More

243 Views
Unicode strings are utf-8 encoded by default. Unicode string can be represented as UTF-8 encoded scalar values using the ‘constant’ method in Tensorflow module. Unicode strings can be represented as UTF-16 encoded scalar using the ‘encode’ method present in Tensorflow module.Read More: What is TensorFlow and how Keras work with TensorFlow to create Neural Networks?Models which process natural language handle different languages that have different character sets. Unicode is considered as the standard encoding system which is used to represent character from almost all the languages. Every character is encoded with the help of a unique integer code point that ... Read More

182 Views
Training and building the model with respect to the abalone data can be done using the ‘compile’ and ‘fit’ methods respectively. The ‘fit’ method also takes the number of epochs as the parameter.Read More: What is TensorFlow and how Keras work with TensorFlow to create Neural Networks?We will be using the abalone dataset, which contains a set of measurements of abalone. Abalone is a type of sea snail. The goal is to predict the age based on other measurements.We are using the Google Colaboratory to run the below code. Google Colab or Colaboratory helps run Python code over the browser ... Read More

2K+ Views
IntroductionThe OS module in Python comes with various functions that enables developers to interact with the Operating system that they are currently working on. In this article we’ll be learning mainly to create and delete a directory/folder, rename a directory and even basics of file handling.Without further ado, let’s get started.Getting StartedPython’s OS module comes packaged within python when installed. This means you do not need to separately install it using PIP. In order to access its various methods/functions, you just need to import the module.import osNow that you’ve imported the module, you can start using its various functions.Getting current ... Read More

185 Views
A normalization layer can be built using the ‘Normalization’ method present in the ‘preprocessing’ module. This layer is made to adapt to the features of the abalone dataset. In addition to this, a dense layer is added to improve the training capacity of the model. This layer will help pre-compute the mean and variance associated with every column. This mean and variance values will be used to normalize the data.Read More: What is TensorFlow and how Keras work with TensorFlow to create Neural Networks?We will be using the abalone dataset, which contains a set of measurements of abalone. Abalone is ... Read More

2K+ Views
Introductionopenpyxl is a Python library to read/write Excel 2010 xlsx/xlsm/xltx/xltm files.It was born from lack of existing library to read/write natively from Python the Office Open XML format.An excel file that we use for operation is called Workbook that contains a minimum of one Sheet and a maximum of tens of sheets.One sheet consists of rows starting from 1 and columns starting from A.Using the openpxyl library, we can perform various functions including adding sheets and data, manipulate and even delete said data.Now that we know what we are dealing with, let us get started.Getting StartedThe openpyxl does not come ... Read More

287 Views
A sequential model can be built in Keras using the ‘Sequential’ method. The number and type of layers are specified inside this method.Read More: What is TensorFlow and how Keras work with TensorFlow to create Neural Networks?We will be using the abalone dataset, which contains a set of measurements of abalone. Abalone is a type of sea snail. The goal is to predict the age based on other measurements.We are using the Google Colaboratory to run the below code. Google Colab or Colaboratory helps run Python code over the browser and requires zero configuration and free access to GPUs (Graphical ... Read More

209 Views
Once the abalone dataset has been downloaded using the google API, a few samples of the data can be displayed on the console using the ‘head’ method. If a number is passed to this method, that many rows would be displayed. It basically displays the rows from the beginning.Read More: What is TensorFlow and how Keras work with TensorFlow to create Neural Networks?We will be using the abalone dataset, which contains a set of measurements of abalone. Abalone is a type of sea snail. The goal is to predict the age based on other measurements.We are using the Google Colaboratory ... Read More

2K+ Views
IntroductionThe Cerberus module in python provides powerful yet lightweight data validation functions. It is designed in such a way that you can extend it to various applications and custom validations.We first define a schema and then validate the data against the scheme and check if it matches the provided conditions or not. If not, accurate errors are thrown to display where it went wrong.Various conditions can be applied at once to the data field for validation.Getting startedIn order to use Cerberus, you must first install it, as it does not come packaged with Python.In order to download and install it, ... Read More

245 Views
The abalone dataset can be downloaded by using the google API that stores this dataset. The ‘read_csv’ method present in the Pandas library is used to read the data from the API into a CSV file. The names of the features are also specified explicitly.Read More: What is TensorFlow and how Keras work with TensorFlow to create Neural Networks?We will be using the abalone dataset, which contains a set of measurements of abalone. Abalone is a type of sea snail. The goal is to predict the age based on other measurements.We are using the Google Colaboratory to run the below ... Read More