title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
What do you mean by odd loops in C language? | In C programming language, the Control statements are used to repeat a set of statements.
They are as follows −
for loop
while loop
do-while loop
In for loop and while loop, the condition specifies the number of times, in which a loop can be executed.
for (k = 1; k<=5; k++)
Here, the loop will execute until k<=5, when ... | [
{
"code": null,
"e": 1152,
"s": 1062,
"text": "In C programming language, the Control statements are used to repeat a set of statements."
},
{
"code": null,
"e": 1174,
"s": 1152,
"text": "They are as follows −"
},
{
"code": null,
"e": 1183,
"s": 1174,
"text": ... |
java.lang.reflect - Field Class | The java.lang.reflect.Field class provides information about, and dynamic access to, a single field of a class or an interface. The reflected field may be a class (static) field or an instance field. A Field permits widening conversions to occur during a get or set access operation, but throws an IllegalArgumentExcepti... | [
{
"code": null,
"e": 1816,
"s": 1454,
"text": "The java.lang.reflect.Field class provides information about, and dynamic access to, a single field of a class or an interface. The reflected field may be a class (static) field or an instance field. A Field permits widening conversions to occur during ... |
Style Pandas Dataframe Like a Master | by Eyal Trabelsi | Towards Data Science | The basic idea behind styling is to leverage visual aids like color and format, in order to communicate insight more efficiently.
One of the most common ways of visualizing a dataset is using a table. Tables allow your data consumers to gather insight by reading the underlying data. For example, you may find yourself i... | [
{
"code": null,
"e": 176,
"s": 46,
"text": "The basic idea behind styling is to leverage visual aids like color and format, in order to communicate insight more efficiently."
},
{
"code": null,
"e": 464,
"s": 176,
"text": "One of the most common ways of visualizing a dataset is u... |
time.Tick() Function in Golang With Examples - GeeksforGeeks | 21 Apr, 2020
In Go language, time packages supplies functionality for determining as well as viewing time. The Tick() function in Go language is a utility wrapper for NewTicker function. It only allows access to the ticking channel. In addition, Tick is beneficial for clients who don’t require to shut down the Ticker. ... | [
{
"code": null,
"e": 24069,
"s": 24041,
"text": "\n21 Apr, 2020"
},
{
"code": null,
"e": 24591,
"s": 24069,
"text": "In Go language, time packages supplies functionality for determining as well as viewing time. The Tick() function in Go language is a utility wrapper for NewTicker... |
Convert given Array of Strings to a Camel Case format sentence - GeeksforGeeks | 12 Dec, 2021
Given an array arr[] of N strings, each containing words with upper or lower case English alphabets, the task is to create a sentence in a Camel Case format using them.
Example:
Input: arr[] = {“AnNiruddHA Routh”, “LOVES”, “to”, “COdE everyDAY””}Output: AniruddhaRouth Loves To Code EverydayExplanation: The... | [
{
"code": null,
"e": 24821,
"s": 24793,
"text": "\n12 Dec, 2021"
},
{
"code": null,
"e": 24990,
"s": 24821,
"text": "Given an array arr[] of N strings, each containing words with upper or lower case English alphabets, the task is to create a sentence in a Camel Case format using ... |
Program to convert IP address to hexadecimal in C++ | Given with the input as an IP address value and the task is to represent the given IP address as its hexadecimal equivalent.
IP address or Internet protocol is a unique number to that uniquely describes your hardware connected to a network. Internet means over the network and protocol defines the set of rules and regul... | [
{
"code": null,
"e": 1187,
"s": 1062,
"text": "Given with the input as an IP address value and the task is to represent the given IP address as its hexadecimal equivalent."
},
{
"code": null,
"e": 1573,
"s": 1187,
"text": "IP address or Internet protocol is a unique number to tha... |
PyTorch - Recurrent Neural Network | Recurrent neural networks is one type of deep learning-oriented algorithm which follows a sequential approach. In neural networks, we always assume that each input and output is independent of all other layers. These type of neural networks are called recurrent because they perform mathematical computations in a sequen... | [
{
"code": null,
"e": 2626,
"s": 2259,
"text": "Recurrent neural networks is one type of deep learning-oriented algorithm which follows a sequential approach. In neural networks, we always assume that each input and output is independent of all other layers. These type of neural networks are called r... |
Hibernate - Bag Mappings | A Bag is a java collection that stores elements without caring about the sequencing, but allow duplicate elements in the list. A bag is a random grouping of the objects in the list.
A Collection is mapped with a <bag> element in the mapping table and initialized with java.util.ArrayList.
Consider a situation where we n... | [
{
"code": null,
"e": 2245,
"s": 2063,
"text": "A Bag is a java collection that stores elements without caring about the sequencing, but allow duplicate elements in the list. A bag is a random grouping of the objects in the list."
},
{
"code": null,
"e": 2352,
"s": 2245,
"text": "... |
Recursively list nested object keys JavaScript | Let’s say, we have an object with other objects being its property value, it is nested to 2-3 levels
or even more.
Here is the sample object −
const people = {
Ram: {
fullName: 'Ram Kumar',
details: {
age: 31,
isEmployed: true
}
},
Sourav: {
fullName: 'Sourav Singh',
... | [
{
"code": null,
"e": 1177,
"s": 1062,
"text": "Let’s say, we have an object with other objects being its property value, it is nested to 2-3 levels\nor even more."
},
{
"code": null,
"e": 1205,
"s": 1177,
"text": "Here is the sample object −"
},
{
"code": null,
"e": 1... |
How to convert integer set to int array using Java? | A collection object in Java is the one which stores references of other objects in it. The java.util package provides the classes and interfaces for collections. There are four main collection interfaces namely Set Lists, Queues, Maps.
Set − The set object is a collection which stores group of elements, it grows dynami... | [
{
"code": null,
"e": 1298,
"s": 1062,
"text": "A collection object in Java is the one which stores references of other objects in it. The java.util package provides the classes and interfaces for collections. There are four main collection interfaces namely Set Lists, Queues, Maps."
},
{
"co... |
How to print without newline in Python? | In python the print statement adds a new line character by default. So when we have multiple print statements the output from each of them is printed in multiple lines as you can see in the example below. Our goal is to print them in a single line and use some special parameters to the print function to achieve that.
T... | [
{
"code": null,
"e": 1381,
"s": 1062,
"text": "In python the print statement adds a new line character by default. So when we have multiple print statements the output from each of them is printed in multiple lines as you can see in the example below. Our goal is to print them in a single line and u... |
How to Make Grouped Boxplot with Jittered Data Points in ggplot2 in R | 05 Nov, 2021
In this article, we will see how to make use of ggplot2 package in R Programming Language to plot grouped boxplots with jittered data points.
Grouped Boxplots help us visualize two or more features/variables in a single plot using the grouping variable in ggplot2. The jittered points are data points that b... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n05 Nov, 2021"
},
{
"code": null,
"e": 170,
"s": 28,
"text": "In this article, we will see how to make use of ggplot2 package in R Programming Language to plot grouped boxplots with jittered data points."
},
{
"code": null,
"... |
CSS | Attribute Selector | 03 Dec, 2018
The CSS Attribute Selector is used to select an element with some specific attribute or attribute value. It is an excellent way to style the HTML elements by grouping them based on some specific attributes and the attribute selector will select those elements with similar attributes.There are several types... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n03 Dec, 2018"
},
{
"code": null,
"e": 411,
"s": 53,
"text": "The CSS Attribute Selector is used to select an element with some specific attribute or attribute value. It is an excellent way to style the HTML elements by grouping them ba... |
Ruby | Numeric floor() function | 06 Jan, 2020
The floor() is an inbuilt method in Ruby returns a number less than or equal to the given number with a precision of the given number of digits after the decimal point. In case the number of digits is not given, the default value is taken to be zero.
Syntax: num.floor(ndigits)
Parameters: The function need... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n06 Jan, 2020"
},
{
"code": null,
"e": 279,
"s": 28,
"text": "The floor() is an inbuilt method in Ruby returns a number less than or equal to the given number with a precision of the given number of digits after the decimal point. In cas... |
turtle.ontimer() function in Python | 26 Jul, 2020
The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses Tkinter for the underlying graphics, it needs a version of Python installed with Tk support.
This function is used to install a timer, which calls fun after t milliseconds.
Syntax :
t... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n26 Jul, 2020"
},
{
"code": null,
"e": 245,
"s": 28,
"text": "The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses Tkinter for the underlying graphics, it needs a ver... |
Difference between LL and LR parser | 29 Jul, 2019
LL Parser includes both the recursive descent parser and non-recursive descent parser. Its one type uses backtracking while another one uses parsing table. Theses are top down parser.Example: Given grammar is
S -> Ac
A -> ab
where S is start symbol, A is non-terminal and a, b, c are terminals.
Input strin... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n29 Jul, 2019"
},
{
"code": null,
"e": 237,
"s": 28,
"text": "LL Parser includes both the recursive descent parser and non-recursive descent parser. Its one type uses backtracking while another one uses parsing table. Theses are top down... |
JQuery | Multiple ID selectors | 03 Aug, 2021
Given an HTML document and the task is to select the elements with different ID’s at the same time using JQuery.
Approach:
Select the ID’s of different element and then use each() method to apply the CSS property on all selected ID’s element.
Then use css() method to set the background color to pink to all... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n03 Aug, 2021"
},
{
"code": null,
"e": 141,
"s": 28,
"text": "Given an HTML document and the task is to select the elements with different ID’s at the same time using JQuery."
},
{
"code": null,
"e": 151,
"s": 141,
"t... |
Python | Numpy matrix.transpose() | 29 May, 2019
With the help of Numpy matrix.transpose() method, we can find the transpose of the matrix by using the matrix.transpose() method.
Syntax : matrix.transpose()Return : Return transposed matrix
Example #1 :In this example we can see that by using matrix.transpose() method we are able to find the transpose of ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n29 May, 2019"
},
{
"code": null,
"e": 158,
"s": 28,
"text": "With the help of Numpy matrix.transpose() method, we can find the transpose of the matrix by using the matrix.transpose() method."
},
{
"code": null,
"e": 219,
... |
Remove the first and last character of each word in a string | 06 May, 2021
Given the string the task is to remove the first and last character of each word in a string.Examples:
Input: Geeks for geeks
Output: eek o eek
Input: Geeksforgeeks is best
Output: eeksforgeek es
Approach
Split the String based on the space
Run a loop from the first letter to the last letter.
Check i... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n06 May, 2021"
},
{
"code": null,
"e": 157,
"s": 52,
"text": "Given the string the task is to remove the first and last character of each word in a string.Examples: "
},
{
"code": null,
"e": 252,
"s": 157,
"text": "... |
Queries on subsequence of string | 07 Jul, 2022
Given a string S and Q queries, each query contains a string T. The task is to print “Yes” if T is a subsequence of S, else print “No”.
Examples:
Input : S = "geeksforgeeks"
Query 1: "gg"
Query 2: "gro"
Query 3: "gfg"
Query 4: "orf"
Output :
Yes
No
Yes
No
For each query, using the brute force, start iter... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n07 Jul, 2022"
},
{
"code": null,
"e": 190,
"s": 54,
"text": "Given a string S and Q queries, each query contains a string T. The task is to print “Yes” if T is a subsequence of S, else print “No”."
},
{
"code": null,
"e": 2... |
CSS flex Property | 10 Nov, 2021
The flex CSS shorthand property is the combination of flex-grow, flex-shrink, and flex-basis property. It is used to set the length of flexible items. The flex property is much responsive and mobile-friendly. It is easy to position child elements and the main container. The margin doesn’t collapse with the... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n10 Nov, 2021"
},
{
"code": null,
"e": 434,
"s": 28,
"text": "The flex CSS shorthand property is the combination of flex-grow, flex-shrink, and flex-basis property. It is used to set the length of flexible items. The flex property is muc... |
Matlab | Dilation of an Image | 23 Mar, 2022
Morphology is known as the broad set of image processing operations that process images based on shapes. It is also known as a tool used for extracting image components that are useful in the representation and description of region shape.
The basic morphological operations are:
Erosion
Dilation
Dilati... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n23 Mar, 2022"
},
{
"code": null,
"e": 269,
"s": 28,
"text": "Morphology is known as the broad set of image processing operations that process images based on shapes. It is also known as a tool used for extracting image components that a... |
Maximum and Minimum value of a quadratic function | 31 May, 2022
Given a quadratic function ax2 + bx + c. Find the maximum and minimum value of the function possible when x is varied for all real values possible.
Examples:
Input: a = 1, b = -4, c = 4
Output:
Maxvalue = Infinity
Minvalue = 0
Quadratic function given is x2 -4x + 4
At x = 2, value of the function is equal ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n31 May, 2022"
},
{
"code": null,
"e": 176,
"s": 28,
"text": "Given a quadratic function ax2 + bx + c. Find the maximum and minimum value of the function possible when x is varied for all real values possible."
},
{
"code": null,... |
TimeSpan.Compare() Method in C# | 25 Jan, 2022
This method is used to compare two TimeSpan values and returns an integer value which indicates whether the first value is shorter than, equal to, or longer than the second value.
Syntax: public static int Compare (TimeSpan t1, TimeSpan t2);Parameters: t1: Specifies the first time interval that will be co... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n25 Jan, 2022"
},
{
"code": null,
"e": 209,
"s": 28,
"text": "This method is used to compare two TimeSpan values and returns an integer value which indicates whether the first value is shorter than, equal to, or longer than the second va... |
How to validate an Email using PHP? | 13 Feb, 2019
This article contains different methods to validate an email address in PHP. It uses regular expressions and inbuilt email validation function. The input string is taken from the user and matches it with the predefined regular expressions and if the regular expression and input string found to be matched t... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n13 Feb, 2019"
},
{
"code": null,
"e": 402,
"s": 54,
"text": "This article contains different methods to validate an email address in PHP. It uses regular expressions and inbuilt email validation function. The input string is taken from... |
Find common values between two NumPy arrays | 29 Aug, 2020
In this article, we are going to discuss how to find out the common values between 2 arrays. To find the common values, we can use the numpy.intersect1d(), which will do the intersection operation and return the common values between the 2 arrays in sorted order.
Syntax: numpy.intersect1d(arr1, arr2, assum... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n29 Aug, 2020"
},
{
"code": null,
"e": 292,
"s": 28,
"text": "In this article, we are going to discuss how to find out the common values between 2 arrays. To find the common values, we can use the numpy.intersect1d(), which will do the i... |
Optional ofNullable() method in Java with examples | 30 Jul, 2019
The ofNullable() method of java.util.Optional class in Java is used to get an instance of this Optional class with the specified value of the specified type. If the specified value is null, then this method returns an empty instance of the Optional class.
Syntax:
public static <T>
Optional<T> ofNullable(... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n30 Jul, 2019"
},
{
"code": null,
"e": 284,
"s": 28,
"text": "The ofNullable() method of java.util.Optional class in Java is used to get an instance of this Optional class with the specified value of the specified type. If the specified ... |
Python Program to convert complex numbers to Polar coordinates | 01 Oct, 2020
Before starting with the program, let’s see the basics of Polar Coordinates and then use Python’s cmath and abs module to convert it. Polar coordinates are just a different way of representing Cartesian coordinates or Complex Numbers. A complex number z is defined as :
It is completely determined by its r... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n01 Oct, 2020"
},
{
"code": null,
"e": 325,
"s": 54,
"text": "Before starting with the program, let’s see the basics of Polar Coordinates and then use Python’s cmath and abs module to convert it. Polar coordinates are just a different w... |
Replace Green Screen using OpenCV- Python | 29 Aug, 2021
Prerequisites: OpenCV Python TutorialOpenCV (Open Source Computer Vision) is a computer vision library that contains various functions to perform operations on pictures or videos. This library is cross-platform that is it is available on multiple programming languages such as Python, C++, etc.Green Screen ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n29 Aug, 2021"
},
{
"code": null,
"e": 448,
"s": 28,
"text": "Prerequisites: OpenCV Python TutorialOpenCV (Open Source Computer Vision) is a computer vision library that contains various functions to perform operations on pictures or vid... |
How do you give a C# Auto-Property a default value? | In C# 5.0 and before to give an value to the Auto Property we have to do in the constructor
The constructor will be automatically called when class is instantiated and the value will be set
After C#5.0 a new way to give a value to auto property has come which is similar in assigning a value to the variable
Set Value in... | [
{
"code": null,
"e": 1154,
"s": 1062,
"text": "In C# 5.0 and before to give an value to the Auto Property we have to do in the constructor"
},
{
"code": null,
"e": 1252,
"s": 1154,
"text": "The constructor will be automatically called when class is instantiated and the value will... |
Different Operations on Matrices - GeeksforGeeks | 06 May, 2022
For introduction on matrices, you can refer the following article: Matrix Introduction In this article, we will discuss various operations on matrices and their properties:
Matrices Addition – The addition of two matrices A m*n and Bm*n gives a matrix Cm*n. The elements of C are sum of corresponding eleme... | [
{
"code": null,
"e": 42629,
"s": 42601,
"text": "\n06 May, 2022"
},
{
"code": null,
"e": 42803,
"s": 42629,
"text": "For introduction on matrices, you can refer the following article: Matrix Introduction In this article, we will discuss various operations on matrices and their pr... |
How can we maintain session between Web Client and Web Server? | Following are the few options to maintain the session between the Web Client and the Web Server −
A webserver can assign a unique session ID as a cookie to each web client and for subsequent requests from the client they can be recognized using the received cookie.
This may not be an effective way as the browser at tim... | [
{
"code": null,
"e": 1160,
"s": 1062,
"text": "Following are the few options to maintain the session between the Web Client and the Web Server −"
},
{
"code": null,
"e": 1328,
"s": 1160,
"text": "A webserver can assign a unique session ID as a cookie to each web client and for su... |
How can I cycle through line styles in Matplotlib? | To plot multiple lines in a diagram, we can use the cycler that could help to set a new color from the given list of colors. (Here, ‘r’ => ‘red’, ‘g’ => ‘green’, ‘y’ => ‘yellow’, ‘b’ => ‘blue’).
Use a cycler to set the color for the group of lines. The color list consists of ‘r’ for red, ‘g’ for green, ‘b’ for blue, an... | [
{
"code": null,
"e": 1257,
"s": 1062,
"text": "To plot multiple lines in a diagram, we can use the cycler that could help to set a new color from the given list of colors. (Here, ‘r’ => ‘red’, ‘g’ => ‘green’, ‘y’ => ‘yellow’, ‘b’ => ‘blue’)."
},
{
"code": null,
"e": 1400,
"s": 1257,
... |
What is string constant pool in Java? | When you store a String as
String str1 = "Hello";
directly, then JVM creates a String object with the given value in a separate block of memory known as String constant pool.
And whenever we try to create another String as
String str2 = "Hello";
JVM verifies whether any String object with the same value exists in the S... | [
{
"code": null,
"e": 1089,
"s": 1062,
"text": "When you store a String as"
},
{
"code": null,
"e": 1112,
"s": 1089,
"text": "String str1 = \"Hello\";"
},
{
"code": null,
"e": 1237,
"s": 1112,
"text": "directly, then JVM creates a String object with the given v... |
Declare dynamically in SAP ABAP | I think for your implementation, you can declare an internal table in a dynamic manner.
DATA: tbl_TEST TYPE REF TO DATA.
FIELD-SYMBOLS: < tbl_TEST > TYPE STANDARD TABLE
CREATE DATA tbl_TEST TYPE (Received_Type)
ASSIGN tbl_TEST TYPE ->* to < tbl_TEST TYPE > | [
{
"code": null,
"e": 1150,
"s": 1062,
"text": "I think for your implementation, you can declare an internal table in a dynamic manner."
},
{
"code": null,
"e": 1320,
"s": 1150,
"text": "DATA: tbl_TEST TYPE REF TO DATA.\nFIELD-SYMBOLS: < tbl_TEST > TYPE STANDARD TABLE\nCREATE DAT... |
TensorBoard: Hyperparameter Optimization | by Renu Khandelwal | Towards Data Science | Prerequisites:
TensorBoard- A Visualization suite for Tensorflow models
In this article, you will learn hyperparameter optimization and then display the results of the hyperparameter optimization using TensorBoard.
What is Hyperparameter in the context of a deep neural network?
Your objective in a deep learning neural ... | [
{
"code": null,
"e": 187,
"s": 172,
"text": "Prerequisites:"
},
{
"code": null,
"e": 244,
"s": 187,
"text": "TensorBoard- A Visualization suite for Tensorflow models"
},
{
"code": null,
"e": 387,
"s": 244,
"text": "In this article, you will learn hyperparamete... |
Bagged Trees: A Machine Learning Algorithm Every Data Scientist Needs | by Robert Wood | Towards Data Science | Without diving into the specifics just yet, it’s important that you have some foundation understanding of decision trees.
From the evaluation approach of each algorithm to the algorithms themselves, there are many similarities.
If you aren’t already familiar with decision trees I’d recommend a quick refresher here.
Wit... | [
{
"code": null,
"e": 294,
"s": 172,
"text": "Without diving into the specifics just yet, it’s important that you have some foundation understanding of decision trees."
},
{
"code": null,
"e": 400,
"s": 294,
"text": "From the evaluation approach of each algorithm to the algorithms... |
Overfitting and Conceptual Soundness | by Klas Leino | Towards Data Science | Overfitting is a central problem in machine learning that is strongly tied to the reliability of a learned model when it is deployed on unseen data. Overfitting is often measured — or even defined — by the difference in accuracy obtained by a model on its training data, compared to on previously unseen validation data.... | [
{
"code": null,
"e": 897,
"s": 172,
"text": "Overfitting is a central problem in machine learning that is strongly tied to the reliability of a learned model when it is deployed on unseen data. Overfitting is often measured — or even defined — by the difference in accuracy obtained by a model on its... |
Change Thread Priority in Java | A thread can be created by implementing the Runnable interface and overriding the run() method. Then a Thread object can be created and the start() method called.
The thread priority determines when the processor is provided to the thread as well as other resources. It can be changed using the method setPriority() of c... | [
{
"code": null,
"e": 1225,
"s": 1062,
"text": "A thread can be created by implementing the Runnable interface and overriding the run() method. Then a Thread object can be created and the start() method called."
},
{
"code": null,
"e": 1395,
"s": 1225,
"text": "The thread priority... |
Java & MySQL - Viewing a ResultSet | The ResultSet interface contains dozens of methods for getting the data of the current row.
There is a get method for each of the possible data types, and each get method has two versions −
One that takes in a column name.
One that takes in a column name.
One that takes in a column index.
One that takes in a column ind... | [
{
"code": null,
"e": 2778,
"s": 2686,
"text": "The ResultSet interface contains dozens of methods for getting the data of the current row."
},
{
"code": null,
"e": 2876,
"s": 2778,
"text": "There is a get method for each of the possible data types, and each get method has two ver... |
The Binomial Regression Model: Everything You Need to Know | Towards Data Science | This article is divided into two sections:
SECTION 1: Introduction to the Binomial Regression model: We’ll get introduced to the Binomial Regression model, see how it fits into the family of Generalized Linear Models, and why it can be used to predict the odds of seeing a random event.SECTION 2: Using the Binomial regr... | [
{
"code": null,
"e": 90,
"s": 47,
"text": "This article is divided into two sections:"
},
{
"code": null,
"e": 787,
"s": 90,
"text": "SECTION 1: Introduction to the Binomial Regression model: We’ll get introduced to the Binomial Regression model, see how it fits into the family o... |
AWT KeyEvent Class | On entering the character the Key event is generated.There are three types of key events which are represented by the integer constants. These key events are following
KEY_PRESSED
KEY_PRESSED
KEY_RELASED
KEY_RELASED
KEY_TYPED
KEY_TYPED
Following is the declaration for java.awt.event.KeyEvent class:
public class KeyEven... | [
{
"code": null,
"e": 1915,
"s": 1747,
"text": "On entering the character the Key event is generated.There are three types of key events which are represented by the integer constants. These key events are following"
},
{
"code": null,
"e": 1927,
"s": 1915,
"text": "KEY_PRESSED"
... |
Construct Binary Tree from String in C++ | Suppose we have a string consisting of parenthesis and integers. We have to construct a binary tree from that string. The whole input represents a binary tree. It holds an integer that followed by zero, one or two pairs of parentheses. The integer represents the root's value and a pair of parenthesis contains a child b... | [
{
"code": null,
"e": 1418,
"s": 1062,
"text": "Suppose we have a string consisting of parenthesis and integers. We have to construct a binary tree from that string. The whole input represents a binary tree. It holds an integer that followed by zero, one or two pairs of parentheses. The integer repre... |
Java private Keyword | ❮ Java Keywords
A class with private attributes:
public class Main {
private String fname = "John";
private String lname = "Doe";
private String email = "john@doe.com";
private int age = 24;
public static void main(String[] args) {
Main myObj = new Main();
System.out.println("Name: " + myObj.fname +... | [
{
"code": null,
"e": 18,
"s": 0,
"text": "\n❮ Java Keywords\n"
},
{
"code": null,
"e": 51,
"s": 18,
"text": "A class with private attributes:"
},
{
"code": null,
"e": 443,
"s": 51,
"text": "public class Main {\n private String fname = \"John\";\n private Str... |
How to use Android Picasso library to download images using Kotlin? | This example demonstrates how to use the Android Picasso library to download images using Kotlin.
Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.
Add the following dependency to the build gradle (Module: app)
implementation 'com.squareup.p... | [
{
"code": null,
"e": 1160,
"s": 1062,
"text": "This example demonstrates how to use the Android Picasso library to download images using Kotlin."
},
{
"code": null,
"e": 1289,
"s": 1160,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill a... |
How to find the sixth cell (second row and third column ) of a 3x3 table in jQuery ? - GeeksforGeeks | 18 Apr, 2021
In this article, we will see how to get the sixth cell of a 3×3 table in jQuery. To find the nth-child of an element, we can use the nth-child selector of jQuery.
Approach: Sixth cell of a 3×3 table can be found using the following jQuery call:
$('#table1 tr:nth-child(2) td:nth-child(3)').text();
If the t... | [
{
"code": null,
"e": 25755,
"s": 25727,
"text": "\n18 Apr, 2021"
},
{
"code": null,
"e": 25919,
"s": 25755,
"text": "In this article, we will see how to get the sixth cell of a 3×3 table in jQuery. To find the nth-child of an element, we can use the nth-child selector of jQuery. ... |
How to do time series forecasting in BigQuery | by Lak Lakshmanan | Towards Data Science | Let’s carry out 2-week forecasts of the number of bicycle rentals that will commence at one of the bicycle stations in Hyde Park based on the past six weeks.
The first step, as with any machine learning problem is to gather the training data and explore it. Assume that we have the data on rentals until mid-June of 2015... | [
{
"code": null,
"e": 330,
"s": 172,
"text": "Let’s carry out 2-week forecasts of the number of bicycle rentals that will commence at one of the bicycle stations in Hyde Park based on the past six weeks."
},
{
"code": null,
"e": 591,
"s": 330,
"text": "The first step, as with any ... |
Find length of loop in linked list - GeeksforGeeks | 20 Oct, 2021
Write a function detectAndCountLoop() that checks whether a given Linked List contains loop and if loop is present then returns count of nodes in loop. For example, the loop is present in below-linked list and length of the loop is 4. If the loop is not present, then the function should return 0.
Approach:... | [
{
"code": null,
"e": 25088,
"s": 25060,
"text": "\n20 Oct, 2021"
},
{
"code": null,
"e": 25386,
"s": 25088,
"text": "Write a function detectAndCountLoop() that checks whether a given Linked List contains loop and if loop is present then returns count of nodes in loop. For example... |
POSIX Thread Libraries | Pthreads refers to the POSIX standard (IEEE 1003.1c) defining an API for thread creation and synchronization. This defines specification for thread behavior, not an implementation. The specification can be implemented by OS designers in any way they wish. So many systems implement the Pthreads specification; most are U... | [
{
"code": null,
"e": 2101,
"s": 1062,
"text": "Pthreads refers to the POSIX standard (IEEE 1003.1c) defining an API for thread creation and synchronization. This defines specification for thread behavior, not an implementation. The specification can be implemented by OS designers in any way they wis... |
Andrew Ng’s Machine Learning Course in Python (Kmeans-Clustering, PCA) | by Benjamin Lau | Towards Data Science | Second last part of the series, we look at unsupervised learning algorithms which consist of data without labels. Let’s get right into the assignment as we are going through two algorithms today.
K-means Clustering is one of a cluster analysis technique that allows grouping of data into groups called clusters. As label... | [
{
"code": null,
"e": 367,
"s": 171,
"text": "Second last part of the series, we look at unsupervised learning algorithms which consist of data without labels. Let’s get right into the assignment as we are going through two algorithms today."
},
{
"code": null,
"e": 605,
"s": 367,
... |
Flutter - Expansion Tile Card - GeeksforGeeks | 15 Feb, 2021
The Expansion Tile Card works similarly to that of the Flutter SDK’s standard expansion tile. But it uses the style used by Google itself in its products to raise a tile. It can be called a better version of the Flutter’s ExpansionTileCard.
In this article, we will look into the process of implementing the... | [
{
"code": null,
"e": 25549,
"s": 25521,
"text": "\n15 Feb, 2021"
},
{
"code": null,
"e": 25790,
"s": 25549,
"text": "The Expansion Tile Card works similarly to that of the Flutter SDK’s standard expansion tile. But it uses the style used by Google itself in its products to raise ... |
Is it possible to predict stock prices with a neural network? | by Ivan | Towards Data Science | When it comes to time series prediction the reader (the listener, the viewer...) starts thinking about predicting stock prices. This is expected to help to determine when to sell and when to buy more. Sometimes we see papers that describe how one can do this. Paper [1] provides an example here, the authors even provide... | [
{
"code": null,
"e": 868,
"s": 46,
"text": "When it comes to time series prediction the reader (the listener, the viewer...) starts thinking about predicting stock prices. This is expected to help to determine when to sell and when to buy more. Sometimes we see papers that describe how one can do th... |
Flutter and Blockchain – Hello World Dapp | 11 May, 2022
Flutter and Blockchain
This tutorial will take you through the process of building your first mobile dapp – Hello World Dapp!
This tutorial is meant for those with a basic knowledge of Ethereum and smart contracts, who have some knowledge of the Flutter framework but are new to mobile dapps.
In this tutori... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n11 May, 2022"
},
{
"code": null,
"e": 75,
"s": 52,
"text": "Flutter and Blockchain"
},
{
"code": null,
"e": 178,
"s": 75,
"text": "This tutorial will take you through the process of building your first mobile dapp –... |
How to align Image in HTML? | 21 Jul, 2021
Image alignment is used to move the image at different locations (top, bottom, right, left, middle) in our web pages. We use <img> align attribute to align the image. It is an inline element.
Syntax:
<img align=”left|right|middle|top|bottom”>
Attribute Values:
left: It is used for the alignment of image t... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n21 Jul, 2021"
},
{
"code": null,
"e": 220,
"s": 28,
"text": "Image alignment is used to move the image at different locations (top, bottom, right, left, middle) in our web pages. We use <img> align attribute to align the image. It is an... |
Python – Merge two Pandas DataFrame | To merge two Pandas DataFrame, use the merge() function. Just set both the DataFrames as a parameter of the merge() function.
At first, let us import the required library with alias “pd” −
import pandas as pd
Create the 1st DataFrame −
# Create DataFrame1
dataFrame1 = pd.DataFrame(
{
"Car": ['BMW', 'Lexus', 'A... | [
{
"code": null,
"e": 1313,
"s": 1187,
"text": "To merge two Pandas DataFrame, use the merge() function. Just set both the DataFrames as a parameter of the merge() function."
},
{
"code": null,
"e": 1376,
"s": 1313,
"text": "At first, let us import the required library with alias ... |
Unified Modeling Language (UML) | Class Diagrams | 17 Feb, 2021
What is UML? It is the general-purpose modeling language used to visualize the system. It is a graphical language that is standard to the software industry for specifying, visualizing, constructing, and documenting the artifacts of the software systems, as well as for business modeling.Benefits of UML:
Si... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n17 Feb, 2021"
},
{
"code": null,
"e": 357,
"s": 52,
"text": "What is UML? It is the general-purpose modeling language used to visualize the system. It is a graphical language that is standard to the software industry for specifying, vi... |
Node.js Buffer.readInt32BE() Method | 13 Oct, 2021
The Buffer.readInt32BE() method is used to read 32 bit integer from a buffer object at a given offset and returns the result in Big endian.
Syntax:
buffer.readInt32BE( offset )
Parameters: This method accepts a single parameter offset which specifies the position of buffer object. It represents the number ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n13 Oct, 2021"
},
{
"code": null,
"e": 168,
"s": 28,
"text": "The Buffer.readInt32BE() method is used to read 32 bit integer from a buffer object at a given offset and returns the result in Big endian."
},
{
"code": null,
"e"... |
Database Operations in HIVE Using CLOUDERA – VMWARE Work Station | 17 Jan, 2021
We are going to create a database and create a table in our database. And will cover Database operations in HIVE Using CLOUDERA – VMWARE Work Station. Let’s discuss one by one.
Introduction:
Hive is an ETL tool that provides an SQL-like interface between the user and the Hadoop distributed file system whic... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n17 Jan, 2021"
},
{
"code": null,
"e": 205,
"s": 28,
"text": "We are going to create a database and create a table in our database. And will cover Database operations in HIVE Using CLOUDERA – VMWARE Work Station. Let’s discuss one by one... |
Extracting email addresses using regular expressions in Python | 29 Dec, 2020
Let suppose a situation in which you have to read some specific data like phone numbers, email addresses, dates, a collection of words etc. How can you do this in a very efficient manner?The Best way to do this by Regular Expression.
Let take an example in which we have to find out only email from the give... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n29 Dec, 2020"
},
{
"code": null,
"e": 286,
"s": 52,
"text": "Let suppose a situation in which you have to read some specific data like phone numbers, email addresses, dates, a collection of words etc. How can you do this in a very effi... |
Line Plot using ggplot2 in R | 06 Jun, 2021
In a line graph, we have the horizontal axis value through which the line will be ordered and connected using the vertical axis values. We are going to use the R package ggplot2 which has several layers in it.
First, you need to install the ggplot2 package if it is not previously installed in R Studio.
g... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n06 Jun, 2021"
},
{
"code": null,
"e": 265,
"s": 54,
"text": "In a line graph, we have the horizontal axis value through which the line will be ordered and connected using the vertical axis values. We are going to use the R package ggpl... |
Program to check if a given number is Lucky (all digits are different) | 08 Jun, 2022
A number is lucky if all digits of the number are different. How to check if a given number is lucky or not.Examples:
Input: n = 983
Output: true
All digits are different
Input: n = 9838
Output: false
8 appears twice
We strongly recommend you to minimize your browser and try this yourself first.The idea... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n08 Jun, 2022"
},
{
"code": null,
"e": 173,
"s": 53,
"text": "A number is lucky if all digits of the number are different. How to check if a given number is lucky or not.Examples: "
},
{
"code": null,
"e": 273,
"s": 173... |
Python | Sort alternate numeric and alphabet list | 11 May, 2020
Sometimes, while performing sorting in list, we have a problem in which we need to perform particular type of sorting in which we need to sort in alternate ways in which we have numerics and alphabets sorted in order. Lets discuss certain ways in which this task can be performed.
Method #1 : Using isalpha(... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n11 May, 2020"
},
{
"code": null,
"e": 309,
"s": 28,
"text": "Sometimes, while performing sorting in list, we have a problem in which we need to perform particular type of sorting in which we need to sort in alternate ways in which we ha... |
Scrape content from dynamic websites | 05 Sep, 2020
To scrape content from a static page, we use BeautifulSoup as our package for scraping, and it works flawlessly for static pages. We use requests to load page into our python script. Now, if the page we are trying to load is dynamic in nature and we request this page by requests library, it would send the ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n05 Sep, 2020"
},
{
"code": null,
"e": 476,
"s": 52,
"text": "To scrape content from a static page, we use BeautifulSoup as our package for scraping, and it works flawlessly for static pages. We use requests to load page into our python... |
Introduction to MS-Excel | 01 Jun, 2021
MS-EXCEL is a part of Microsoft Office suite software. It is an electronic spreadsheet with numerous rows and columns, used for organizing data, graphically represent data(s), and performing different calculations. It consists of 1048576 rows and 16383 columns, a row and column together make a cell. Each ... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n01 Jun, 2021"
},
{
"code": null,
"e": 479,
"s": 53,
"text": "MS-EXCEL is a part of Microsoft Office suite software. It is an electronic spreadsheet with numerous rows and columns, used for organizing data, graphically represent data(s)... |
PYGLET – Sprite Position | 19 Sep, 2021
In this article we will see how we can access position of the sprite in PYGLET module in python. Pyglet is easy to use but powerful library for developing visually rich GUI applications like games, multimedia etc. A window is a “heavyweight” object occupying operating system resources. Windows may appear a... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n19 Sep, 2021"
},
{
"code": null,
"e": 890,
"s": 28,
"text": "In this article we will see how we can access position of the sprite in PYGLET module in python. Pyglet is easy to use but powerful library for developing visually rich GUI ap... |
Operators in Julia | 09 Mar, 2020
Operators in Julia are the mathematical symbols that are used to perform operations on variables and values. These symbols are used to carry out arithmetic and logical computations. Variables on which the operators perform operations are termed as Operands. In other words, we can say that an operator opera... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n09 Mar, 2020"
},
{
"code": null,
"e": 395,
"s": 28,
"text": "Operators in Julia are the mathematical symbols that are used to perform operations on variables and values. These symbols are used to carry out arithmetic and logical computa... |
SAS | Date Formats and Informats | 30 Jul, 2019
Informats is used to tell SAS how to read a variable whereas Formats is used to tell SAS how to display or write values of a variable.
Informats is basically used when you read in sample data which is being created using CARDS/DATALINES statement or read or import data from either an external file (Text/Ex... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n30 Jul, 2019"
},
{
"code": null,
"e": 163,
"s": 28,
"text": "Informats is used to tell SAS how to read a variable whereas Formats is used to tell SAS how to display or write values of a variable."
},
{
"code": null,
"e": 345... |
Python – Remove Dictionary Key Words | 10 May, 2020
Sometimes, while working with Python strings, we can have a problem in which we need to remove all the words from a string which are a part of key of dictionary. This problem can have application in domains such as web development and day-day programming. Let’s discuss certain ways in which this task can b... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n10 May, 2020"
},
{
"code": null,
"e": 348,
"s": 28,
"text": "Sometimes, while working with Python strings, we can have a problem in which we need to remove all the words from a string which are a part of key of dictionary. This problem ... |
Sum of XOR of all pairs in an array | Difficulty Level :
Medium
Given an array of n integers, find the sum of xor of all pairs of numbers in the array.
Examples :
Input : arr[] = {7, 3, 5}
Output : 12
7 ^ 3 = 4
3 ^ 5 = 6
7 ^ 5 = 2
Sum = 4 + 6 + 2
= 12
Input : arr[] = {5, 9, 7, 6}
Output : 47
5 ^ 9 = 12
9 ^ 7 = 14
7 ^ 6 = 1
5 ^ 7 = 2
5 ^ 6 = 3
9 ^ 6 =... | [
{
"code": null,
"e": 26,
"s": 0,
"text": "Difficulty Level :\nMedium"
},
{
"code": null,
"e": 114,
"s": 26,
"text": "Given an array of n integers, find the sum of xor of all pairs of numbers in the array."
},
{
"code": null,
"e": 125,
"s": 114,
"text": "Exampl... |
Global keyword in Python program | Sometimes we declare a variable but we may need to modify or access the values outside the current scope of its declaration which may be anywhere in the current program. In such scenario, we use the Global keyword with the variable name inside the function where the variable is declared. If the variable is not inside a... | [
{
"code": null,
"e": 1560,
"s": 1187,
"text": "Sometimes we declare a variable but we may need to modify or access the values outside the current scope of its declaration which may be anywhere in the current program. In such scenario, we use the Global keyword with the variable name inside the funct... |
Topic Model Visualization using pyLDAvis | by Himanshu Sharma | Towards Data Science | Creating Interactive Topic Model Visualizations
Topic Modelling is a part of Machine Learning where the automated model analyzes the text data and creates the clusters of the words from that dataset or a combination of documents. It works on finding out the topics in the text and find out the hidden patterns between wo... | [
{
"code": null,
"e": 219,
"s": 171,
"text": "Creating Interactive Topic Model Visualizations"
},
{
"code": null,
"e": 520,
"s": 219,
"text": "Topic Modelling is a part of Machine Learning where the automated model analyzes the text data and creates the clusters of the words from ... |
How do I execute a string containing Python code in Python? | If you want to execute Python statements, you can use exec(string). For example,
>>> my_code = 'print "Hello World!"'
>>> exec(my_code)
Hello World!
But if you just want to evaluate the value of an expression, you can use eval(). For example,
>>> my_expression = "5 + 3"
>>> eval(my_expression)
8
Note: Be very cautious... | [
{
"code": null,
"e": 1143,
"s": 1062,
"text": "If you want to execute Python statements, you can use exec(string). For example,"
},
{
"code": null,
"e": 1211,
"s": 1143,
"text": ">>> my_code = 'print \"Hello World!\"'\n>>> exec(my_code)\nHello World!"
},
{
"code": null,
... |
JSF - f:validateRegex | f:validateRegex tag is used to validate a string value to a required format.
<f:validateRegex pattern = "((?=.*[a-z]).{6,})" />
pattern
Formatting pattern
Let us create a test JSF application to test the above tag.
package com.tutorialspoint.test;
import java.io.Serializable;
import javax.faces.bean.ManagedBean;
imp... | [
{
"code": null,
"e": 2029,
"s": 1952,
"text": "f:validateRegex tag is used to validate a string value to a required format."
},
{
"code": null,
"e": 2081,
"s": 2029,
"text": "<f:validateRegex pattern = \"((?=.*[a-z]).{6,})\" />\n"
},
{
"code": null,
"e": 2089,
"s"... |
The Complete Guide to Neural Network multi-class Classification from scratch | by Shaun Enslin | Towards Data Science | Neural networks reflect the behavior of the human brain. They allow programs to recognise patterns and solve common problems in machine learning. This is another option to either perform classification instead of logistics regression. At Rapidtrade, we use neural networks to classify data and run regression scenarios. ... | [
{
"code": null,
"e": 549,
"s": 172,
"text": "Neural networks reflect the behavior of the human brain. They allow programs to recognise patterns and solve common problems in machine learning. This is another option to either perform classification instead of logistics regression. At Rapidtrade, we us... |
CLAHE and Thresholding in Python. Contrast Limited Adaptive Histogram... | by Ravindu Senaratne | Towards Data Science | In this article, let’s talk about histogram equalization and image thresholding. Histogram equalization is one of the tools we have for image pre-processing and it makes image thresholding or segmentation tasks easier.
The reason we need histogram equalization is that when we collect images that are washed out or image... | [
{
"code": null,
"e": 390,
"s": 171,
"text": "In this article, let’s talk about histogram equalization and image thresholding. Histogram equalization is one of the tools we have for image pre-processing and it makes image thresholding or segmentation tasks easier."
},
{
"code": null,
"e":... |
Logistic Regression in Python— A Helpful Guide to How It Works | by Saul Dobilas | Towards Data Science | Just so you know what you are getting into, this is a long article that contains a visual and a mathematical explanation of logistic regression with 4 different Python examples. Please take a look at the list of topics below and feel free to jump to the sections that you are most interested in.
Machine Learning is maki... | [
{
"code": null,
"e": 467,
"s": 171,
"text": "Just so you know what you are getting into, this is a long article that contains a visual and a mathematical explanation of logistic regression with 4 different Python examples. Please take a look at the list of topics below and feel free to jump to the s... |
CSS - Fade In UP Big Effect | The image come or cause to come gradually into or out of view, or to merge into another shot.
@keyframes fadeInUpBig {
0% {
opacity: 0;
transform: translateY(2000px);
}
100% {
opacity: 1;
transform: translateY(0);
}
}
Transform − Transform applies to 2d and 3d transformation to an e... | [
{
"code": null,
"e": 2720,
"s": 2626,
"text": "The image come or cause to come gradually into or out of view, or to merge into another shot."
},
{
"code": null,
"e": 2881,
"s": 2720,
"text": "@keyframes fadeInUpBig {\n 0% {\n opacity: 0;\n transform: translateY(2000px... |
IFNULL in MySQL - GeeksforGeeks | 03 Mar, 2018
Given a TABLE, in this TABLE, it prints entry of the table. If table is empty then it gives NULL.
Examples:
QUESTION : Given an employee table, print name from the given table which id equals to 2.Output : Geek2
QUESTION : Given same Employee table, print name from the given table which id equals to 5.Outp... | [
{
"code": null,
"e": 23701,
"s": 23673,
"text": "\n03 Mar, 2018"
},
{
"code": null,
"e": 23799,
"s": 23701,
"text": "Given a TABLE, in this TABLE, it prints entry of the table. If table is empty then it gives NULL."
},
{
"code": null,
"e": 23809,
"s": 23799,
"... |
C++ Program for Best Fit algorithm in Memory Management | Given two arrays containing block size and process size; the task is to print the results according to Best Fit algorithm in memory management.
What is Best Fit Algorithm?
Best Fit is a memory management algorithm; it deals with allocating smallest free partition which meets the requirement of the requesting process. I... | [
{
"code": null,
"e": 1206,
"s": 1062,
"text": "Given two arrays containing block size and process size; the task is to print the results according to Best Fit algorithm in memory management."
},
{
"code": null,
"e": 1234,
"s": 1206,
"text": "What is Best Fit Algorithm?"
},
{
... |
C library function - atan() | The C library function double atan(double x) returns the arc tangent of x in radians.
Following is the declaration for atan() function.
double atan(double x)
x − This is the floating point value.
x − This is the floating point value.
This function returns the principal arc tangent of x, in the interval [-pi/2,+pi/2] ra... | [
{
"code": null,
"e": 2093,
"s": 2007,
"text": "The C library function double atan(double x) returns the arc tangent of x in radians."
},
{
"code": null,
"e": 2143,
"s": 2093,
"text": "Following is the declaration for atan() function."
},
{
"code": null,
"e": 2165,
... |
Calculate determinant of a Matrix using Pivotal Condensation Method - GeeksforGeeks | 17 Aug, 2021
Given a square matrix mat[][] of dimension N, the task is to find the determinant of the matrix using the pivot condensation method.
Examples:
Input: mat[][] = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}}Output: 0Explanation:Performing R3 = R3 – R2 modifies the matrix mat[][] to {{1, 2, 3}, {4, 5, 6}, {1, 1, 1}}.Perf... | [
{
"code": null,
"e": 24301,
"s": 24273,
"text": "\n17 Aug, 2021"
},
{
"code": null,
"e": 24434,
"s": 24301,
"text": "Given a square matrix mat[][] of dimension N, the task is to find the determinant of the matrix using the pivot condensation method."
},
{
"code": null,
... |
File Upload in ElectronJS - GeeksforGeeks | 15 May, 2020
ElectronJS is an Open Source Framework used for building Cross-Platform native desktop applications using web technologies such as HTML, CSS, and JavaScript which are capable of running on Windows, macOS, and Linux operating systems. It combines the Chromium engine and NodeJS into a Single Runtime.
Any nat... | [
{
"code": null,
"e": 23931,
"s": 23903,
"text": "\n15 May, 2020"
},
{
"code": null,
"e": 24231,
"s": 23931,
"text": "ElectronJS is an Open Source Framework used for building Cross-Platform native desktop applications using web technologies such as HTML, CSS, and JavaScript which ... |
Transfer Learning with Fruit Classification | by James Nelson | Towards Data Science | For those of you who don’t know what deep learning is, its a genre within machine learning that falls under the category of Artificial Intelligence. This type of technology isn’t I,Robot artificial intelligence and we as a species are pretty far away from actually developing something like that. However, deep learning ... | [
{
"code": null,
"e": 629,
"s": 171,
"text": "For those of you who don’t know what deep learning is, its a genre within machine learning that falls under the category of Artificial Intelligence. This type of technology isn’t I,Robot artificial intelligence and we as a species are pretty far away from... |
How to bind multiple events with one "bind" in Tkinter? | For a particular application, if we want to perform multiple tasks with the help of buttons defined in it, then we can use the bind(Button, callback) method which binds the button and the event together to schedule the running of the event in the application.
Let us suppose we want to bind multiple events or callback w... | [
{
"code": null,
"e": 1322,
"s": 1062,
"text": "For a particular application, if we want to perform multiple tasks with the help of buttons defined in it, then we can use the bind(Button, callback) method which binds the button and the event together to schedule the running of the event in the applic... |
Creating a Custom Classifier for Text Cleaning | by Rodrigo Nader | Towards Data Science | Recently I've been studying NLP more than other data science fields, and one challenge that I face more often than not is the cleaning part of the process. Building NLP models require many pre-processing steps, and if the data is not properly treated, it could result in poor models, which is necessarily what we want to... | [
{
"code": null,
"e": 499,
"s": 171,
"text": "Recently I've been studying NLP more than other data science fields, and one challenge that I face more often than not is the cleaning part of the process. Building NLP models require many pre-processing steps, and if the data is not properly treated, it ... |
How to Setup Sublime Text 3 for Java in Windows? - GeeksforGeeks | 02 Jul, 2020
Java is one of the most popular and widely-used object-oriented programming languages. Java syntax is similar to C/C++. But Java does not provide low-level programming functionalities like pointers. Also, Java codes are always written in the form of classes and objects. The Java codes are first compiled in... | [
{
"code": null,
"e": 24648,
"s": 24620,
"text": "\n02 Jul, 2020"
},
{
"code": null,
"e": 25095,
"s": 24648,
"text": "Java is one of the most popular and widely-used object-oriented programming languages. Java syntax is similar to C/C++. But Java does not provide low-level program... |
How to create a radio button similar to toggle button using Bootstrap ? - GeeksforGeeks | 11 Jun, 2020
Toggle Buttons: The buttons that can change from one state to another, i.e. which can be toggled from on state to off state or vice-versa are called toggle buttons. For example:
A particular switch in our house can either be on or off. This is a very good example of a real life toggle switch.
The WiFi or... | [
{
"code": null,
"e": 24838,
"s": 24810,
"text": "\n11 Jun, 2020"
},
{
"code": null,
"e": 25017,
"s": 24838,
"text": "Toggle Buttons: The buttons that can change from one state to another, i.e. which can be toggled from on state to off state or vice-versa are called toggle buttons... |
Intro to Applied Topological Data Analysis | by Ryan Duve | Towards Data Science | Topological data analysis, or TDA, is a set of approaches providing additional insight into datasets. It augments other forms of analysis, like statistical and geometric approaches, and is useful to any data scientist that wants a more complete understanding of their data.
This article paints a picture of the utility o... | [
{
"code": null,
"e": 446,
"s": 172,
"text": "Topological data analysis, or TDA, is a set of approaches providing additional insight into datasets. It augments other forms of analysis, like statistical and geometric approaches, and is useful to any data scientist that wants a more complete understand... |
Simplified Fractions in C++ | Suppose we have an integer n, we have to find a list of all simplified fractions between 0 and 1 (exclusive) such that the denominator <= n. Here the fractions can be in any order.
So, if the input is like n = 4, then the output will be ["1/2","1/3","1/4","2/3","3/4"] as "2/4" is not a simplified fraction because it ca... | [
{
"code": null,
"e": 1243,
"s": 1062,
"text": "Suppose we have an integer n, we have to find a list of all simplified fractions between 0 and 1 (exclusive) such that the denominator <= n. Here the fractions can be in any order."
},
{
"code": null,
"e": 1408,
"s": 1243,
"text": "S... |
Insert Interval in C++ | Suppose we have a set of non-overlapping intervals; we have to insert a new interval into the intervals. We can merge if necessary. So if the input is like − [[1,4],[6,9]], and new interval is [2,5], then the output will be [[1,5],[6,9]].
To solve this, we will follow these steps −
Insert new interval at the end of the... | [
{
"code": null,
"e": 1301,
"s": 1062,
"text": "Suppose we have a set of non-overlapping intervals; we have to insert a new interval into the intervals. We can merge if necessary. So if the input is like − [[1,4],[6,9]], and new interval is [2,5], then the output will be [[1,5],[6,9]]."
},
{
... |
Scale deep learning with 2 new libraries for distributed training on Amazon SageMaker | by Emily Webber | Towards Data Science | By Olivier Cruchant, Emily Webber, and the AWS team
The clouds of Hawaii. Beautiful reminders of peace, serenity, and potentially experiences awaiting us as we exit the global pandemic of 2020 and move back into a world allowing global travel. But until then, why not spend some time learning about how Amazon SageMaker’... | [
{
"code": null,
"e": 223,
"s": 171,
"text": "By Olivier Cruchant, Emily Webber, and the AWS team"
},
{
"code": null,
"e": 2426,
"s": 223,
"text": "The clouds of Hawaii. Beautiful reminders of peace, serenity, and potentially experiences awaiting us as we exit the global pandemic ... |
How to create your own Docker Customised Image ? - GeeksforGeeks | 01 Jul, 2021
Docker is an open-source container management service and one of the most popular tools of DevOps which is being popular among the deployment team. Docker is mostly used in Agile-based projects which require continuous delivery of the software. The founder, Chief Technical Officer, and Chief Architect Offi... | [
{
"code": null,
"e": 24978,
"s": 24950,
"text": "\n01 Jul, 2021"
},
{
"code": null,
"e": 25545,
"s": 24978,
"text": "Docker is an open-source container management service and one of the most popular tools of DevOps which is being popular among the deployment team. Docker is mostl... |
Java Examples - Comparing performance | How to compare performance of string creation ?
Following example compares the performance of two strings created in two different ways.
public class StringComparePerformance {
public static void main(String[] args) {
long startTime = System.currentTimeMillis();
for(int i = 0; i < 50000; i++... | [
{
"code": null,
"e": 2116,
"s": 2068,
"text": "How to compare performance of string creation ?"
},
{
"code": null,
"e": 2205,
"s": 2116,
"text": "Following example compares the performance of two strings created in two different ways."
},
{
"code": null,
"e": 3050,
... |
How to create a database on command line in MySQL? | First, you need to open the command prompt. You can open using shortcut windows+R key.
The screenshot is as follows −
Now type CMD and press OK button −
Now the following command prompt would be visible −
Now reach the MySQL bin directory. The screenshot is as follows −
Following is the query to run MySQL in the comman... | [
{
"code": null,
"e": 1149,
"s": 1062,
"text": "First, you need to open the command prompt. You can open using shortcut windows+R key."
},
{
"code": null,
"e": 1180,
"s": 1149,
"text": "The screenshot is as follows −"
},
{
"code": null,
"e": 1215,
"s": 1180,
"t... |
How to shuffle a std::vector in C++ | A vector shuffle can be done in the Fisher-Yates shuffle algorithm.
In this algorithm, a linear scan of a vector is done and then swap each element with a random element among all the remaining element, including the element itself.
Begin
Declare a function show().
Pass a constructor of a vector as a parameter ... | [
{
"code": null,
"e": 1130,
"s": 1062,
"text": "A vector shuffle can be done in the Fisher-Yates shuffle algorithm."
},
{
"code": null,
"e": 1295,
"s": 1130,
"text": "In this algorithm, a linear scan of a vector is done and then swap each element with a random element among all th... |
Symfony - Ajax Control | AJAX is a modern technology in web programming. It provides options to send and receive data in a webpage asynchronously, without refreshing the page. Let us learn Symfony AJAX programming in this chapter.
Symfony framework provides options to identity whether the request type is AJAX or not. Request class of Symfony H... | [
{
"code": null,
"e": 2409,
"s": 2203,
"text": "AJAX is a modern technology in web programming. It provides options to send and receive data in a webpage asynchronously, without refreshing the page. Let us learn Symfony AJAX programming in this chapter."
},
{
"code": null,
"e": 2712,
... |
Tryit Editor v3.7 | Tryit: Center align the content in td | [] |
frozenset() in Python | This function helps in converting a mutable list to an immutable one. This is needed when we have declared a list whose items are changeable but after certain steps we want to stop allowing the elements in it to change. In such scenario, we apply the frozenset() function as shown below.
Syntax: frozenset(iterable_objec... | [
{
"code": null,
"e": 1350,
"s": 1062,
"text": "This function helps in converting a mutable list to an immutable one. This is needed when we have declared a list whose items are changeable but after certain steps we want to stop allowing the elements in it to change. In such scenario, we apply the fr... |
Can we override private methods in Java? - GeeksforGeeks | 06 Aug, 2021
Let us first consider the following Java program as a simple example of Overriding or Runtime Polymorphism.
Java
class Base { public void fun() { System.out.println("Base fun"); }} class Derived extends Base { public void fun() { // overrides the Base's fun() System.out.println("Derived f... | [
{
"code": null,
"e": 23788,
"s": 23760,
"text": "\n06 Aug, 2021"
},
{
"code": null,
"e": 23896,
"s": 23788,
"text": "Let us first consider the following Java program as a simple example of Overriding or Runtime Polymorphism."
},
{
"code": null,
"e": 23901,
"s": 23... |
LinkedList AddBefore method in C# | Add a node before a given node in C# using the AddBefore() method.
Our LinkedList with string nodes.
string [] students = {"Henry","David","Tom"};
LinkedList<string> list = new LinkedList<string>(students);
Now, let’s add node at the end.
// adding a node at the end
var newNode = list.AddLast("Brad");
Use AddBefore() m... | [
{
"code": null,
"e": 1129,
"s": 1062,
"text": "Add a node before a given node in C# using the AddBefore() method."
},
{
"code": null,
"e": 1163,
"s": 1129,
"text": "Our LinkedList with string nodes."
},
{
"code": null,
"e": 1269,
"s": 1163,
"text": "string [] ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.