title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Longest Non-palindromic substring - GeeksforGeeks
23 Mar, 2021 Given a string of size n. The task is to find the length of the largest substring which is not palindrome.Examples: Input : abba Output : 3 Here maximum length non-palindromic substring is 'abb' which is of length '3'. There could be other non-palindromic sub-strings also of length three like 'bba' in ...
[ { "code": null, "e": 24852, "s": 24824, "text": "\n23 Mar, 2021" }, { "code": null, "e": 24970, "s": 24852, "text": "Given a string of size n. The task is to find the length of the largest substring which is not palindrome.Examples: " }, { "code": null, "e": 25192, ...
CSS Text Effects
In this chapter you will learn about the following properties: text-overflow word-wrap word-break writing-mode The CSS text-overflow property specifies how overflowed content that is not displayed should be signaled to the user. It can be clipped: This is some long text that will not fit in the box or it can be render...
[ { "code": null, "e": 63, "s": 0, "text": "In this chapter you will learn about the following properties:" }, { "code": null, "e": 77, "s": 63, "text": "text-overflow" }, { "code": null, "e": 87, "s": 77, "text": "word-wrap" }, { "code": null, "e": ...
JavaScript - Array sort() Method
Javascript array sort() method sorts the elements of an array. Its syntax is as follows − array.sort( compareFunction ); compareFunction − Specifies a function that defines the sort order. If omitted, the array is sorted lexicographically. Returns a sorted array. Try the following example. <html> <head> <tit...
[ { "code": null, "e": 2529, "s": 2466, "text": "Javascript array sort() method sorts the elements of an array." }, { "code": null, "e": 2556, "s": 2529, "text": "Its syntax is as follows −" }, { "code": null, "e": 2588, "s": 2556, "text": "array.sort( compareFu...
Find the area between two curves plotted in Matplotlib
To find the area between two curves plot in matplotlib, we can take the following steps Set the figure size and adjust the padding between and around the subplots. Create x, c1 and c2 data points using numpy. Plot (x, c1) and (x, c2) using plot() methods. Fill the area between the two curves, c1 and c2, with grey color...
[ { "code": null, "e": 1150, "s": 1062, "text": "To find the area between two curves plot in matplotlib, we can take the following steps" }, { "code": null, "e": 1226, "s": 1150, "text": "Set the figure size and adjust the padding between and around the subplots." }, { "cod...
Count repeated values in R - GeeksforGeeks
30 May, 2021 In this article, we will learn how we can count the repeated values in R programming language. We will be using the table() function along with which() and length() functions to get the count of repeated values. The table() function in R Language is used to create a categorical representation of data with...
[ { "code": null, "e": 25242, "s": 25214, "text": "\n30 May, 2021" }, { "code": null, "e": 25338, "s": 25242, "text": "In this article, we will learn how we can count the repeated values in R programming language. " }, { "code": null, "e": 25610, "s": 25338, "te...
numpy.gcd() in Python - GeeksforGeeks
29 Nov, 2018 numpy.gcd(arr1, arr2, out = None, where = True, casting = ‘same_kind’, order = ‘K’, dtype = None) : This mathematical function helps user to calculate GCD value of |arr1| and |arr2| elements. Greatest Common Divisor (GCD) of two or more numbers, which are not all zero, is the largest positive number that d...
[ { "code": null, "e": 24292, "s": 24264, "text": "\n29 Nov, 2018" }, { "code": null, "e": 24484, "s": 24292, "text": "numpy.gcd(arr1, arr2, out = None, where = True, casting = ‘same_kind’, order = ‘K’, dtype = None) : This mathematical function helps user to calculate GCD value of...
Alphanumeric Abbreviations of a String - GeeksforGeeks
26 Apr, 2022 Given a string of characters of length less than 10. We need to print all the alpha-numeric abbreviation of the string. The alpha-numeric abbreviation is in the form of characters mixed with the digits which is equal to the number of skipped characters of a selected substring. So, whenever a substring of c...
[ { "code": null, "e": 25296, "s": 25268, "text": "\n26 Apr, 2022" }, { "code": null, "e": 25922, "s": 25296, "text": "Given a string of characters of length less than 10. We need to print all the alpha-numeric abbreviation of the string. The alpha-numeric abbreviation is in the fo...
How to pass an arrayList to another activity using intents in Android Kotlin?
This example demonstrates how to pass an arrayList to another activity using intents in Android 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. Step 2 − Add the following code to res/layout/activity_main.xml. <?xml version="1.0" en...
[ { "code": null, "e": 1166, "s": 1062, "text": "This example demonstrates how to pass an arrayList to another activity using intents in Android Kotlin." }, { "code": null, "e": 1295, "s": 1166, "text": "Step 1 − Create a new project in Android Studio, go to File ? New Project and ...
Python property() function - GeeksforGeeks
23 Sep, 2021 Python property() function returns the object of the property class and it is used to create property of a class. Syntax: property(fget, fset, fdel, doc) Parameters: fget() – used to get the value of attribute fset() – used to set the value of attribute fdel() – used to delete the attribute value doc() –...
[ { "code": null, "e": 24152, "s": 24124, "text": "\n23 Sep, 2021" }, { "code": null, "e": 24267, "s": 24152, "text": "Python property() function returns the object of the property class and it is used to create property of a class. " }, { "code": null, "e": 24307, ...
AngularJS | ng-if Directive - GeeksforGeeks
30 Mar, 2021 The ng-if Directive in AngularJS is used to remove or recreate a portion of HTML element based on an expression. The ng-if is different from ng-hide because it completely removes the element in the DOM rather than just hiding the display of the element. If the expression inside it is false then the element...
[ { "code": null, "e": 24251, "s": 24223, "text": "\n30 Mar, 2021" }, { "code": null, "e": 24635, "s": 24251, "text": "The ng-if Directive in AngularJS is used to remove or recreate a portion of HTML element based on an expression. The ng-if is different from ng-hide because it com...
Check if an Array is a permutation of numbers from 1 to N - GeeksforGeeks
08 Mar, 2022 Given an array arr containing N positive integers, the task is to check if the given array arr represents a permutation or not. A sequence of N integers is called a permutation if it contains all integers from 1 to N exactly once. Examples: Input: arr[] = {1, 2, 5, 3, 2} Output: No Explanation: The giv...
[ { "code": null, "e": 25236, "s": 25208, "text": "\n08 Mar, 2022" }, { "code": null, "e": 25366, "s": 25236, "text": "Given an array arr containing N positive integers, the task is to check if the given array arr represents a permutation or not. " }, { "code": null, "...
Spring MVC - Listbox Example
The following example shows how to use Listbox in forms using the Spring Web MVC framework. To begin with, let us have a working Eclipse IDE in place and follow the subsequent steps to develop a Dynamic Form based Web Application using the Spring Web Framework. package com.tutorialspoint; public class User { priv...
[ { "code": null, "e": 3053, "s": 2791, "text": "The following example shows how to use Listbox in forms using the Spring Web MVC framework. To begin with, let us have a working Eclipse IDE in place and follow the subsequent steps to develop a Dynamic Form based Web Application using the Spring Web Fr...
Tryit Editor v3.7
Tryit: HTML link target
[]
VSAM - Quick Guide
Virtual Storage Access Method (VSAM) is high performance access method and data set organization, which organizes and maintains data via a catalog structure. It utilizes virtual storage concept and can protect datasets at various levels by giving passwords. VSAM can be used in COBOL programs like physical sequential fi...
[ { "code": null, "e": 2324, "s": 1765, "text": "Virtual Storage Access Method (VSAM) is high performance access method and data set organization, which organizes and maintains data via a catalog structure. It utilizes virtual storage concept and can protect datasets at various levels by giving passwo...
SQL - NOT NULL Constraint
By default, a column can hold NULL values. If you do not want a column to have a NULL value, then you need to define such a constraint on this column specifying that NULL is now not allowed for that column. A NULL is not the same as no data, rather, it represents unknown data. For example, the following SQL query creat...
[ { "code": null, "e": 2660, "s": 2453, "text": "By default, a column can hold NULL values. If you do not want a column to have a NULL value, then you need to define such a constraint on this column specifying that NULL is now not allowed for that column." }, { "code": null, "e": 2731, ...
Python File next() Method
Python file method next() is used when a file is used as an iterator, typically in a loop, the next() method is called repeatedly. This method returns the next input line, or raises StopIteration when EOF is hit. Combining next() method with other file methods like readline() does not work right. However, usingseek() t...
[ { "code": null, "e": 2457, "s": 2244, "text": "Python file method next() is used when a file is used as an iterator, typically in a loop, the next() method is called repeatedly. This method returns the next input line, or raises StopIteration when EOF is hit." }, { "code": null, "e": 264...
Program for Point of Intersection of Two Lines - GeeksforGeeks
15 Jan, 2019 Given points A and B corresponding to line AB and points P and Q corresponding to line PQ, find the point of intersection of these lines. The points are given in 2D Plane with their X and Y Coordinates. Examples: Input : A = (1, 1), B = (4, 4) C = (1, 8), D = (2, 4) Output : The intersection of the...
[ { "code": null, "e": 24862, "s": 24834, "text": "\n15 Jan, 2019" }, { "code": null, "e": 25065, "s": 24862, "text": "Given points A and B corresponding to line AB and points P and Q corresponding to line PQ, find the point of intersection of these lines. The points are given in 2...
Using Folium to Generate Choropleth Map with Customised Tooltips (Python) | by Carrie Lo | Towards Data Science | Towards Data Science
Folium is a very good package in visualising data on interactive maps. In this demonstration, Hong Kong voter statistics and population data are used. Data were pre-processed and stored in Consolidated Data.xlsx. Feel free to play around with the dataset =) You can directly clone the files from my Github repo. Folium f...
[ { "code": null, "e": 429, "s": 171, "text": "Folium is a very good package in visualising data on interactive maps. In this demonstration, Hong Kong voter statistics and population data are used. Data were pre-processed and stored in Consolidated Data.xlsx. Feel free to play around with the dataset ...
Batch-Resizing Images in Python with Pillow | by Joe T. Santhanavanich | Towards Data Science
Sometimes you need to edit a ton of images for your project. For example, in web development, the bulk image resizing is done to make all images smaller and lighter to optimize transfer speed through the web. In Data Science, you might need to increase DPI of all your images for publishing in a scientific article. Mana...
[ { "code": null, "e": 641, "s": 171, "text": "Sometimes you need to edit a ton of images for your project. For example, in web development, the bulk image resizing is done to make all images smaller and lighter to optimize transfer speed through the web. In Data Science, you might need to increase DP...
How to find the variance of row elements of a matrix in R?
Finding the variance of columns is a common task in data analysis but often data is provided in wide format instead of long format, therefore, the cases are represented vertically and the variables are aligned horizontally and this data could be available in matrix or any other form. Therefore, the variance can be easi...
[ { "code": null, "e": 1416, "s": 1062, "text": "Finding the variance of columns is a common task in data analysis but often data is provided in wide format instead of long format, therefore, the cases are represented vertically and the variables are aligned horizontally and this data could be availab...
Build A Simple Chatbot In Python With Deep Learning | by Kurtis Pykes | Towards Data Science
Artificial Intelligence is rapidly creeping into the workflow of many businesses across various industries and functions. Due to advancements in Natural Language Processing (NLP), Natural Language Understanding (NLU), and Machine Learning (ML), humans are now able to develop technologies that are capable of imitating h...
[ { "code": null, "e": 566, "s": 172, "text": "Artificial Intelligence is rapidly creeping into the workflow of many businesses across various industries and functions. Due to advancements in Natural Language Processing (NLP), Natural Language Understanding (NLU), and Machine Learning (ML), humans are...
Enum in C
Enumeration is a user defined datatype in C language. It is used to assign names to the integral constants which makes a program easy to read and maintain. The keyword “enum” is used to declare an enumeration. Here is the syntax of enum in C language, enum enum_name{const1, const2, ....... }; The enum keyword is also u...
[ { "code": null, "e": 1272, "s": 1062, "text": "Enumeration is a user defined datatype in C language. It is used to assign names to the integral constants which makes a program easy to read and maintain. The keyword “enum” is used to declare an enumeration." }, { "code": null, "e": 1314, ...
D3.js ticks() Function - GeeksforGeeks
19 Jul, 2020 The ticks() function in D3.js is used to form an array of between a given range of start and stop both inclusive such that each element is uniformly and equally spaced. Syntax: d3.ticks(start,stop,count); Parameters: This function accepts three parameters as mentioned above and described below: start: It...
[ { "code": null, "e": 24480, "s": 24452, "text": "\n19 Jul, 2020" }, { "code": null, "e": 24650, "s": 24480, "text": "The ticks() function in D3.js is used to form an array of between a given range of start and stop both inclusive such that each element is uniformly and equally s...
How To Use “yield” in Python?. Python Generator — from basic to... | by Christopher Tao | Towards Data Science
If you’re a Python developer, I believe that you must know the Generator in Python. The key to defining a Python generator is to use the “yield” keyword. The Python generator is ubiquitously used in scenarios when we need a large collection, improve the readability of our code and other certain scenarios such as multi-...
[ { "code": null, "e": 502, "s": 171, "text": "If you’re a Python developer, I believe that you must know the Generator in Python. The key to defining a Python generator is to use the “yield” keyword. The Python generator is ubiquitously used in scenarios when we need a large collection, improve the r...
C | Dynamic Memory Allocation | Question 3 - GeeksforGeeks
09 Feb, 2013 Output? # include<stdio.h># include<stdlib.h> void fun(int *a){ a = (int*)malloc(sizeof(int));} int main(){ int *p; fun(p); *p = 6; printf("%d\n",*p); return(0);} (A) May not work(B) Works and prints 6Answer: (A)Explanation: The program is not valid. Try replacing “int *p;” with “int ...
[ { "code": null, "e": 24564, "s": 24536, "text": "\n09 Feb, 2013" }, { "code": null, "e": 24572, "s": 24564, "text": "Output?" }, { "code": "# include<stdio.h># include<stdlib.h> void fun(int *a){ a = (int*)malloc(sizeof(int));} int main(){ int *p; fun(p); ...
How to change a TextView's style at runtime in Android using Kotlin?
This example demonstrates how to change a TextView's style at runtime in Android 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. Step 2 − Add the following code to res/layout/activity_main.xml. <?xml version="1.0" encoding="u...
[ { "code": null, "e": 1157, "s": 1062, "text": "This example demonstrates how to change a TextView's style at runtime in Android using Kotlin." }, { "code": null, "e": 1286, "s": 1157, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all ...
How to attach a click and double-click event to an element in jQuery ? - GeeksforGeeks
25 Mar, 2021 In this article, we will see how to attach a click and double-click event to an element in jQuery. To attach click and double-click events, click and dbclick events used. These events are attached with bind() method. This method is used to attach one or more event handlers for selected elements and this me...
[ { "code": null, "e": 25364, "s": 25336, "text": "\n25 Mar, 2021" }, { "code": null, "e": 25793, "s": 25364, "text": "In this article, we will see how to attach a click and double-click event to an element in jQuery. To attach click and double-click events, click and dbclick event...
Does deleting row from view delete row from base table in MySQL?
Yes, deleting row from view delete row from base table. Let us understand this by creating a new table. The query to create a table is as follows mysql> create table deleteFromBaseTableDemo -> ( -> Id int NOT NULL AUTO_INCREMENT PRIMARY KEY, -> Name varchar(20) -> ); Query OK, 0 rows affected (0.83 sec) Ins...
[ { "code": null, "e": 1208, "s": 1062, "text": "Yes, deleting row from view delete row from base table. Let us understand this by creating a new table. The query to create a table is as follows" }, { "code": null, "e": 1379, "s": 1208, "text": "mysql> create table deleteFromBaseTa...
Solving the TensorFlow Keras Model Loss Problem | by Chaim Rand | Towards Data Science
One of the main ingredients of a successful deep neural network, is the model loss function. At Mobileye, (officially known as Mobileye, an Intel Company), we spend a lot of time cultivating our loss functions, and fine-tuning them to the precise problems that we are trying to solve. While we, naturally, desire as much...
[ { "code": null, "e": 830, "s": 171, "text": "One of the main ingredients of a successful deep neural network, is the model loss function. At Mobileye, (officially known as Mobileye, an Intel Company), we spend a lot of time cultivating our loss functions, and fine-tuning them to the precise problems...
Check if a number can be expressed as x^y (x raised to power y) - GeeksforGeeks
22 Apr, 2021 Given a positive integer n, find if it can be expressed as xy where y > 1 and x > 0. x and y both are integers. Examples : Input: n = 8 Output: true 8 can be expressed as 23 Input: n = 49 Output: true 49 can be expressed as 72 Input: n = 48 Output: false 48 can't be expressed as xy The idea is simple...
[ { "code": null, "e": 25258, "s": 25230, "text": "\n22 Apr, 2021" }, { "code": null, "e": 25370, "s": 25258, "text": "Given a positive integer n, find if it can be expressed as xy where y > 1 and x > 0. x and y both are integers." }, { "code": null, "e": 25382, "s"...
How to use quotation marks in HTML?
The <q> tag is used to add short quotation marks in HTML. Just keep in mind if the quotation goes for multiple lines, use <blockquote> tag. Browsers usually insert quotation marks around the q element. You can also use the cite attribute to indicate the source of the quotation in URL form. You can try the following cod...
[ { "code": null, "e": 1264, "s": 1062, "text": "The <q> tag is used to add short quotation marks in HTML. Just keep in mind if the quotation goes for multiple lines, use <blockquote> tag. Browsers usually insert quotation marks around the q element." }, { "code": null, "e": 1353, "s":...
Vectorization Of Gradient Descent - GeeksforGeeks
24 Oct, 2020 In Machine Learning, Regression problems can be solved in the following ways: 1. Using Optimization Algorithms – Gradient Descent Batch Gradient Descent. Stochastic Gradient Descent. Mini-Batch Gradient Descent Other Advanced Optimization Algorithms like ( Conjugate Descent ... ) 2. Using the Normal Equati...
[ { "code": null, "e": 23953, "s": 23925, "text": "\n24 Oct, 2020" }, { "code": null, "e": 24031, "s": 23953, "text": "In Machine Learning, Regression problems can be solved in the following ways:" }, { "code": null, "e": 24083, "s": 24031, "text": "1. Using Opt...
Pattern Matching in Python 3.10. The Switch statement on steroids | by Alan Jones | Towards Data Science
Python 3.10 has implemented the switch statement — sort of. The switch statement in other languages such as C or Java does a simple value match on a variable and executes code depending on that value. It can be used as a simple switch statement but is capable of much more. That might be good enough for C but this is Py...
[ { "code": null, "e": 373, "s": 172, "text": "Python 3.10 has implemented the switch statement — sort of. The switch statement in other languages such as C or Java does a simple value match on a variable and executes code depending on that value." }, { "code": null, "e": 446, "s": 373...
Advanced K-Means: Controlling Groups Sizes and Selecting Features | by Frederic Marthoz | Towards Data Science
When using K-means, we can be faced with two issues: We end up with clusters of very different sizes, some containing thousands of observations and others with just a few Our dataset has too many variables and the K-Means algorithm struggles to identify an optimal set of clusters The algorithm is based on a paper by Br...
[ { "code": null, "e": 225, "s": 172, "text": "When using K-means, we can be faced with two issues:" }, { "code": null, "e": 343, "s": 225, "text": "We end up with clusters of very different sizes, some containing thousands of observations and others with just a few" }, { "...
Check if the number is balanced | Practice | GeeksforGeeks
Given an integer N which has odd number of digits, find whether the given number is a balanced or not. An odd digit number is called a balanced number if the sum of all digits to the left of the middle digit and the sum of all digits to the right of the middle digit is equal. Example 1: Input: N = 1234006 Output: 1 E...
[ { "code": null, "e": 342, "s": 238, "text": "Given an integer N which has odd number of digits, find whether the given number is a balanced or not. " }, { "code": null, "e": 516, "s": 342, "text": "An odd digit number is called a balanced number if the sum of all digits to the le...
strings.EqualFold() Function in Golang With Examples - GeeksforGeeks
10 May, 2020 strings.EqualFold() Function in Golang reports whether s and t, interpreted as UTF-8 strings, are equal under Unicode case-folding, which is a more general form of case-insensitivity. Syntax: func EqualFold(s1, s2 string) bool Here, s1 and s2 are string. Return Value: It returns the boolean value. Example...
[ { "code": null, "e": 26279, "s": 26251, "text": "\n10 May, 2020" }, { "code": null, "e": 26463, "s": 26279, "text": "strings.EqualFold() Function in Golang reports whether s and t, interpreted as UTF-8 strings, are equal under Unicode case-folding, which is a more general form of...
Element-wise concatenation of string vector in R - GeeksforGeeks
07 Apr, 2021 Element wise concatenation of two vectors means concurrently taking values from two vectors and joining or concatenating them into one. For this paste() function is used in the R programming language. Syntax: paste(vector1,vector2,....,vectorn) Where, vectors are the inputs to paste function Example 1: R #...
[ { "code": null, "e": 26597, "s": 26569, "text": "\n07 Apr, 2021" }, { "code": null, "e": 26798, "s": 26597, "text": "Element wise concatenation of two vectors means concurrently taking values from two vectors and joining or concatenating them into one. For this paste() function i...
Compare two Linked List of Strings - GeeksforGeeks
19 Apr, 2022 Given two linked lists L1 and L2 in which in every node a string is stored. The task is to check whether the strings combining all the nodes are similar or not. Examples: Input: L1 = [“He”, “llo”, “wor”, “ld”], L2 = [“H”, “e”, “ll”, “owo”, “r”, “ld”]Output: trueExplanation: both lists makes the...
[ { "code": null, "e": 26352, "s": 26324, "text": "\n19 Apr, 2022" }, { "code": null, "e": 26514, "s": 26352, "text": "Given two linked lists L1 and L2 in which in every node a string is stored. The task is to check whether the strings combining all the nodes are similar or not. " ...
Named capture groups JavaScript Regular Expressions
With JavaScript, you can group s part of regular expression. This can be done by encapsulating characters in parentheses. Following is an example − Live Demo <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Document</title>...
[ { "code": null, "e": 1184, "s": 1062, "text": "With JavaScript, you can group s part of regular expression. This can be done by\nencapsulating characters in parentheses." }, { "code": null, "e": 1210, "s": 1184, "text": "Following is an example −" }, { "code": null, "...
MongoDB query to find data from an array inside an object?
Let us first create a collection with documents − > db.findDataDemo.insertOne( { "_id": new ObjectId(), "CustomerName":"John", "CustomerDetails" : { "CountryName" : [ "AUS" ], "isMarried" : [ false ] } } ); { "acknowledged" : t...
[ { "code": null, "e": 1112, "s": 1062, "text": "Let us first create a collection with documents −" }, { "code": null, "e": 1775, "s": 1112, "text": "> db.findDataDemo.insertOne(\n {\n \"_id\": new ObjectId(),\n \"CustomerName\":\"John\",\n \"CustomerDetails\" : {\...
How many levels of pointers can we have in C/C++
18 Jan, 2022 😩😪😗 Prerequisite: Pointer in C and C++, Double Pointer (Pointer to Pointer) in CA pointer is used to point to a memory location of a variable. A pointer stores the address of a variable and the value of a variable can be accessed using dereferencing of the pointer. A pointer is generally initialized as:...
[ { "code": null, "e": 53, "s": 25, "text": "\n18 Jan, 2022" }, { "code": null, "e": 360, "s": 53, "text": "😩😪😗 Prerequisite: Pointer in C and C++, Double Pointer (Pointer to Pointer) in CA pointer is used to point to a memory location of a variable. A pointer stores the address...
C++ Passing Arrays to Functions
C++ does not allow to pass an entire array as an argument to a function. However, You can pass a pointer to an array by specifying the array's name without an index. If you want to pass a single-dimension array as an argument in a function, you would have to declare function formal parameter in one of following three w...
[ { "code": null, "e": 2484, "s": 2318, "text": "C++ does not allow to pass an entire array as an argument to a function. However, You can pass a pointer to an array by specifying the array's name without an index." }, { "code": null, "e": 2781, "s": 2484, "text": "If you want to p...
Check two numbers for equality in Java
To check two numbers for equality in Java, we can use the Equals() method as well as the == operator. Firstly, let us set Integers. Integer val1 = new Integer(5); Integer val2 = new Integer(5); Now, to check whether they are equal or not, let us use the == operator. (val1 == val2) Let us now see the complete example. ...
[ { "code": null, "e": 1164, "s": 1062, "text": "To check two numbers for equality in Java, we can use the Equals() method as well as the == operator." }, { "code": null, "e": 1194, "s": 1164, "text": "Firstly, let us set Integers." }, { "code": null, "e": 1256, "s"...
Erosion and Dilation | Morphological Transformations in OpenCV in C++ - GeeksforGeeks
22 Feb, 2021 Morphological Transformations are simple operations based on the shape of an image usually performed on a binary image. It takes our input image and a structuring element(kernel) which decides the nature of the operation. In this article, we will discuss the two basic morphological filters erosion & dilati...
[ { "code": null, "e": 23707, "s": 23679, "text": "\n22 Feb, 2021" }, { "code": null, "e": 23929, "s": 23707, "text": "Morphological Transformations are simple operations based on the shape of an image usually performed on a binary image. It takes our input image and a structuring ...
Why do we need inner classes in Java?
Inner classes are a security mechanism in Java. We know a class cannot be associated with the access modifier private, but if we have the class as a member of other class, then the inner class can be made private. And this is also used to access the private members of a class. Following is the program to create an inne...
[ { "code": null, "e": 1340, "s": 1062, "text": "Inner classes are a security mechanism in Java. We know a class cannot be associated with the access modifier private, but if we have the class as a member of other class, then the inner class can be made private. And this is also used to access the pri...
How to show multiple Canvases at the same time in Tkinter?
The Canvas widget is one of the versatile widgets in Tkinter which is used to create illustrations, draw shapes, arcs, images, and other complex layouts in an application. To create a Canvas widget, you'll need to create a constructor of canvas(root, **options). You can use the factory functions to create text, images,...
[ { "code": null, "e": 1325, "s": 1062, "text": "The Canvas widget is one of the versatile widgets in Tkinter which is used to create illustrations, draw shapes, arcs, images, and other complex layouts in an application. To create a Canvas widget, you'll need to create a constructor of canvas(root, **...
Priority Queue of Maps in C++ with Examples - GeeksforGeeks
23 Nov, 2021 Priority Queue Priority queues are a type of container adapters, specifically designed such that the first element of the queue is the greatest of all elements in the queue and elements are in non-increasing order (hence we can see that each element of the queue has a priority {fixed order}). Generally, pr...
[ { "code": null, "e": 23707, "s": 23679, "text": "\n23 Nov, 2021" }, { "code": null, "e": 23722, "s": 23707, "text": "Priority Queue" }, { "code": null, "e": 24126, "s": 23722, "text": "Priority queues are a type of container adapters, specifically designed suc...
How to Visualize API results with Python
One of the biggest advantage of writing an API is to extract current/live data, even when the data is rapidly changing, an API will always get up to date data. API programs will use very specific URLs to request certain information e.g. Topp 100 most played songs of 2020 in Spotify or Youtube Music. The requested data ...
[ { "code": null, "e": 1451, "s": 1062, "text": "One of the biggest advantage of writing an API is to extract current/live data, even when the data is rapidly changing, an API will always get up to date data. API programs will use very specific URLs to request certain information e.g. Topp 100 most pl...
Explain the Rest parameter in ES6 - GeeksforGeeks
12 Jan, 2022 In this article, we will try to understand the details associated with the rest parameter in ES6 which includes syntax of rest parameters, how to use this with the help of certain examples. Let us first understand the basic details which are associated with the Rest parameter. function display(first_argume...
[ { "code": null, "e": 24347, "s": 24319, "text": "\n12 Jan, 2022" }, { "code": null, "e": 24537, "s": 24347, "text": "In this article, we will try to understand the details associated with the rest parameter in ES6 which includes syntax of rest parameters, how to use this with the...
MATLAB - Set Operations
MATLAB provides various functions for set operations, like union, intersection and testing for set membership, etc. The following table shows some commonly used set operations − intersect(A,B) Set intersection of two arrays; returns the values common to both A and B. The values returned are in sorted order. intersect(A...
[ { "code": null, "e": 2257, "s": 2141, "text": "MATLAB provides various functions for set operations, like union, intersection and testing for set membership, etc." }, { "code": null, "e": 2319, "s": 2257, "text": "The following table shows some commonly used set operations −" }...
HTML5 - Character Encodings
A character encoding is a method of converting bytes into characters. To validate or display an HTML document, a program must choose a character encoding. HTML 5 authors have three means of setting the character encoding − If you are writing cgi or similar program then you would use HTTP Content-Type header to set any ...
[ { "code": null, "e": 2831, "s": 2608, "text": "A character encoding is a method of converting bytes into characters. To validate or display an HTML document, a program must choose a character encoding. HTML 5 authors have three means of setting the character encoding −" }, { "code": null, ...
Creating the (nearly) perfect connect-four bot with limited move time and file size | by Gilles Vandewiele | Towards Data Science
In the context of the ‘Informatics’ course, where the first-year engineers at the University of Ghent learn to code in Python, we set up an AI bot competition platform. The goal was to create a bot that plays the game connect-four by implementing the following function: def generate_move(board, player, saved_state): ...
[ { "code": null, "e": 443, "s": 172, "text": "In the context of the ‘Informatics’ course, where the first-year engineers at the University of Ghent learn to code in Python, we set up an AI bot competition platform. The goal was to create a bot that plays the game connect-four by implementing the foll...
Math.max() function in JavaScript
The max() function of the Math object accepts multiple numbers and returns the largest numbers among them. If you pass single number to this function it will return the same And, if you do not pass any arguments to it will return infinity. Its Syntax is as follows Math.max(48, 148, 3654); Live Demo <html> <head> <t...
[ { "code": null, "e": 1169, "s": 1062, "text": "The max() function of the Math object accepts multiple numbers and returns the largest numbers among them." }, { "code": null, "e": 1236, "s": 1169, "text": "If you pass single number to this function it will return the same" }, ...
How to draw a bar graph for your scientific paper with python | by Yefeng Xia | Towards Data Science
A bar graph 📊(also known as a bar chart or bar diagram) is a visual tool with that readers can compare data showed by bars among categories. In this story, I try to introduce how can we draw a clear bar plot with python. As a student or researcher, you have to publish your efforts and results in scientific papers wher...
[ { "code": null, "e": 393, "s": 172, "text": "A bar graph 📊(also known as a bar chart or bar diagram) is a visual tool with that readers can compare data showed by bars among categories. In this story, I try to introduce how can we draw a clear bar plot with python." }, { "code": null, "...
How to create Focusable EditText inside ListView on Android using Kotlin?
This example demonstrates how to create Focusable EditText inside ListView on Android 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. Step 2 − Add the following code to res/layout/activity_main.xml. <?xml version="1.0" encodi...
[ { "code": null, "e": 1162, "s": 1062, "text": "This example demonstrates how to create Focusable EditText inside ListView on Android using Kotlin." }, { "code": null, "e": 1291, "s": 1162, "text": "Step 1 − Create a new project in Android Studio, go to File ? New Project and fill...
Structs in Rust Programming
Structs in Rust are user-defined data types. They contain fields that are used to define their particular instance. We defined structs with the help of the struct keyword followed by the name we want for the struct. The name of the struct should describe the significance of the pieces of data that we are grouping toget...
[ { "code": null, "e": 1178, "s": 1062, "text": "Structs in Rust are user-defined data types. They contain fields that are used to define their particular instance." }, { "code": null, "e": 1397, "s": 1178, "text": "We defined structs with the help of the struct keyword followed by...
Python - Nested Dictionary Subset - GeeksforGeeks
11 Oct, 2020 Given a Nested Dictionary, test if another dictionary is subset. Examples: Input : test_dict = {“gfg”: 12, ‘best’ : {1 : 3, 4 : 3, ‘geeks’ : {8 : 7}}}, sub_dict = {8 : 7} Output : True Explanation : Required Nested dictionary present in Dictionary. Input : test_dict = {“gfg”: 12, ‘best’ : {1 : 3, 4 : 3, ‘...
[ { "code": null, "e": 23901, "s": 23873, "text": "\n11 Oct, 2020" }, { "code": null, "e": 23966, "s": 23901, "text": "Given a Nested Dictionary, test if another dictionary is subset." }, { "code": null, "e": 23976, "s": 23966, "text": "Examples:" }, { "...
Keras - Models
As learned earlier, Keras model represents the actual neural network model. Keras provides a two mode to create the model, simple and easy to use Sequential API as well as more flexible and advanced Functional API. Let us learn now to create model using both Sequential and Functional API in this chapter. The core idea ...
[ { "code": null, "e": 2357, "s": 2051, "text": "As learned earlier, Keras model represents the actual neural network model. Keras provides a two mode to create the model, simple and easy to use Sequential API as well as more flexible and advanced Functional API. Let us learn now to create model using...
How to find where the URL will redirected using cURL? - GeeksforGeeks
12 Jul, 2019 In General, cURL stands for ‘Client for URLs’, here URL written in uppercase to indicates that the cURL deals with URLs. PHP Approach:Basic Function used in cURL: curl_init() Function: It will initiate the curl a new session and return a cURL handle.Syntax:curl_init(); curl_init(); curl_setopt() Function: ...
[ { "code": null, "e": 24610, "s": 24582, "text": "\n12 Jul, 2019" }, { "code": null, "e": 24731, "s": 24610, "text": "In General, cURL stands for ‘Client for URLs’, here URL written in uppercase to indicates that the cURL deals with URLs." }, { "code": null, "e": 24773...
Basic Hibernate Example with XML Configuration - onlinetutorialspoint
PROGRAMMINGJava ExamplesC Examples Java Examples C Examples C Tutorials aws JAVAEXCEPTIONSCOLLECTIONSSWINGJDBC EXCEPTIONS COLLECTIONS SWING JDBC JAVA 8 SPRING SPRING BOOT HIBERNATE PYTHON PHP JQUERY PROGRAMMINGJava ExamplesC Examples Java Examples C Examples C Tutorials aws In this tutorials we are going to see how to ...
[ { "code": null, "e": 158, "s": 123, "text": "PROGRAMMINGJava ExamplesC Examples" }, { "code": null, "e": 172, "s": 158, "text": "Java Examples" }, { "code": null, "e": 183, "s": 172, "text": "C Examples" }, { "code": null, "e": 195, "s": 183, ...
Redis - Quick Guide
Redis is an open source, advanced key-value store and an apt solution for building highperformance, scalable web applications. Redis has three main peculiarities that sets it apart. Redis holds its database entirely in the memory, using the disk only for persistence. Redis holds its database entirely in the memory, usi...
[ { "code": null, "e": 2172, "s": 2045, "text": "Redis is an open source, advanced key-value store and an apt solution for building highperformance, scalable web applications." }, { "code": null, "e": 2227, "s": 2172, "text": "Redis has three main peculiarities that sets it apart."...
Largest Component Size by Common Factor in C++
Suppose we have an array A of unique positive integers, now consider the following graph − There are length of A number of nodes, these are labelled A[0] to A[size of A - 1]; There is an edge between A[i] and A[j] when A[i] and A[j] share a common factor greater than 1. We have to find the size of the largest connected...
[ { "code": null, "e": 1153, "s": 1062, "text": "Suppose we have an array A of unique positive integers, now consider the following graph −" }, { "code": null, "e": 1407, "s": 1153, "text": "There are length of A number of nodes, these are labelled A[0] to A[size of A - 1]; There i...
MySQL BEGIN ... END Compound Statement
The BEGIN ... END syntax is used to create a compound statement. These compound statements contain a multiple set of statements. These statement starts with BEGIN and ends with END statements. Each statement in a compound statement ends with a semi colon (;) or the current statement delimiter. stored procedures and fun...
[ { "code": null, "e": 2628, "s": 2333, "text": "The BEGIN ... END syntax is used to create a compound statement. These compound statements contain a multiple set of statements. These statement starts with BEGIN and ends with END statements. Each statement in a compound statement ends with a semi colo...
Introduction to D-Tale. Introduction to D-Tale for interactive... | by Albert Sanchez Lafuente | Towards Data Science
D-Tale is a recently created library (end of February 2020) that allows us to visualize a Pandas DataFrame. What D-Tale does is to generate an interactive graphical interface in which we can define what we want the data to look like and do an exploratory analysis of data as we like. You can see how D-Tale works live at...
[ { "code": null, "e": 455, "s": 171, "text": "D-Tale is a recently created library (end of February 2020) that allows us to visualize a Pandas DataFrame. What D-Tale does is to generate an interactive graphical interface in which we can define what we want the data to look like and do an exploratory ...
How to Easily Automate Your Python Scripts on Mac and Windows | by Frank Andrade | Towards Data Science
Running a Python script could be as easy as opening your IDE or text editor and clicking the run button; however, if the script has to be executed daily or weekly, you don’t want to waste time repeating these steps over and over again. Instead, you could automate those scripts by scheduling jobs that run your Python sc...
[ { "code": null, "e": 407, "s": 171, "text": "Running a Python script could be as easy as opening your IDE or text editor and clicking the run button; however, if the script has to be executed daily or weekly, you don’t want to waste time repeating these steps over and over again." }, { "code...
Integer doubleValue() Method in Java - GeeksforGeeks
07 Jul, 2018 The doubleValue() method of Integer class of java.lang package is used to convert the value of the given Integer to a Double type after a widening primitive conversion and returns it. Syntax: public double doubleValue() Parameters: The method does not take any parameter. Return Value: This method returns a...
[ { "code": null, "e": 25833, "s": 25805, "text": "\n07 Jul, 2018" }, { "code": null, "e": 26017, "s": 25833, "text": "The doubleValue() method of Integer class of java.lang package is used to convert the value of the given Integer to a Double type after a widening primitive conver...
Entity Framework - Model First Approach
In this chapter, let us learn how to create an entity data model in the designer using the workflow referred to as Model First. Model First is great for when you're starting a new project where the database doesn't even exist yet. Model First is great for when you're starting a new project where the database doesn't ev...
[ { "code": null, "e": 3160, "s": 3032, "text": "In this chapter, let us learn how to create an entity data model in the designer using the workflow referred to as Model First." }, { "code": null, "e": 3263, "s": 3160, "text": "Model First is great for when you're starting a new pr...
Tryit Editor v3.7
CSS Style Images Tryit: Image hover - Fade in text
[ { "code": null, "e": 26, "s": 9, "text": "CSS Style Images" } ]
Angular Material - Theme
The Angular Material components use the intention group classes like md-primary, md-accent, md-warn and additional classes for color differences like md-hue-1, md-hue-2, or md-hue-3. The following components supporrt the use of the above mentioned classes. md-button md-button md-checkbox md-checkbox md-progress-circula...
[ { "code": null, "e": 2447, "s": 2190, "text": "The Angular Material components use the intention group classes like md-primary, md-accent, md-warn and additional classes for color differences like md-hue-1, md-hue-2, or md-hue-3. The following components supporrt the use of the above mentioned class...
How to insert a string at a specific index in JavaScript ? - GeeksforGeeks
25 Sep, 2019 Given a string containing words and the task is to insert a new string at a given index. There are two methods to solve this problem which are discussed below: Method 1: Using the slice() method: The string is first divided into two parts by splitting it where the new string has to be inserted. The slice()...
[ { "code": null, "e": 24714, "s": 24686, "text": "\n25 Sep, 2019" }, { "code": null, "e": 24874, "s": 24714, "text": "Given a string containing words and the task is to insert a new string at a given index. There are two methods to solve this problem which are discussed below:" ...
Tryit Editor v3.7
Tryit: JavaScript - change style
[]
How to align checkbutton in ttk to the left side?
To align the checkbuttons to left, you can use the anchor parameter and set it to "w" (west). Let's take an example and see how to do it. Import the tkinter library and create an instance of tkinter frame. Import the tkinter library and create an instance of tkinter frame. Set the size of the frame using geometry metho...
[ { "code": null, "e": 1200, "s": 1062, "text": "To align the checkbuttons to left, you can use the anchor parameter and set it to \"w\" (west). Let's take an example and see how to do it." }, { "code": null, "e": 1268, "s": 1200, "text": "Import the tkinter library and create an i...
Predict soccer matches with 50% accuracy | by Benedikt Droste | Towards Data Science
Betting in general and betting games became even more popular in the last years. You can bet everywhere at any time via your pc or your smartphone. Therefore, it is not surprising that a lot of people try to predict results of sport events. For soccer there is a huge market and you are able to bet on nearly every event...
[ { "code": null, "e": 1336, "s": 172, "text": "Betting in general and betting games became even more popular in the last years. You can bet everywhere at any time via your pc or your smartphone. Therefore, it is not surprising that a lot of people try to predict results of sport events. For soccer th...
Sum of minimum absolute difference of each array element - GeeksforGeeks
14 Apr, 2021 Given an array of n distinct integers. The problem is to find the sum of minimum absolute difference of each array element. For an element x present at index i in the array its minimum absolute difference is calculated as: Min absolute difference (x) = min(abs(x – arr[j])), where 1 <= j <= n and j != i and...
[ { "code": null, "e": 25063, "s": 25035, "text": "\n14 Apr, 2021" }, { "code": null, "e": 25434, "s": 25063, "text": "Given an array of n distinct integers. The problem is to find the sum of minimum absolute difference of each array element. For an element x present at index i in ...
How to draw a log-normalized imshow plot with a colorbar representing the raw data in Matplotlib?
To draw a log-normalized imshow() plot with a colorbar representing the raw data in matplotlib, we can take the following steps − Create a 2D array using numpy. Display the data as an image, i.e., on a 2D regular raster, using imshow() method Create a colorbar for a ScalarMappable instance, *mappable*, using imshow() m...
[ { "code": null, "e": 1192, "s": 1062, "text": "To draw a log-normalized imshow() plot with a colorbar representing the raw data in matplotlib, we can\ntake the following steps −" }, { "code": null, "e": 1223, "s": 1192, "text": "Create a 2D array using numpy." }, { "code"...
Python program to get all subsets of given size of a set
In this article, we will learn about the solution to the problem statement given below. Problem statement − We are given two integers, we need to display the common divisors of two numbers Here we are computing the minimum of the two numbers we take as input. A loop to calculate the divisors by computed by dividing eac...
[ { "code": null, "e": 1150, "s": 1062, "text": "In this article, we will learn about the solution to the problem statement given below." }, { "code": null, "e": 1251, "s": 1150, "text": "Problem statement − We are given two integers, we need to display the common divisors of two n...
How to get the row count from ResultSet in JDBC
Whenever we execute SQL statements using the executeQuery() method, it returns a ResultSet object which holds the tabular data returned by the SELECT queries(in general). The ResultSet object contains a cursor/pointer which points to the current row. Initially this cursor is positioned before first row (default positio...
[ { "code": null, "e": 1386, "s": 1062, "text": "Whenever we execute SQL statements using the executeQuery() method, it returns a ResultSet object which holds the tabular data returned by the SELECT queries(in general). The ResultSet object contains a cursor/pointer which points to the current row. In...
Combine two arrays in C#
Firstly, declare and initialize two arrays − int[] arr1 = { 37, 45, 65 }; int[] arr2 = { 70, 89, 118 }; Now create a new list − var myList = new List<int>(); myList.AddRange(arr1); myList.AddRange(arr2); Use the AddRange() method the arrays into the newly created list. myList.AddRange(arr1); myList.AddRange(arr2); Now ...
[ { "code": null, "e": 1107, "s": 1062, "text": "Firstly, declare and initialize two arrays −" }, { "code": null, "e": 1166, "s": 1107, "text": "int[] arr1 = { 37, 45, 65 };\nint[] arr2 = { 70, 89, 118 };" }, { "code": null, "e": 1190, "s": 1166, "text": "Now cr...
memcpy() function in C/C++
The function memcpy() is used to copy a memory block from one location to another. One is source and another is destination pointed by the pointer. This is declared in “string.h” header file in C language. It does not check overflow. Here is the syntax of memcpy() in C language, void *memcpy(void *dest_str, const void ...
[ { "code": null, "e": 1296, "s": 1062, "text": "The function memcpy() is used to copy a memory block from one location to another. One is source and another is destination pointed by the pointer. This is declared in “string.h” header file in C language. It does not check overflow." }, { "code...
Reading Path Parameters in Node.js - GeeksforGeeks
22 Jan, 2021 The path parameter is a variable that allows the user to add a parameter in his resource point (API endpoint) whose value can be changed. Path parameters offer a unique opportunity for the user to control the representations of resources. Just create a folder and add a file for example index.js, To run thi...
[ { "code": null, "e": 24567, "s": 24539, "text": "\n22 Jan, 2021" }, { "code": null, "e": 24806, "s": 24567, "text": "The path parameter is a variable that allows the user to add a parameter in his resource point (API endpoint) whose value can be changed. Path parameters offer a u...
Highcharts - Stacked Bar Chart
Following is an example of a basic bar chart. We have already seen most the configuration used to draw a chart in Highcharts Configuration Syntax chapter. An example of a basic bar chart is given below. Let us now see the additional configurations/steps taken. Configure the stacking of the chart using plotOptions.serie...
[ { "code": null, "e": 2063, "s": 2017, "text": "Following is an example of a basic bar chart." }, { "code": null, "e": 2220, "s": 2063, "text": "We have already seen most the configuration used to draw a chart in Highcharts Configuration Syntax chapter. An example of a basic bar c...
SVN - Tags
Version Control System supports the tag operation by using that concept that one can give meaningful name to a specific version of the code. Tag allows to give descriptive and memorable names to specific version of code. For example BASIC_ARRAY_OPERATIONS is more memorable than revision 4. Let us see tag operation with...
[ { "code": null, "e": 2067, "s": 1776, "text": "Version Control System supports the tag operation by using that concept that one can give meaningful name to a specific version of the code. Tag allows to give descriptive and memorable names to specific version of code. For example BASIC_ARRAY_OPERATIO...
Java Operators
Operators are used to perform operations on variables and values. In the example below, we use the + operator to add together two values: int x = 100 + 50; Try it Yourself » Although the + operator is often used to add together two values, like in the example above, it can also be used to add together a variable and...
[ { "code": null, "e": 66, "s": 0, "text": "Operators are used to perform operations on variables and values." }, { "code": null, "e": 138, "s": 66, "text": "In the example below, we use the\n+ operator to add together two values:" }, { "code": null, "e": 157, "s": ...
How to create a Custom Dialog box on Android?
This example demonstrates about how do I create a custom message in Android. 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"?> <RelativeLa...
[ { "code": null, "e": 1139, "s": 1062, "text": "This example demonstrates about how do I create a custom message in Android." }, { "code": null, "e": 1267, "s": 1139, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details t...
How to change the size of the Console using PowerShell?
You can change the size of the PowerShell Console with GUI and CLI both. With GUI − With CLI − To change the Width of the console, $host.UI.RawUI.WindowSize.Width = 150 To change the Height of the console, $host.UI.RawUI.WindowSize.Height = 60
[ { "code": null, "e": 1135, "s": 1062, "text": "You can change the size of the PowerShell Console with GUI and CLI both." }, { "code": null, "e": 1146, "s": 1135, "text": "With GUI −" }, { "code": null, "e": 1157, "s": 1146, "text": "With CLI −" }, { "c...
Accessing Key-value in a Python Dictionary
While analyzing data using Python data structures we will eventually come across the need for accessing key and value in a dictionary. There are various ways to do it in this article we will see some of the ways. Using a for loop we can access both the key and value at each of the index position in dictionary as soon i...
[ { "code": null, "e": 1275, "s": 1062, "text": "While analyzing data using Python data structures we will eventually come across the need for accessing key and value in a dictionary. There are various ways to do it in this article we will see some of the ways." }, { "code": null, "e": 140...
SciPy - Input & Output
The Scipy.io (Input and Output) package provides a wide range of functions to work around with different format of files. Some of these formats are − Matlab IDL Matrix Market Wave Arff Netcdf, etc. Let us discuss in detail about the most commonly used file formats − Following are the functions used to load and save a ....
[ { "code": null, "e": 2037, "s": 1887, "text": "The Scipy.io (Input and Output) package provides a wide range of functions to work around with different format of files. Some of these formats are −" }, { "code": null, "e": 2044, "s": 2037, "text": "Matlab" }, { "code": nul...
Decorators with parameters in Python - GeeksforGeeks
17 Nov, 2021 Prerequisite: Decorators in Python, Function Decorators We know Decorators are a very powerful and useful tool in Python since it allows programmers to modify the behavior of function or class. In this article, we will learn about the Decorators with Parameters with help of multiple examples. Python functi...
[ { "code": null, "e": 41161, "s": 41133, "text": "\n17 Nov, 2021" }, { "code": null, "e": 41217, "s": 41161, "text": "Prerequisite: Decorators in Python, Function Decorators" }, { "code": null, "e": 41563, "s": 41217, "text": "We know Decorators are a very powe...
Decision Trees. An Overview of Classification and... | by Jason Wong | Towards Data Science
This post will serve as a high-level overview of decision trees. It will cover how decision trees train with recursive binary splitting and feature selection with “information gain” and “Gini Index”. I will also be tuning hyperparameters and pruning a decision tree for optimization. The two decision tree algorithms cov...
[ { "code": null, "e": 592, "s": 171, "text": "This post will serve as a high-level overview of decision trees. It will cover how decision trees train with recursive binary splitting and feature selection with “information gain” and “Gini Index”. I will also be tuning hyperparameters and pruning a dec...
Design Pattern for Machine Learning training work flow | by Saurav Chakravorty | Towards Data Science
I am sure all my readers would have tried multiple training algorithms on their datasets to find the best performing model. I have done this on multiple occasions and at the end of this whole exercise, my workspace would look like this — Eventually I forget what I did in each of these files and even to remember the bes...
[ { "code": null, "e": 410, "s": 172, "text": "I am sure all my readers would have tried multiple training algorithms on their datasets to find the best performing model. I have done this on multiple occasions and at the end of this whole exercise, my workspace would look like this —" }, { "co...
How to check if an input string contains a specified substring in JSP?
The fn:contains() function determines whether an input string contains a specified substring. The fn:contains() function has the following syntax − boolean contains(java.lang.String, java.lang.String) Following example explains the functionality of fn:contains() function − <%@ taglib uri = "http://java.sun.com/jsp/jstl...
[ { "code": null, "e": 1156, "s": 1062, "text": "The fn:contains() function determines whether an input string contains a specified substring." }, { "code": null, "e": 1210, "s": 1156, "text": "The fn:contains() function has the following syntax −" }, { "code": null, "e...
Difference between update vs merge in Hibernate example
PROGRAMMINGJava ExamplesC Examples Java Examples C Examples C Tutorials aws JAVAEXCEPTIONSCOLLECTIONSSWINGJDBC EXCEPTIONS COLLECTIONS SWING JDBC JAVA 8 SPRING SPRING BOOT HIBERNATE PYTHON PHP JQUERY PROGRAMMINGJava ExamplesC Examples Java Examples C Examples C Tutorials aws In this tutorial we will see the most critica...
[ { "code": null, "e": 158, "s": 123, "text": "PROGRAMMINGJava ExamplesC Examples" }, { "code": null, "e": 172, "s": 158, "text": "Java Examples" }, { "code": null, "e": 183, "s": 172, "text": "C Examples" }, { "code": null, "e": 195, "s": 183, ...
Creating ONNX from scratch. ONNX provides an extremely flexible... | by Maurits Kaptein | Towards Data Science
ONNX has been around for a while, and it is becoming a successful intermediate format to move, often heavy, trained neural networks from one training tool to another (e.g., move between pyTorch and Tensorflow), or to deploy models in the cloud using the ONNX runtime. In these cases users often simply save a model to ON...
[ { "code": null, "e": 551, "s": 171, "text": "ONNX has been around for a while, and it is becoming a successful intermediate format to move, often heavy, trained neural networks from one training tool to another (e.g., move between pyTorch and Tensorflow), or to deploy models in the cloud using the O...
How to use Jupyter on a Google Cloud VM | by Lak Lakshmanan | Towards Data Science
Note: The recipes in this article will still work, but I recommend that you use the notebook API now. Do: gcloud beta notebooks --help The simplest way to launch a notebook on GCP is to go through the workflow from the GCP console. Go to AI Platform and click on Notebook Instances. You can create a new instance from th...
[ { "code": null, "e": 278, "s": 172, "text": "Note: The recipes in this article will still work, but I recommend that you use the notebook API now. Do:" }, { "code": null, "e": 307, "s": 278, "text": "gcloud beta notebooks --help" }, { "code": null, "e": 510, "s": ...
Print all n-digit numbers whose sum of digits equals to given sum - GeeksforGeeks
20 Feb, 2022 Given number of digits n, print all n-digit numbers whose sum of digits adds upto given sum. Solution should not consider leading 0’s as digits.Examples: Input: N = 2, Sum = 3 Output: 12 21 30 Input: N = 3, Sum = 6 Output: 105 114 123 132 141 150 204 213 222 231 240 303 312 321 3...
[ { "code": null, "e": 24837, "s": 24809, "text": "\n20 Feb, 2022" }, { "code": null, "e": 24993, "s": 24837, "text": "Given number of digits n, print all n-digit numbers whose sum of digits adds upto given sum. Solution should not consider leading 0’s as digits.Examples: " }, ...
Whatsapp using Python?
In this section we are going to create a Whatsapp chatbots, but unlike few other chatbots for twitter or facebook, whatsapp chatbots don’t run on the platform directly because of whatsapp’s policies. But there is a way to get is done, using selenium, a very smart package in python with which developer’s can automate th...
[ { "code": null, "e": 1262, "s": 1062, "text": "In this section we are going to create a Whatsapp chatbots, but unlike few other chatbots for twitter or facebook, whatsapp chatbots don’t run on the platform directly because of whatsapp’s policies." }, { "code": null, "e": 1467, "s": 1...
How to identify foreign key in MySQL DB?
Let us first create a table − mysql> create table DemoTable1 (Id int NOT NULL PRIMARY KEY,EmployeeName varchar(100)); Query OK, 0 rows affected (0.50 sec) Following is the query to create a second table with foreign key constraints − mysql> create table DemoTable2 ( Id int NOT NULL, StreetName varchar(10...
[ { "code": null, "e": 1092, "s": 1062, "text": "Let us first create a table −" }, { "code": null, "e": 1217, "s": 1092, "text": "mysql> create table DemoTable1 (Id int NOT NULL PRIMARY KEY,EmployeeName varchar(100));\nQuery OK, 0 rows affected (0.50 sec)" }, { "code": null...
Find all rectangles filled with 0 - GeeksforGeeks
08 Mar, 2022 We have one 2D array, filled with zeros and ones. We have to find the starting point and ending point of all rectangles filled with 0. It is given that rectangles are separated and do not touch each other however they can touch the boundary of the array.A rectangle might contain only one element.Examples: ...
[ { "code": null, "e": 24974, "s": 24946, "text": "\n08 Mar, 2022" }, { "code": null, "e": 25283, "s": 24974, "text": "We have one 2D array, filled with zeros and ones. We have to find the starting point and ending point of all rectangles filled with 0. It is given that rectangles ...
Data Visualization with Python Folium Maps | by Becca R | Towards Data Science
One of my favorite things about data science is data visualization. I love creating and utilizing visual aids to support stories and trends from my data. Python Folium library has been a helpful resource for me to utilize the power of geospatial visual analysis. In other words, maps! Maps allow me to analyze my data ac...
[ { "code": null, "e": 457, "s": 172, "text": "One of my favorite things about data science is data visualization. I love creating and utilizing visual aids to support stories and trends from my data. Python Folium library has been a helpful resource for me to utilize the power of geospatial visual an...
DateDiff() and DatePart() Function in MS Access - GeeksforGeeks
01 Oct, 2020 In this article, we are going to cover DateDiff() and DatePart function with examples. DateDiff() is used to calculate the difference between two dates. DatePart is used when you want a specific part want to display from date specified format. Let’s discuss one by one. 1. DateDiff() Function :In MS Access,...
[ { "code": null, "e": 23491, "s": 23463, "text": "\n01 Oct, 2020" }, { "code": null, "e": 23761, "s": 23491, "text": "In this article, we are going to cover DateDiff() and DatePart function with examples. DateDiff() is used to calculate the difference between two dates. DatePart i...