title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
Common Loss functions in machine learning | by Ravindra Parmar | Towards Data Science | Machines learn by means of a loss function. It’s a method of evaluating how well specific algorithm models the given data. If predictions deviates too much from actual results, loss function would cough up a very large number. Gradually, with the help of some optimization function, loss function learns to reduce the er... | [
{
"code": null,
"e": 631,
"s": 171,
"text": "Machines learn by means of a loss function. It’s a method of evaluating how well specific algorithm models the given data. If predictions deviates too much from actual results, loss function would cough up a very large number. Gradually, with the help of ... |
How to Assign Labels with Sklearn One Hot Encoder | by Vitalii Dodonov | Towards Data Science | Most machine learning algorithms don’t work with categorical data out of the box. It is a common practice to apply label encoder or one hot encoder to a categorical variable before using it in predictive modelling.
Sklearn library in Python is a go-to for most Machine Learning practitioners. It provides outstanding gen... | [
{
"code": null,
"e": 387,
"s": 172,
"text": "Most machine learning algorithms don’t work with categorical data out of the box. It is a common practice to apply label encoder or one hot encoder to a categorical variable before using it in predictive modelling."
},
{
"code": null,
"e": 684... |
Railway Reservation System in C - GeeksforGeeks | 17 Jan, 2022
Railway ticket booking system is implemented by C programming. It is as same as one can see while we are going for online ticket booking. The following series of steps are being followed while booking a railway ticket in this software-
The first step is to provide the total number of passengers and submit ... | [
{
"code": null,
"e": 25479,
"s": 25451,
"text": "\n17 Jan, 2022"
},
{
"code": null,
"e": 25715,
"s": 25479,
"text": "Railway ticket booking system is implemented by C programming. It is as same as one can see while we are going for online ticket booking. The following series of s... |
Given a n-ary tree, count number of nodes which have more number of children than parents - GeeksforGeeks | 21 May, 2021
Given a N-ary tree represented as adjacency list, we need to write a program to count all such nodes in this tree which has more number of children than its parent.For Example,
In the above tree, the count will be 1 as there is only one such node which is ‘2’ which has more number of children than its pa... | [
{
"code": null,
"e": 26483,
"s": 26455,
"text": "\n21 May, 2021"
},
{
"code": null,
"e": 26662,
"s": 26483,
"text": "Given a N-ary tree represented as adjacency list, we need to write a program to count all such nodes in this tree which has more number of children than its parent... |
jQuery UI Buttonset items Option - GeeksforGeeks | 10 Jan, 2022
jQuery UI consists of GUI widgets, visual effects, and themes implemented using HTML, CSS, and jQuery. jQuery UI is great for building UI interfaces for the webpages. The jQuery UI buttonset widget is used to give a visual grouping for a group of related buttons.
The jQuery UI buttonset items option is use... | [
{
"code": null,
"e": 27144,
"s": 27116,
"text": "\n10 Jan, 2022"
},
{
"code": null,
"e": 27408,
"s": 27144,
"text": "jQuery UI consists of GUI widgets, visual effects, and themes implemented using HTML, CSS, and jQuery. jQuery UI is great for building UI interfaces for the webpag... |
What is the difference between position:sticky and position:fixed in CSS ? - GeeksforGeeks | 31 Oct, 2021
In this article, we will discuss two very similar CSS Properties which are position: sticky and position: fixed.
The Position property in CSS specifies the positioning for an HTML element or entity. The element’s position can be set by specifying the top, right, bottom, and left properties. These specify t... | [
{
"code": null,
"e": 26621,
"s": 26593,
"text": "\n31 Oct, 2021"
},
{
"code": null,
"e": 26734,
"s": 26621,
"text": "In this article, we will discuss two very similar CSS Properties which are position: sticky and position: fixed."
},
{
"code": null,
"e": 27135,
"s... |
Java Program To Check If A Singly Linked List Is Palindrome - GeeksforGeeks | 29 Mar, 2022
Given a singly linked list of characters, write a function that returns true if the given list is a palindrome, else false.
METHOD 1 (Use a Stack):
A simple solution is to use a stack of list nodes. This mainly involves three steps.
Traverse the given list from head to tail and push every visited node to ... | [
{
"code": null,
"e": 25303,
"s": 25275,
"text": "\n29 Mar, 2022"
},
{
"code": null,
"e": 25427,
"s": 25303,
"text": "Given a singly linked list of characters, write a function that returns true if the given list is a palindrome, else false."
},
{
"code": null,
"e": 25... |
Java Program to Find the Index of the TreeSet Element - GeeksforGeeks | 27 Jun, 2021
Unlike the List classes like ArrayList or a LinkedList, the TreeSet class does not allow accessing elements using the index. There are no direct methods to access the TreeSet elements using the index and thus finding an index of an element is not straightforward.
Methods: There are primarily three standar... | [
{
"code": null,
"e": 25225,
"s": 25197,
"text": "\n27 Jun, 2021"
},
{
"code": null,
"e": 25490,
"s": 25225,
"text": "Unlike the List classes like ArrayList or a LinkedList, the TreeSet class does not allow accessing elements using the index. There are no direct methods to access ... |
CSS border-radius Property - GeeksforGeeks | 21 Oct, 2021
The border-radius property in CSS is used to round the corners of the outer border edges of an element. This property can contain one, two, three, or four values. The border-radius property is used to set the border-radius. This property is not applicable to the table elements when border-collapse is colla... | [
{
"code": null,
"e": 24929,
"s": 24901,
"text": "\n21 Oct, 2021"
},
{
"code": null,
"e": 25243,
"s": 24929,
"text": "The border-radius property in CSS is used to round the corners of the outer border edges of an element. This property can contain one, two, three, or four values. ... |
Shell Script to Display All Words of a File in Ascending Order - GeeksforGeeks | 19 Jul, 2021
Here we will see a shell script that will arrange all the words from a file in ascending order, which comes in handy when we have many words that need to be sorted in ascending order. The script helps to analyze the data easily and represent it in a much more organized manner.
Approach:
Store the value of ... | [
{
"code": null,
"e": 25269,
"s": 25241,
"text": "\n19 Jul, 2021"
},
{
"code": null,
"e": 25547,
"s": 25269,
"text": "Here we will see a shell script that will arrange all the words from a file in ascending order, which comes in handy when we have many words that need to be sorted... |
Longest palindrome subsequence with O(n) space - GeeksforGeeks | CoursesFor Working ProfessionalsLIVEDSA Live ClassesSystem DesignJava Backend DevelopmentFull Stack LIVEExplore MoreSelf-PacedDSA- Self PacedSDE TheoryMust-Do Coding QuestionsExplore MoreFor StudentsLIVECompetitive ProgrammingData Structures with C++Data ScienceExplore MoreSelf-PacedDSA- Self PacedCIPJAVA / Python / C+... | [
{
"code": null,
"e": 419,
"s": 0,
"text": "CoursesFor Working ProfessionalsLIVEDSA Live ClassesSystem DesignJava Backend DevelopmentFull Stack LIVEExplore MoreSelf-PacedDSA- Self PacedSDE TheoryMust-Do Coding QuestionsExplore MoreFor StudentsLIVECompetitive ProgrammingData Structures with C++Data Sc... |
Terra - OSINT Tool On Instagram - GeeksforGeeks | 28 Nov, 2021
Terra is an Open Source Intelligence Tool. Terra can give you so much information about an Instagram account that is not easily visible to a normal user. Using Terra you can get various information such as location, timestamp, caption, picture, URL of the account. Terra is a free and open-source tool avai... | [
{
"code": null,
"e": 25651,
"s": 25623,
"text": "\n28 Nov, 2021"
},
{
"code": null,
"e": 26717,
"s": 25651,
"text": "Terra is an Open Source Intelligence Tool. Terra can give you so much information about an Instagram account that is not easily visible to a normal user. Using Ter... |
Program to draw circles using mouse moves in OpenGL - GeeksforGeeks | 16 Jul, 2021
In this article, the task is to draw circles using a single mouse click in OpenGL.
OpenGL: OpenGL is a cross-language, cross-platform API for rendering 2D and 3D Vector Graphics. It will make a lot of design as well as animations using this.
Create a circle anywhere on the console using a single left mouse... | [
{
"code": null,
"e": 25343,
"s": 25315,
"text": "\n16 Jul, 2021"
},
{
"code": null,
"e": 25426,
"s": 25343,
"text": "In this article, the task is to draw circles using a single mouse click in OpenGL."
},
{
"code": null,
"e": 25585,
"s": 25426,
"text": "OpenGL:... |
Python program to implement Half Adder | 21 Aug, 2021
Prerequisite: Half Adder in Digital Logic
Given two inputs of Half Adder A, B. The task is to implement the Half Adder circuit and Print output i.e sum and carry of two inputs.
Half Adder: A half adder is a type of adder, an electronic circuit that performs the addition of numbers. The half adder is able t... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n21 Aug, 2021"
},
{
"code": null,
"e": 70,
"s": 28,
"text": "Prerequisite: Half Adder in Digital Logic"
},
{
"code": null,
"e": 205,
"s": 70,
"text": "Given two inputs of Half Adder A, B. The task is to implement the ... |
Check whether a point lies inside a sphere or not | 24 Mar, 2021
Given co-ordinates of the center of a sphere (cx, cy, cz) and its radius r. Our task is to check whether a point (x, y, z) lies inside, outside or on this sphere.Examples:
Input : Centre(0, 0, 0) Radius 3
Point(1, 1, 1)
Output :Point is inside the sphere
Input :Centre(0, 0, 0) Radius 3
Po... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n24 Mar, 2021"
},
{
"code": null,
"e": 227,
"s": 53,
"text": "Given co-ordinates of the center of a sphere (cx, cy, cz) and its radius r. Our task is to check whether a point (x, y, z) lies inside, outside or on this sphere.Examples: "... |
Find most significant set bit of a number | 27 May, 2022
Given a number, find the greatest number less than the given a number which is the power of two or find the most significant bit number .
Examples:
Input : 10
Output : 8
Greatest number which is a Power of 2 less than 10 is 8
Binary representation of 10 is 1010
The most significant bit corresponds
to deci... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n27 May, 2022"
},
{
"code": null,
"e": 192,
"s": 54,
"text": "Given a number, find the greatest number less than the given a number which is the power of two or find the most significant bit number ."
},
{
"code": null,
"e":... |
SQL | WITH clause | 13 Aug, 2021
The SQL WITH clause was introduced by Oracle in the Oracle 9i release 2 database. The SQL WITH clause allows you to give a sub-query block a name (a process also called sub-query refactoring), which can be referenced in several places within the main SQL query.
The clause is used for defining a temporary... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n13 Aug, 2021"
},
{
"code": null,
"e": 318,
"s": 54,
"text": "The SQL WITH clause was introduced by Oracle in the Oracle 9i release 2 database. The SQL WITH clause allows you to give a sub-query block a name (a process also called sub-q... |
How to include HTML code snippets in HTML ? | 11 Nov, 2021
In this article, we will learn how to include HTML snippets in HTML code. We will include the HTML code snippet of “gfg.html” into “index.html“. To achieve this task, we are going to write a JavaScript function in “index.html” which traverses the collection of all HTML elements in “gfg.html” and searches f... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n11 Nov, 2021"
},
{
"code": null,
"e": 575,
"s": 54,
"text": "In this article, we will learn how to include HTML snippets in HTML code. We will include the HTML code snippet of “gfg.html” into “index.html“. To achieve this task, we are ... |
SQL Query to List All Databases | 15 May, 2021
SQL language is a DML in DBMS. This is used to manipulate databases and the records kept in them. A database is a collection of structured information or data stored in any computer system. So to modify these databases or to update any data contained by them, we are using DML languages like SQL, etc. We wi... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n15 May, 2021"
},
{
"code": null,
"e": 408,
"s": 52,
"text": "SQL language is a DML in DBMS. This is used to manipulate databases and the records kept in them. A database is a collection of structured information or data stored in any c... |
Minimum number of given operations required to make two strings equal | 17 Feb, 2020
Given two strings A and B, both strings contain characters a and b and are of equal lengths. There is one _ (empty space) in both the strings. The task is to convert first string into second string by doing the minimum number of the following operations:
If _ is at position i then _ can be swapped with a c... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n17 Feb, 2020"
},
{
"code": null,
"e": 307,
"s": 52,
"text": "Given two strings A and B, both strings contain characters a and b and are of equal lengths. There is one _ (empty space) in both the strings. The task is to convert first st... |
Replacing missing values using Pandas in Python | 16 Nov, 2020
Dataset is a collection of attributes and rows. Data set can have missing data that are represented by NA in Python and in this article, we are going to replace missing values in this article
We consider this data set: Dataset
data set
In our data contains missing values in quantity, price, bought, forenoo... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n16 Nov, 2020"
},
{
"code": null,
"e": 245,
"s": 53,
"text": "Dataset is a collection of attributes and rows. Data set can have missing data that are represented by NA in Python and in this article, we are going to replace missing value... |
Python Dictionary keys() method | 31 May, 2021
Dictionary in Python is a collection of data values which only maintains the order of insertion, used to store data values like a map, which, unlike other Data Types that hold only a single value as an element, Dictionary holds key: value pair.
keys() method in Python Dictionary, returns a view object that... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n31 May, 2021"
},
{
"code": null,
"e": 298,
"s": 53,
"text": "Dictionary in Python is a collection of data values which only maintains the order of insertion, used to store data values like a map, which, unlike other Data Types that hol... |
C# Program to Calculate the Sum of Array Elements using the LINQ Aggregate() Method - GeeksforGeeks | 09 Dec, 2021
Given an array of integers, now we calculate the sum of array elements. So we use the Aggregate() method of LINQ. This method applies a function to all the elements of the source sequence and calculates a cumulative result and return value. This method is overloaded in three different ways:
Aggregate<TSour... | [
{
"code": null,
"e": 24302,
"s": 24274,
"text": "\n09 Dec, 2021"
},
{
"code": null,
"e": 24594,
"s": 24302,
"text": "Given an array of integers, now we calculate the sum of array elements. So we use the Aggregate() method of LINQ. This method applies a function to all the element... |
Add New Row at Specific Index Position to Dataframe in R - GeeksforGeeks | 21 Apr, 2021
In this article, we will discuss how to add a new row at a specific index in the dataframe in the R programming language.
The main task here is to shift other rows and make space in the dataframe for the new row and then insert its contents. This can be done in two ways
rbind() function in R Language is us... | [
{
"code": null,
"e": 25242,
"s": 25214,
"text": "\n21 Apr, 2021"
},
{
"code": null,
"e": 25364,
"s": 25242,
"text": "In this article, we will discuss how to add a new row at a specific index in the dataframe in the R programming language."
},
{
"code": null,
"e": 2551... |
Pattern asPredicate() method in Java with examples | The Predicate interface of the java.util.function package can be used as a target for lambda expressions. The test method of this interface accepts a value ad validates it with the current value of the Predicate object. This method returns true in-case of a match, else false.
The asPredicate() method of the java.util.r... | [
{
"code": null,
"e": 1339,
"s": 1062,
"text": "The Predicate interface of the java.util.function package can be used as a target for lambda expressions. The test method of this interface accepts a value ad validates it with the current value of the Predicate object. This method returns true in-case ... |
Object Oriented Python - Libraries | Requests is a Python module which is an elegant and simple HTTP library for Python. With this you can send all kinds of HTTP requests. With this library we can add headers, form data, multipart files and parameters and access the response data.
As Requests is not a built-in module, so we need to install it first.
You c... | [
{
"code": null,
"e": 2055,
"s": 1810,
"text": "Requests is a Python module which is an elegant and simple HTTP library for Python. With this you can send all kinds of HTTP requests. With this library we can add headers, form data, multipart files and parameters and access the response data."
},
... |
Twenty-five SQL practice exercises | by Michael Boles | Towards Data Science | Structured query language (SQL) is used to retrieve and manipulate data stored in relational databases. Gaining working proficiency in SQL is an important prerequisite for many technology jobs and requires a bit of practice.
To complement SQL training resources (PGExercises, LeetCode, HackerRank, Mode) available on the... | [
{
"code": null,
"e": 397,
"s": 172,
"text": "Structured query language (SQL) is used to retrieve and manipulate data stored in relational databases. Gaining working proficiency in SQL is an important prerequisite for many technology jobs and requires a bit of practice."
},
{
"code": null,
... |
Where is MySQL bin directory located in Windows OS? | Let’s say we installed MySQL version is 8.0 on our Windows OS. The bin directory is present at the following location −
C:\Program Files\MySQL\MySQL Server 8.0\bin
Let us check the location. The screenshot is as follows −
These are the drives −
Go to C: drive and click Program Files −
Now, click “MySQL” and open the fo... | [
{
"code": null,
"e": 1182,
"s": 1062,
"text": "Let’s say we installed MySQL version is 8.0 on our Windows OS. The bin directory is present at the following location −"
},
{
"code": null,
"e": 1226,
"s": 1182,
"text": "C:\\Program Files\\MySQL\\MySQL Server 8.0\\bin"
},
{
... |
How to create a custom navigation drawer in Android? | This example demonstrate about How to resize Image in Android App.
Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.
Step 2 − Add the following code to res/layout/activity_main.xml.
<? xml version= "1.0" encoding= "utf-8" ?>
<android.support... | [
{
"code": null,
"e": 1129,
"s": 1062,
"text": "This example demonstrate about How to resize Image in Android App."
},
{
"code": null,
"e": 1258,
"s": 1129,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a... |
Ancestors in Binary Tree | Practice | GeeksforGeeks | Given a Binary Tree and a target key, you need to find all the ancestors of the given target key.
1
/ \
2 3
/ \
4 5
/
7
Key: 7
Ancestor: 4 2 1
Example 1:
Input:
1
/ \
2 3
target = 2
Output: 1
Example 2:
Input:
1
... | [
{
"code": null,
"e": 336,
"s": 238,
"text": "Given a Binary Tree and a target key, you need to find all the ancestors of the given target key."
},
{
"code": null,
"e": 452,
"s": 336,
"text": " 1\n / \\\n 2 3\n / \\\n 4 5\n ... |
What is typeof Operator in JavaScript? | The typeof operator is a unary operator that is placed before its single operand, which can be of any type. Its value is a string indicating the data type of the operand. The typeof operator evaluates to "number", "string" or "boolean" if its operand is a number, string, or boolean value and returns true or false base... | [
{
"code": null,
"e": 1403,
"s": 1062,
"text": "The typeof operator is a unary operator that is placed before its single operand, which can be of any type. Its value is a string indicating the data type of the operand. The typeof operator evaluates to \"number\", \"string\" or \"boolean\" if its ope... |
How to convert String to Long in Kotlin? | In this article, we will see how to convert a String to Long in Kotlin using a
library function. There are multiple ways to do it. Let's take a couple of
examples to demonstrate how it's done.
toLong() is a function that provides the most convenient way to convert a string to a long. In the following example, we will s... | [
{
"code": null,
"e": 1255,
"s": 1062,
"text": "In this article, we will see how to convert a String to Long in Kotlin using a\nlibrary function. There are multiple ways to do it. Let's take a couple of\nexamples to demonstrate how it's done."
},
{
"code": null,
"e": 1432,
"s": 1255,
... |
Send your new year greetings by email and text message using Python | by Yong Cui | Towards Data Science | It’s new year time. Although we developers don’t usually bother to maintain friendship (is it a joke or not?), we don’t mind sending our greetings to our friends as long as there is a programmatic way to get this done!
Here, I’m showing you how to send your greetings by email and text message using Python in two parts.... | [
{
"code": null,
"e": 390,
"s": 171,
"text": "It’s new year time. Although we developers don’t usually bother to maintain friendship (is it a joke or not?), we don’t mind sending our greetings to our friends as long as there is a programmatic way to get this done!"
},
{
"code": null,
"e":... |
Excel Addition Operator | Addition uses the + symbol in Excel, and is also known as plus.
There are two ways to do addition in Excel. Either by using the + symbol in a formula or by using the SUM function.
How to add cells:
Select a cell and type (=)
Select a cell
Type (+)
Select another cell
Hit enter
Select a cell and type (=)
Select a cell... | [
{
"code": null,
"e": 64,
"s": 0,
"text": "Addition uses the + symbol in Excel, and is also known as plus."
},
{
"code": null,
"e": 180,
"s": 64,
"text": "There are two ways to do addition in Excel. Either by using the + symbol in a formula or by using the SUM function."
},
{
... |
How to remove a class name from an element with JavaScript? | To remove a class name from an element with JavaScript, the code is as follows −
Live Demo
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style>
.newStyle {
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
width: 100%;
padding: 25... | [
{
"code": null,
"e": 1143,
"s": 1062,
"text": "To remove a class name from an element with JavaScript, the code is as follows −"
},
{
"code": null,
"e": 1154,
"s": 1143,
"text": " Live Demo"
},
{
"code": null,
"e": 2030,
"s": 1154,
"text": "<!DOCTYPE html>\n<h... |
Find the compatibility difference between two arrays in C++ | Consider there are two friends and now they want to test their bonding. So they will check, how much compatible they are. Given the numbers n, numbered from 1..n. And they are asked to rank the numbers. They have to find the compatibility difference between them. The compatibility difference is basically the number of ... | [
{
"code": null,
"e": 1629,
"s": 1062,
"text": "Consider there are two friends and now they want to test their bonding. So they will check, how much compatible they are. Given the numbers n, numbered from 1..n. And they are asked to rank the numbers. They have to find the compatibility difference bet... |
GATE | GATE-CS-2016 (Set 1) | Question 43 - GeeksforGeeks | 19 Nov, 2018
Consider a carry lookahead adder for adding two n-bit integers, built using gates of fan-in at most two. The time to perform addition using this adder is(A) Θ(1)(B) Θ(Log (n))(C) Θ(√ n)(D) Θ(n)Answer: (B)Explanation: Look ahead carry generator gives output in constant time if fan-in = number of inputs.
For... | [
{
"code": null,
"e": 24414,
"s": 24386,
"text": "\n19 Nov, 2018"
},
{
"code": null,
"e": 24718,
"s": 24414,
"text": "Consider a carry lookahead adder for adding two n-bit integers, built using gates of fan-in at most two. The time to perform addition using this adder is(A) Θ(1)(B... |
Check if strings are rotations of each other or not | Practice | GeeksforGeeks | Given two strings s1 and s2. The task is to check if s2 is a rotated version of the string s1. The characters in the strings are in lowercase.
Example 1:
Input:
geeksforgeeks
forgeeksgeeks
Output:
1
Explanation: s1 is geeksforgeeks, s2 is
forgeeksgeeks. Clearly, s2 is a rotated
version of s1 as s2 can be obtained by... | [
{
"code": null,
"e": 369,
"s": 226,
"text": "Given two strings s1 and s2. The task is to check if s2 is a rotated version of the string s1. The characters in the strings are in lowercase."
},
{
"code": null,
"e": 382,
"s": 371,
"text": "Example 1:"
},
{
"code": null,
... |
Python Pandas - Categorical Data | Often in real-time, data includes the text columns, which are repetitive. Features like gender, country, and codes are always repetitive. These are the examples for categorical data.
Categorical variables can take on only a limited, and usually fixed number of possible values. Besides the fixed length, categorical data... | [
{
"code": null,
"e": 2626,
"s": 2443,
"text": "Often in real-time, data includes the text columns, which are repetitive. Features like gender, country, and codes are always repetitive. These are the examples for categorical data."
},
{
"code": null,
"e": 2860,
"s": 2626,
"text": ... |
TestNG - Asserts | In the previous chapters we executed some tests using TestNG. We didn't declare a test success or fail. A test is considered successful if it completed without throwing any exception or if it threw an exception that was expected.
A test method will typically be made of calls that can throw an exception, or of various a... | [
{
"code": null,
"e": 2290,
"s": 2060,
"text": "In the previous chapters we executed some tests using TestNG. We didn't declare a test success or fail. A test is considered successful if it completed without throwing any exception or if it threw an exception that was expected."
},
{
"code": n... |
DAX Aggregation - COUNTX function | Counts the number of rows that contain a number or an expression that evaluates to a number, when evaluating an expression over a table.
COUNTX (<table>, <expression>)
table
The table containing the rows to be counted.
expression
An expression that returns the numbers you want to count.
Returns a whole number.
The COU... | [
{
"code": null,
"e": 2138,
"s": 2001,
"text": "Counts the number of rows that contain a number or an expression that evaluates to a number, when evaluating an expression over a table."
},
{
"code": null,
"e": 2170,
"s": 2138,
"text": "COUNTX (<table>, <expression>)\n"
},
{
... |
SAP HANA Admin - Solman Integration | You can also support your SAP HANA system by using SAP Solution Manager. To make two systems communicate with each other, you need to register your SAP HANA system to SAP solution manager’s System Landscape Directory (SLD). This directory contains the information about the landscape and software component versions. A S... | [
{
"code": null,
"e": 2794,
"s": 2324,
"text": "You can also support your SAP HANA system by using SAP Solution Manager. To make two systems communicate with each other, you need to register your SAP HANA system to SAP solution manager’s System Landscape Directory (SLD). This directory contains the i... |
Full outer join in PySpark dataframe - GeeksforGeeks | 19 Dec, 2021
In this article, we are going to see how to perform Full Outer Join in PySpark DataFrames in Python.
Python3
# importing moduleimport pyspark # importing sparksession from pyspark.sql modulefrom pyspark.sql import SparkSession # creating sparksession and giving an app namespark = SparkSession.builder.app... | [
{
"code": null,
"e": 24292,
"s": 24264,
"text": "\n19 Dec, 2021"
},
{
"code": null,
"e": 24393,
"s": 24292,
"text": "In this article, we are going to see how to perform Full Outer Join in PySpark DataFrames in Python."
},
{
"code": null,
"e": 24401,
"s": 24393,
... |
Java Math getExponent() method with Example - GeeksforGeeks | 09 Apr, 2018
The java.lang.Math.getExponent() returns the unbiased exponent used in the representation of a double or float.Note:
If the argument is NaN or infinite of double or float type, then the result is (Double.MAX_EXPONENT + 1) or (Float.MAX_EXPONENT + 1).
If the argument is zero or subnormal of double or float ... | [
{
"code": null,
"e": 23948,
"s": 23920,
"text": "\n09 Apr, 2018"
},
{
"code": null,
"e": 24065,
"s": 23948,
"text": "The java.lang.Math.getExponent() returns the unbiased exponent used in the representation of a double or float.Note:"
},
{
"code": null,
"e": 24199,
... |
Advanced Data Visualization in Python with HoloViews | by Andrew Riley | Towards Data Science | HoloViews is an open source package that produces high quality and interactive visualizations with minimal code and effort. The project page can found here here along with many examples to understand the capabilities of the package. I have been very pleased with the easy of use and performance relative to the legacy op... | [
{
"code": null,
"e": 530,
"s": 172,
"text": "HoloViews is an open source package that produces high quality and interactive visualizations with minimal code and effort. The project page can found here here along with many examples to understand the capabilities of the package. I have been very pleas... |
An Introductory Reinforcement Learning Project: Learning Tic-Tac-Toe via Self-Play Tabular Q-learning | by Ryan Rudes | Towards Data Science | In this project, I’ll walk through an introductory project on tabular Q-learning. We’ll train a simple RL agent to be able to evaluate tic-tac-toe positions in order to return the best move by playing against itself for many games.
First, let’s import the required libraries
Note that tabular q-learning only works for e... | [
{
"code": null,
"e": 403,
"s": 171,
"text": "In this project, I’ll walk through an introductory project on tabular Q-learning. We’ll train a simple RL agent to be able to evaluate tic-tac-toe positions in order to return the best move by playing against itself for many games."
},
{
"code": n... |
ContainsKey in C# | ContainsKey is a Dictionary method in C# and check whether a key exists in the Dictionary or not.
Declare a Dictionary and add elements −
var dict = new Dictionary<string, int>() {
{"TV", 1},
{"Home Theatre", 2},
{"Amazon Alexa", 3},
{"Google Home", 5},
{"Laptop", 5},
{"Bluetooth Speaker", 6}
};
Now, ... | [
{
"code": null,
"e": 1160,
"s": 1062,
"text": "ContainsKey is a Dictionary method in C# and check whether a key exists in the Dictionary or not."
},
{
"code": null,
"e": 1200,
"s": 1160,
"text": "Declare a Dictionary and add elements −"
},
{
"code": null,
"e": 1377,
... |
Java | ==, equals(), compareTo(), equalsIgnoreCase() and compare() | 06 Jun, 2021
There are many ways to compare two Strings in Java:
Using == operator
Using equals() method
Using compareTo() method
Using compareToIgnoreCase() method
Using compare() methodMethod 1: using == operatorDouble equals operator is used to compare two or more than two objects, If they are referring to the sam... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n06 Jun, 2021"
},
{
"code": null,
"e": 108,
"s": 54,
"text": "There are many ways to compare two Strings in Java: "
},
{
"code": null,
"e": 126,
"s": 108,
"text": "Using == operator"
},
{
"code": null,
"... |
Impact of Image Flattening | 22 Jan, 2021
Flattening is a technique that is used to convert multi-dimensional arrays into a 1-D array, it is generally used in Deep Learning while feeding the 1-D array information to the classification model.
What is the need for Flattening of an Image?
Multi-Dimensional arrays take more amount of memory while 1-D ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n22 Jan, 2021"
},
{
"code": null,
"e": 254,
"s": 54,
"text": "Flattening is a technique that is used to convert multi-dimensional arrays into a 1-D array, it is generally used in Deep Learning while feeding the 1-D array information to ... |
PHP | call_user_func() Function | 25 Jun, 2018
The call_user_func() is an inbuilt function in PHP which is used to call the callback given by the first parameter and passes the remaining parameters as argument. It is used to call the user-defined functions.
Syntax:
mixed call_user_func ( $function_name[, mixed $value1[, mixed $... ]])
Here, mixed indic... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n25 Jun, 2018"
},
{
"code": null,
"e": 239,
"s": 28,
"text": "The call_user_func() is an inbuilt function in PHP which is used to call the callback given by the first parameter and passes the remaining parameters as argument. It is used ... |
Set title of window in PyQt5 – setWindowTitle | 24 Nov, 2021
PyQt5 is a comprehensive set of Python bindings for Qt v5. It is implemented as more than 35 extension modules and enables Python to be used as an alternative application development language to C++ on all supported platforms including iOS and Android.In this article, we will see how to set title of the wi... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n24 Nov, 2021"
},
{
"code": null,
"e": 444,
"s": 28,
"text": "PyQt5 is a comprehensive set of Python bindings for Qt v5. It is implemented as more than 35 extension modules and enables Python to be used as an alternative application deve... |
C program to check whether a given number is even or odd | 10 Jun, 2022
Given an integer N, the task is to check if the given number N is even or odd. If it is found to be even, then print “Even”. Otherwise, print “Odd”.
Examples:
Input: N = 2Output: Even
Input: N = 5Output: Odd
Method 1: The simplest approach is to check if the remainder obtained after dividing the given numb... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n10 Jun, 2022"
},
{
"code": null,
"e": 203,
"s": 54,
"text": "Given an integer N, the task is to check if the given number N is even or odd. If it is found to be even, then print “Even”. Otherwise, print “Odd”."
},
{
"code": nul... |
Python Tweepy – Getting the number of followers of a user | 18 Jun, 2020
In this article we will see how we can get the number of followers of a user. The followers_count attribute provides us with an integer donating the number of followers the user account has.
Identifying the number of followers in the GUI :
In the above mentioned profile the number of followers are : 17.8K ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n18 Jun, 2020"
},
{
"code": null,
"e": 219,
"s": 28,
"text": "In this article we will see how we can get the number of followers of a user. The followers_count attribute provides us with an integer donating the number of followers the us... |
JSON Schema | 22 Jun, 2020
JSON Schema is a content specification language used for validating the structure of a JSON data.It helps you specify the objects and what values are valid inside the object’s properties. JSON schema is useful in offering clear, human-readable, and machine-readable documentation.
Structure of a JSON Schema... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n22 Jun, 2020"
},
{
"code": null,
"e": 309,
"s": 28,
"text": "JSON Schema is a content specification language used for validating the structure of a JSON data.It helps you specify the objects and what values are valid inside the object’s... |
Python – Cross Pairing in Tuple List | 02 Sep, 2020
Given 2 tuples, perform cross pairing of corresponding tuples, convert to single tuple if 1st element of both tuple matches.
Input : test_list1 = [(1, 7), (6, 7), (8, 100), (4, 21)], test_list2 = [(1, 3), (2, 1), (9, 7), (2, 17)]Output : [(7, 3)]Explanation : 1 occurs as tuple element at pos. 1 in both tup... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n02 Sep, 2020"
},
{
"code": null,
"e": 153,
"s": 28,
"text": "Given 2 tuples, perform cross pairing of corresponding tuples, convert to single tuple if 1st element of both tuple matches."
},
{
"code": null,
"e": 381,
"s":... |
Kernel in Operating System | 08 Mar, 2022
Kernel is central component of an operating system that manages operations of computer and hardware. It basically manages operations of memory and CPU time. It is core component of an operating system. Kernel acts as a bridge between applications and data processing performed at hardware level using inter-... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n08 Mar, 2022"
},
{
"code": null,
"e": 400,
"s": 52,
"text": "Kernel is central component of an operating system that manages operations of computer and hardware. It basically manages operations of memory and CPU time. It is core compon... |
Lodash _.includes() Method | 09 Sep, 2020
The _.includes() method is used to find the value is in the collection or not. If the collection is a string, it will be tested for a value sub-string, otherwise SameValueZero() method is used for equality comparisons. If the index is given and is negative, the value is tested from the end indexes of the c... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n09 Sep, 2020"
},
{
"code": null,
"e": 360,
"s": 28,
"text": "The _.includes() method is used to find the value is in the collection or not. If the collection is a string, it will be tested for a value sub-string, otherwise SameValueZero... |
Lodash _.exists() Method | 30 Sep, 2020
The Lodash _.exists() method checks whether the given value is Exist or not and returns the corresponding boolean value. Both null and undefined are considered non-existy values. All other values are “Existy”.
Syntax:
_.exists( value );
Parameters: This method accepts single parameter as mentioned above a... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n30 Sep, 2020"
},
{
"code": null,
"e": 238,
"s": 28,
"text": "The Lodash _.exists() method checks whether the given value is Exist or not and returns the corresponding boolean value. Both null and undefined are considered non-existy valu... |
Find Prime number just less than and just greater each element of given Array - GeeksforGeeks | 28 Jan, 2022
Given an integer array A[] of size N, the task is to find the prime numbers just less and just greater than A[i] (for all 0<=i<N).
Examples:
Input: A={17, 28}, N=2Output:13 1923 29Explanation:13 is the prime number just less than 17.19 is the prime number just greater than 17.23 is the prime number just le... | [
{
"code": null,
"e": 24820,
"s": 24792,
"text": "\n28 Jan, 2022"
},
{
"code": null,
"e": 24951,
"s": 24820,
"text": "Given an integer array A[] of size N, the task is to find the prime numbers just less and just greater than A[i] (for all 0<=i<N)."
},
{
"code": null,
... |
Explain about add and assignment(+=) operator in detail in javascript? | The add and assignment(+=) operator reduces the code little bit.It may not much influential in small codes whereas coming to long codes it's use can't be ignored.
Live Demo
<html>
<body>
<script>
var tot = 0;
var a = [1,45,78,9,78,40];
for(var i = 0; i<a.length;i++){
tot += a[i]
}
document.write(... | [
{
"code": null,
"e": 1226,
"s": 1062,
"text": "The add and assignment(+=) operator reduces the code little bit.It may not much influential in small codes whereas coming to long codes it's use can't be ignored."
},
{
"code": null,
"e": 1237,
"s": 1226,
"text": " Live Demo"
},
... |
Upload file with php to another php server | The fopen, fread and fwrite functions can be used to open a file stream, read a data stream and write that data to a file respectively.
The file resource doesn't necessarily need to point to a location on the local machine itself.
Below is an example that transfers a file from the local server to ftp server −
$file = "... | [
{
"code": null,
"e": 1198,
"s": 1062,
"text": "The fopen, fread and fwrite functions can be used to open a file stream, read a data stream and write that data to a file respectively."
},
{
"code": null,
"e": 1293,
"s": 1198,
"text": "The file resource doesn't necessarily need to ... |
Complete Architectural Details of all EfficientNet Models | by Vardan Agarwal | Towards Data Science | I was scrolling through notebooks in a Kaggle competition and found almost everyone was using EfficientNet as their backbone which I had not heard about till then. It is introduced by Google AI in this paper and they tried to propose a method that is more efficient as suggested by its name while improving the state of ... | [
{
"code": null,
"e": 845,
"s": 172,
"text": "I was scrolling through notebooks in a Kaggle competition and found almost everyone was using EfficientNet as their backbone which I had not heard about till then. It is introduced by Google AI in this paper and they tried to propose a method that is more... |
Comparison of Exception Handling in C++ and Java - GeeksforGeeks | 08 Dec, 2021
Both languages use to try, catch and throw keywords for exception handling, and their meaning is also the same in both languages.
Following are the differences between Java and C++ exception handling:
Java
C++
The above points have been discussed in detail below:
1) In C++, all types (including primitive ... | [
{
"code": null,
"e": 25483,
"s": 25455,
"text": "\n08 Dec, 2021"
},
{
"code": null,
"e": 25614,
"s": 25483,
"text": "Both languages use to try, catch and throw keywords for exception handling, and their meaning is also the same in both languages. "
},
{
"code": null,
... |
Interface 8255 with 8085 microprocessor for addition - GeeksforGeeks | 07 Apr, 2022
Problem – Interface 8255 with 8085 microprocessor and write an assembly program that determines the addition of contents of port A and port B and stores the result in port C.
Example –
Algorithm –
Construct the control word registerInput the data from port A and port BAdd the contents of port A and por... | [
{
"code": null,
"e": 26521,
"s": 26493,
"text": "\n07 Apr, 2022"
},
{
"code": null,
"e": 26697,
"s": 26521,
"text": "Problem – Interface 8255 with 8085 microprocessor and write an assembly program that determines the addition of contents of port A and port B and stores the result... |
Working with Image Pixels in OpenCV | by Samuel Ozechi | Towards Data Science | Pixels are important attributes of images in computer vision. They are numerical values that represent the color intensity of light in a particular space in an image and are the smallest units of data in an image.
The total number of pixels in an image is obtained as the product of its height, width and channels.
Since... | [
{
"code": null,
"e": 386,
"s": 172,
"text": "Pixels are important attributes of images in computer vision. They are numerical values that represent the color intensity of light in a particular space in an image and are the smallest units of data in an image."
},
{
"code": null,
"e": 487,... |
JDBC - Insert Records Example | This chapter provides an example on how to insert records in a table using JDBC application. Before executing following example, make sure you have the following in place −
To execute the following example you can replace the username and password with your actual user name and password.
To execute the following exampl... | [
{
"code": null,
"e": 2335,
"s": 2162,
"text": "This chapter provides an example on how to insert records in a table using JDBC application. Before executing following example, make sure you have the following in place −"
},
{
"code": null,
"e": 2451,
"s": 2335,
"text": "To execut... |
Kali Linux - Aircrack-ng - GeeksforGeeks | 28 Jul, 2020
Aircrack-ng is a tool that comes pre-installed in Kali Linux and is used for wifi network security and hacking. Aircrack is an all in one packet sniffer, WEP and WPA/WPA2 cracker, analyzing tool and a hash capturing tool. It is a tool used for wifi hacking. It helps in capturing the package and reading the... | [
{
"code": null,
"e": 24570,
"s": 24542,
"text": "\n28 Jul, 2020"
},
{
"code": null,
"e": 25057,
"s": 24570,
"text": "Aircrack-ng is a tool that comes pre-installed in Kali Linux and is used for wifi network security and hacking. Aircrack is an all in one packet sniffer, WEP and W... |
DurationField - Django Models - GeeksforGeeks | 02 Sep, 2021
DurationField is a field for storing periods of time – modeled in Python by timedelta. When used on PostgreSQL, the data type used is an interval and on Oracle the data type is INTERVAL DAY(9) TO SECOND(6). Otherwise, a bigint of microseconds is used. DurationField basically stores a duration, the differen... | [
{
"code": null,
"e": 23681,
"s": 23653,
"text": "\n02 Sep, 2021"
},
{
"code": null,
"e": 24019,
"s": 23681,
"text": "DurationField is a field for storing periods of time – modeled in Python by timedelta. When used on PostgreSQL, the data type used is an interval and on Oracle the... |
Concatenate strings from several rows using Pandas groupby - GeeksforGeeks | 20 Aug, 2020
Pandas Dataframe.groupby() method is used to split the data into groups based on some criteria. The abstract definition of grouping is to provide a mapping of labels to the group name.
To concatenate string from several rows using Dataframe.groupby(), perform the following steps:
Group the data using Dataf... | [
{
"code": null,
"e": 25043,
"s": 25015,
"text": "\n20 Aug, 2020"
},
{
"code": null,
"e": 25228,
"s": 25043,
"text": "Pandas Dataframe.groupby() method is used to split the data into groups based on some criteria. The abstract definition of grouping is to provide a mapping of labe... |
Priority Queue Introduction in C/C++
| A priority queue is a type of queue in which elements are inserted or deleted according to the priorities assigned to them where priority is an integer value that can range between 0-10 where 0 shows the element with the highest priority and 10 shows the element with the lowest priority. There are two rules that are fo... | [
{
"code": null,
"e": 1423,
"s": 1062,
"text": "A priority queue is a type of queue in which elements are inserted or deleted according to the priorities assigned to them where priority is an integer value that can range between 0-10 where 0 shows the element with the highest priority and 10 shows th... |
Explain about concurrent transactions in DBMS | A transaction is a unit of database processing which contains a set of operations. For example, deposit of money, balance enquiry, reservation of tickets etc.
Every transaction starts with delimiters begin transaction and terminates with end transaction delimiters. The set of operations within these two delimiters cons... | [
{
"code": null,
"e": 1221,
"s": 1062,
"text": "A transaction is a unit of database processing which contains a set of operations. For example, deposit of money, balance enquiry, reservation of tickets etc."
},
{
"code": null,
"e": 1406,
"s": 1221,
"text": "Every transaction start... |
Comparing Timestamp in Python - Pandas - GeeksforGeeks | 24 Jan, 2021
Pandas timestamp is equivalent to DateTime in Python. The timestamp is used for time series oriented data structures in pandas. Sometimes date and time is provided as a timestamp in pandas or is beneficial to be converted in timestamp. And, it is required to compare timestamps to know the latest entry, ent... | [
{
"code": null,
"e": 24292,
"s": 24264,
"text": "\n24 Jan, 2021"
},
{
"code": null,
"e": 24844,
"s": 24292,
"text": "Pandas timestamp is equivalent to DateTime in Python. The timestamp is used for time series oriented data structures in pandas. Sometimes date and time is provided... |
Java program to reverse bits of a positive integer number | The bits of an integer number can be reversed to obtain another number. An example of this is given as follows −
Number = 11
Binary representation = 1011
Reversed binary representation = 1101
Reversed number = 13
A program that demonstrates this is given as follows −
Live Demo
public class Example {
public static v... | [
{
"code": null,
"e": 1175,
"s": 1062,
"text": "The bits of an integer number can be reversed to obtain another number. An example of this is given as follows −"
},
{
"code": null,
"e": 1275,
"s": 1175,
"text": "Number = 11\nBinary representation = 1011\nReversed binary representa... |
Integrating Airflow with Slack for Daily Reporting | by Mandy Gu | Towards Data Science | Tech Stack: Python 3.7, Airflow (1.10.10), Docker
GitHub link: All of the code can be found here.
Slack is an increasingly popular chat app used in the workplace. Apache Airflow is an open source platform for orchestrating workflows. One of the biggest advantages to using Airflow is the versatility around its hooks and... | [
{
"code": null,
"e": 221,
"s": 171,
"text": "Tech Stack: Python 3.7, Airflow (1.10.10), Docker"
},
{
"code": null,
"e": 269,
"s": 221,
"text": "GitHub link: All of the code can be found here."
},
{
"code": null,
"e": 615,
"s": 269,
"text": "Slack is an increas... |
How to update all the entries except a single value in a particular column using MySQL? | To update all the entries while ignoring a single value, you need to use IF().
Let us first create a table −
mysql> create table DemoTable736 (
CustomerId int NOT NULL AUTO_INCREMENT PRIMARY KEY,
CustomerName varchar(100),
isMarried boolean
);
Query OK, 0 rows affected (0.53 sec)
Insert some records in the tab... | [
{
"code": null,
"e": 1141,
"s": 1062,
"text": "To update all the entries while ignoring a single value, you need to use IF()."
},
{
"code": null,
"e": 1171,
"s": 1141,
"text": "Let us first create a table −"
},
{
"code": null,
"e": 1352,
"s": 1171,
"text": "my... |
Final variables in C# | Java has a final keyword, but C# does not have its implementation. Use the sealed or readonly keyword in C# for the same implementation.
The readonly would allow the variables to be assigned a value only once. A field marked "read-only", can only be set once during the construction of an object. It cannot be changed.
c... | [
{
"code": null,
"e": 1199,
"s": 1062,
"text": "Java has a final keyword, but C# does not have its implementation. Use the sealed or readonly keyword in C# for the same implementation."
},
{
"code": null,
"e": 1381,
"s": 1199,
"text": "The readonly would allow the variables to be ... |
Rat in a Maze Problem - I | Practice | GeeksforGeeks | Consider a rat placed at (0, 0) in a square matrix of order N * N. It has to reach the destination at (N - 1, N - 1). Find all possible paths that the rat can take to reach from source to destination. The directions in which the rat can move are 'U'(up), 'D'(down), 'L' (left), 'R' (right). Value 0 at a cell in the matr... | [
{
"code": null,
"e": 825,
"s": 238,
"text": "Consider a rat placed at (0, 0) in a square matrix of order N * N. It has to reach the destination at (N - 1, N - 1). Find all possible paths that the rat can take to reach from source to destination. The directions in which the rat can move are 'U'(up), ... |
Maximum frequency of any array element possible by at most K increments - GeeksforGeeks | 13 Jul, 2021
Given an array arr[] of size N and an integer K, the task is to find the maximum possible frequency of any array element by at most K increments.
Examples:
Input: arr[] = {1, 4, 8, 13}, N = 4, K = 5 Output: 2 Explanation: Incrementing arr[0] twice modifies arr[] to {4, 4, 8, 13}. Maximum frequency = 2. Inc... | [
{
"code": null,
"e": 24981,
"s": 24953,
"text": "\n13 Jul, 2021"
},
{
"code": null,
"e": 25127,
"s": 24981,
"text": "Given an array arr[] of size N and an integer K, the task is to find the maximum possible frequency of any array element by at most K increments."
},
{
"co... |
How to Sort CSV by multiple columns in Python ? - GeeksforGeeks | 21 Apr, 2021
In this article, we are going to discuss how to sort a CSV file by multiple columns. First, we will convert the CSV file into a data frame then we will sort the data frame by using the sort_values() method.
Syntax: DataFrame.sort_values(by, axis=0, ascending=True, inplace=False, kind=’quicksort’, na_posit... | [
{
"code": null,
"e": 24292,
"s": 24264,
"text": "\n21 Apr, 2021"
},
{
"code": null,
"e": 24500,
"s": 24292,
"text": "In this article, we are going to discuss how to sort a CSV file by multiple columns. First, we will convert the CSV file into a data frame then we will sort the da... |
Data Pipelines — Design Patterns for Reusability, Extensibility | by Mukul Sood | Towards Data Science | Designing extensible, modular, reusable Data Pipelines is a larger topic and very relevant in Data Engineering as the type of work involves dealing with constant change across different layers such as data sources, ingest, validation, processing, security, logging, monitoring. The changes happen at varying rates across... | [
{
"code": null,
"e": 828,
"s": 172,
"text": "Designing extensible, modular, reusable Data Pipelines is a larger topic and very relevant in Data Engineering as the type of work involves dealing with constant change across different layers such as data sources, ingest, validation, processing, security... |
Aptitude | GATE CS 1998 | Question 52 - GeeksforGeeks | 06 Sep, 2018
Consider n processes sharing the CPU in a round-robin fashion. Assuming that each process switch takes s seconds, what must be the quantum size q such that the overhead resulting from process switching is minimized but, at the same time, each process is guaranteed to get its turn at the CPU at least every ... | [
{
"code": null,
"e": 24226,
"s": 24198,
"text": "\n06 Sep, 2018"
},
{
"code": null,
"e": 24545,
"s": 24226,
"text": "Consider n processes sharing the CPU in a round-robin fashion. Assuming that each process switch takes s seconds, what must be the quantum size q such that the ove... |
4 Bit Binary Incrementer - GeeksforGeeks | 29 Apr, 2021
What is 4 Bit Binary Incrementer ?It adds 1 binary value to the existing binary value stored in the register or in other words we can simply say that it increases the value stored in the register by 1.For any n-bit binary incrementer ,‘n’ refers to the storage capacity of the register which needs to be inc... | [
{
"code": null,
"e": 24442,
"s": 24414,
"text": "\n29 Apr, 2021"
},
{
"code": null,
"e": 24874,
"s": 24442,
"text": "What is 4 Bit Binary Incrementer ?It adds 1 binary value to the existing binary value stored in the register or in other words we can simply say that it increases ... |
Bokeh - Quick Guide | Bokeh is a data visualization library for Python. Unlike Matplotlib and Seaborn, they are also Python packages for data visualization, Bokeh renders its plots using HTML and JavaScript. Hence, it proves to be extremely useful for developing web based dashboards.
The Bokeh project is sponsored by NumFocus https://numfoc... | [
{
"code": null,
"e": 2533,
"s": 2270,
"text": "Bokeh is a data visualization library for Python. Unlike Matplotlib and Seaborn, they are also Python packages for data visualization, Bokeh renders its plots using HTML and JavaScript. Hence, it proves to be extremely useful for developing web based da... |
Working on Git for GUI - GeeksforGeeks | 21 Apr, 2020
Git has its native environment within the terminal. All the new features are updated first at the command line, and only there is the full power of Git. But plain text isn’t the simplest choice for all tasks; sometimes some users are much more comfortable with a point-and-click interface, a visual represen... | [
{
"code": null,
"e": 24318,
"s": 24290,
"text": "\n21 Apr, 2020"
},
{
"code": null,
"e": 24651,
"s": 24318,
"text": "Git has its native environment within the terminal. All the new features are updated first at the command line, and only there is the full power of Git. But plain ... |
Python | Numpy.dsplit() method - GeeksforGeeks | 17 Sep, 2019
With the help of Numpy.dsplit()() method, we can get the splitted dimensions of an array by using Numpy.dsplit()() method.
Syntax : Numpy.dsplit(numpy.array(), split_size)
Return : Return the array having splitted dimensions.
Example #1 :
In this example we can see that using Numpy.expand_dims() method, we... | [
{
"code": null,
"e": 24292,
"s": 24264,
"text": "\n17 Sep, 2019"
},
{
"code": null,
"e": 24415,
"s": 24292,
"text": "With the help of Numpy.dsplit()() method, we can get the splitted dimensions of an array by using Numpy.dsplit()() method."
},
{
"code": null,
"e": 244... |
Arithmetic Operations on Images using OpenCV in Python | In this tutorial, we are going to learn about the arithmetic operations on Images using OpenCV. We can apply operations like addition, subtraction, Bitwise Operations, etc.., Let's see how we can perform operations on images.
We need the OpenCV module to perform operations on images. Install the OpenCV module using the... | [
{
"code": null,
"e": 1288,
"s": 1062,
"text": "In this tutorial, we are going to learn about the arithmetic operations on Images using OpenCV. We can apply operations like addition, subtraction, Bitwise Operations, etc.., Let's see how we can perform operations on images."
},
{
"code": null,... |
Redis - Backup | Redis SAVE command is used to create a backup of the current Redis database.
Following is the basic syntax of redis SAVE command.
127.0.0.1:6379> SAVE
Following example creates a backup of the current database.
127.0.0.1:6379> SAVE
OK
This command will create a dump.rdb file in your Redis directory.
To restore Re... | [
{
"code": null,
"e": 2122,
"s": 2045,
"text": "Redis SAVE command is used to create a backup of the current Redis database."
},
{
"code": null,
"e": 2175,
"s": 2122,
"text": "Following is the basic syntax of redis SAVE command."
},
{
"code": null,
"e": 2198,
"s": ... |
How to filter rows that contain a certain string in R? | We can do this by using filter and grepl function of dplyr package.
Consider the mtcars data set.
> data(mtcars)
> head(mtcars)
mpg cyl disp hp drat wt qsec vs am gear carb
Mazda RX4 21.0 6 160 110 3.90 2.620 16.46 0 1 4 4
Mazda RX4 Wag 21.0 6 160 110 3.90 2.875 17.02 0 1 4 4
Datsun 710 22.8 4 108 93 3.85 2.320 18.61 1... | [
{
"code": null,
"e": 1130,
"s": 1062,
"text": "We can do this by using filter and grepl function of dplyr package."
},
{
"code": null,
"e": 1160,
"s": 1130,
"text": "Consider the mtcars data set."
},
{
"code": null,
"e": 2253,
"s": 1160,
"text": "> data(mtcars... |
What are the allowed characters in Python function names? | Python Identifiers
Identifier is the name given to entities like class, functions, variables etc. in Python. It helps in knowing one entity from another.
Rules for writing identifiers
Identifiers can be a combination of lowercase letters (a to z) or uppercase letters (A to Z) or digits (0 to 9) or an underscore (_). Na... | [
{
"code": null,
"e": 1081,
"s": 1062,
"text": "Python Identifiers"
},
{
"code": null,
"e": 1216,
"s": 1081,
"text": "Identifier is the name given to entities like class, functions, variables etc. in Python. It helps in knowing one entity from another."
},
{
"code": null,
... |
How to subtract elements of two arrays and store the result as a positive array in JavaScript? | Suppose, we have two arrays like these −
const arr1 = [1,2,3,4,5,6];
const arr2 = [9,8,7,5,8,3];
We are required to write a JavaScript function that takes in two such arrays and returns an array of absolute difference between the corresponding elements of the array.
Therefore, for these arrays, the output should look l... | [
{
"code": null,
"e": 1103,
"s": 1062,
"text": "Suppose, we have two arrays like these −"
},
{
"code": null,
"e": 1159,
"s": 1103,
"text": "const arr1 = [1,2,3,4,5,6];\nconst arr2 = [9,8,7,5,8,3];"
},
{
"code": null,
"e": 1329,
"s": 1159,
"text": "We are requir... |
How to get typed text from a textbox by using Selenium Webdriver? | We can get the typed text from a textbox with Selenium webdriver. Firstly, we have to enter text in the text box (after being identified with any locators) with the help of the sendKeys method.
Then apply the method getAttribute to obtain the text entered in that field and pass the parameter value to that method. Let u... | [
{
"code": null,
"e": 1256,
"s": 1062,
"text": "We can get the typed text from a textbox with Selenium webdriver. Firstly, we have to enter text in the text box (after being identified with any locators) with the help of the sendKeys method."
},
{
"code": null,
"e": 1455,
"s": 1256,
... |
String Formatting in Python using % - GeeksforGeeks | 19 Nov, 2020
In Python a string of required formatting can be achieved by different methods.Some of them are ;1) Using %2) Using {}3) Using Template Strings
In this article the formatting using % is discussed.
The formatting using % is similar to that of ‘printf’ in C programming language.%d – integer%f – float%s – str... | [
{
"code": null,
"e": 24232,
"s": 24204,
"text": "\n19 Nov, 2020"
},
{
"code": null,
"e": 24376,
"s": 24232,
"text": "In Python a string of required formatting can be achieved by different methods.Some of them are ;1) Using %2) Using {}3) Using Template Strings"
},
{
"code... |
How to Serve Different Model Versions using TensorFlow Serving | by Renu Khandelwal | Towards Data Science | This article explains how to manage multiple models and multiple versions of the same model in TensorFlow Serving using configuration files along with a brief understanding of batching.
Deploying a TensorFlow Model to Production made Easy
You have TensorFlow deep learning models with different architectures or have tra... | [
{
"code": null,
"e": 358,
"s": 172,
"text": "This article explains how to manage multiple models and multiple versions of the same model in TensorFlow Serving using configuration files along with a brief understanding of batching."
},
{
"code": null,
"e": 411,
"s": 358,
"text": "... |
Check if the String has only unicode digits or space in Java | In order to check if a String has only unicode digits or space in Java, we use the isDigit() method and the charAt() method with decision making statements.
The isDigit(int codePoint) method determines whether the specific character (Unicode codePoint) is a digit. It returns a boolean value, either true or false.
Decla... | [
{
"code": null,
"e": 1219,
"s": 1062,
"text": "In order to check if a String has only unicode digits or space in Java, we use the isDigit() method and the charAt() method with decision making statements."
},
{
"code": null,
"e": 1377,
"s": 1219,
"text": "The isDigit(int codePoint... |
Data Engineering with Python, Django, and PostgreSQL | by Sammy Lee | Towards Data Science | Today’s post will deal with what may be one of the hardest aspects of data science which doesn’t involve analysis, but simply trying to make the backend of data science work. By backend I mean the database systems most data scientists will be working with on the job.
I will go over the following:
Build an absolute bare... | [
{
"code": null,
"e": 440,
"s": 172,
"text": "Today’s post will deal with what may be one of the hardest aspects of data science which doesn’t involve analysis, but simply trying to make the backend of data science work. By backend I mean the database systems most data scientists will be working with... |
Model Sub-Classing and Custom Training Loop from Scratch in TensorFlow 2 | by Mohammed Innat | Towards Data Science | In this article, we will try to understand the Model Sub-Classing API and Custom Training Loop from Scratch in TensorFlow 2. It may not be a beginner or advanced introduction but aim to get rough intuition of what they are all about. The post is divided into three parts:
Comparable Modelling Strategies in TensorFlow 2B... | [
{
"code": null,
"e": 443,
"s": 171,
"text": "In this article, we will try to understand the Model Sub-Classing API and Custom Training Loop from Scratch in TensorFlow 2. It may not be a beginner or advanced introduction but aim to get rough intuition of what they are all about. The post is divided i... |
Modify the string such that every character gets replaced with the next character in the keyboard | 14 May, 2021
Given a string str consisting of lowercase English alphabets. The task is to change each character of the string with the next letter (in a circular fashion) key in the keyboard. For example, ‘a’ gets replaced with ‘s’, ‘b’ gets replaced with ‘n’, ....., ‘l’ gets replaced with ‘z’, ....., ‘m’ gets replaced... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n14 May, 2021"
},
{
"code": null,
"e": 357,
"s": 28,
"text": "Given a string str consisting of lowercase English alphabets. The task is to change each character of the string with the next letter (in a circular fashion) key in the keyboa... |
Kivy – Material design Icon button | 24 Feb, 2021
Kivy is a platform-independent GUI tool in Python. It can run on Android, IOS, Linux and Windows, etc. This is the only GUI library from python which can independently run on an android device even we can use it on Raspberry pi also. It is an open-source Python library for rapid development of application... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n24 Feb, 2021"
},
{
"code": null,
"e": 512,
"s": 54,
"text": "Kivy is a platform-independent GUI tool in Python. It can run on Android, IOS, Linux and Windows, etc. This is the only GUI library from python which can independently run on... |
Lodash _.clamp() Method | 09 Sep, 2020
The _.clamp() method is used to clamp number within the inclusive range within the lower and upper bounds.
Syntax:
_.clamp(number, lower, upper)
Parameters: This method accepts three parameters as mentioned above and described below:
number: This parameter holds the number to clamp.
lower: This parameter ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n09 Sep, 2020"
},
{
"code": null,
"e": 135,
"s": 28,
"text": "The _.clamp() method is used to clamp number within the inclusive range within the lower and upper bounds."
},
{
"code": null,
"e": 143,
"s": 135,
"text": ... |
Print characters having odd frequencies in order of occurrence | 12 May, 2021
Given a string str containing only lowercase characters. The task is to print the characters having an odd frequency in the order of their occurrence.Note: Repeated elements with odd frequency are printed as many times they occur in order of their occurrences.Examples:
Input: str = “geeksforgeeks” Output:... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n12 May, 2021"
},
{
"code": null,
"e": 299,
"s": 28,
"text": "Given a string str containing only lowercase characters. The task is to print the characters having an odd frequency in the order of their occurrence.Note: Repeated elements w... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.