Found 26504 Articles for Server Side Programming

Python – Alternate rear iteration

Pranavnath
Updated on 25-Aug-2023 13:53:33

304 Views

Introduction Implementing alternate rear iteration using Python involves basic usage of list data structure and functionality with the help of looping structures. This problem applies simple mathematical skills that allow us to determine even numbers to print the alternate number from the back side. The data structures available in the Python language are lists, tuples, and dictionaries. It provides the users with the facility of iterating through the different types of data structures. Most commonly, the for loop is used to iterate through the lists or tuples. Alternate rear iteration In this article, the iteration is followed from the back ... Read More

How to Find the average of two list using Python?

Pranavnath
Updated on 25-Aug-2023 13:39:03

807 Views

Introduction Python is popular worldwide because of its simplicity and flexibility with other applications. In the 21st century, handling data is the most challenging task for organizations with a high volume of data, and with the development of data science and machine learning it has become easier to access. The List is a data structure consisting of changeable elements after the initialization. The lists are usually assigned a value within a brackets “[]” in some ordered form. To Find the average of two lists using Python In this article, we will explore various techniques for finding the average of ... Read More

Finding the Cartesian product of strings using Python

Pranavnath
Updated on 25-Aug-2023 13:36:14

400 Views

In this article, the user will learn how to find the cartesian product of a string using Python. String manipulation is possible using Python language. The wide varieties of inbuilt functions and operators are available in Python to perform certain operations on the string. The Python language is an eminent one and is primarily used in developing the applications for the specific need of the user. In this article, various methods used to find the Cartesian product of the given strings is found. The Cartesian product is used in Python language to get all possible combinations of the given string. ... Read More

Finding All Occurrences of a substring in a Python string

Pranavnath
Updated on 25-Aug-2023 13:34:30

5K+ Views

The strings are composed of characters and initialized in the code using simple or double quotes and substring is also a character present inside a string. Python is a versatile and high-level language that can be understood easily by the user. In this article, all the occurrences of the substring are found in a string using Python language can be done with various methods. Some common methods are index() method, in the operator, find() method, and use a regular expression method. Finding All Occurrences of a substring in a Python string The substrings are the characters of a string and ... Read More

Python3 Program for Longest subsequence of a number having same left and right rotation

Shubham Vora
Updated on 25-Aug-2023 17:02:30

118 Views

In this problem, we will find the length of the longest subsequence of the given string such that it has the same left and right rotation. We can solve the problem by finding all subsequences of the given string and checking whether particular subsequences have the same left and right rotation. The other approach uses the observation that string can have only the same left and right rotation if it contains a single character or alternate character and the left is even. Problem statement – We have given an alpha string containing only numeric digits. We need to find ... Read More

Why Logistic Regression in Classification in Machine Learning?

Mithilesh Pradhan
Updated on 27-Aug-2023 13:13:53

252 Views

Introduction Logistic Regression is a classification algorithm commonly used our machine learning for binary classification. Although the term "Regression" is in its name it is in fact a classification algorithm. It uses log odds with log loss or cross−entropy loss as the cost function. In this article let us see why Logistic Regression is a classification algorithm in nature. Logistic Regression as a Classification Algorithm A Linear Regression algorithm can be given represented by a linear equation such that a univariate regression model with $\mathrm{\alpha_{0}}$ intercept and $\mathrm{\alpha_{1}}$ can be written as $$\mathrm{y=\alpha_{0}+\alpha_{1}x}$$ The line of best fit is ... Read More

Python3 Program for Queries for Rotation and Kth Character of the given String in Constant Time

Shubham Vora
Updated on 25-Aug-2023 15:57:46

121 Views

In this problem, we need to perform the queries according to the given rules and print the characters from the updated string. We will solve the problem using two different approach. In the first approach, we will use the string rotation concept, and in the second approach, we will use the index customization approach. Problem statement – The task given to us is that perform given queries on the string. We have given the array of queries, and each query contains two integers. Follow the below statements to perform the given queries on the string. (1, l) – ... Read More

Use Cases of Generative Adversarial Networks

Mithilesh Pradhan
Updated on 27-Aug-2023 13:10:34

187 Views

Introduction In recent years Generative Adversarial Networks have gained a lot of traction and used in numerous use cases. GANs are deep neural network architectures used to generate realistic synthetic data from existing data sets. GANs have two sets of neural networks − the first one generates new images and the second one discriminates between real and generated images. The discriminants give feedback to the generator about the image whether it is real or fake so that the generator can produce better images that look exactly like the real ones. This process is continued till the discriminator fails to differentiate ... Read More

Robotics Process Automation - An Introduction

Mithilesh Pradhan
Updated on 27-Aug-2023 13:05:28

553 Views

Introduction Robotic Process Automation (RPA) is a technology that can mimic the actions of human beings regarding their interaction with software systems and digital systems. With Robotic Process automation building, managing, and deploying such tools and software becomes extremely easy. Such technology is primarily used by business processes. Robotic Process Automation − A wider picture Different types of Robotic Process Automation There are three types of RPA software. Attended Robotic Process Automation − It requires very less human intervention Unattended Robotic Process Automation − It required no human intervention Hybrid Robotic Process Automation − It combines both ... Read More

Non-Linear SVM in Machine Learning

Mithilesh Pradhan
Updated on 27-Aug-2023 13:01:41

3K+ Views

Introduction Support Vector Machine (SVM) is one of the most popular supervised Machine Learning algorithms for classification as well as regression. The SVM Algorithm strives to find a line of best fit between n−dimensional data to separate them into classes. a new data point can thus be classified into one of these classes. The SVM algorithm creates two hyperplanes while maximizing the margin between them. The points that lie on these hyperplanes are known as Support Vectors and hence the name Support Vector Machine. The below diagram shows the decision boundary and hyperplanes for an SVM that is used to ... Read More

Advertisements