title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
GUID in Postman
GUID means Global Unique Identifier. It is in the form of a hexa-decima digit which is separated by hyphen. It helps to achieve distinctiveness due to this even if multiple people are creating the GUID simultaneously, the chance of having a duplicate GUID is rare. To generate a random value, using GUID, the format is βˆ’...
[ { "code": null, "e": 1327, "s": 1062, "text": "GUID means Global Unique Identifier. It is in the form of a hexa-decima digit which is separated by hyphen. It helps to achieve distinctiveness due to this even if multiple people are creating the GUID simultaneously, the chance of having a duplicate GU...
Custom progress Bar in Android?
This example demonstrates how do I create a progress bar 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"?> <android.support.const...
[ { "code": null, "e": 1127, "s": 1062, "text": "This example demonstrates how do I create a progress bar android" }, { "code": null, "e": 1256, "s": 1127, "text": "Step 1 βˆ’ Create a new project in Android Studio, go to File β‡’ New Project and fill all required details to create a n...
Node.js os.cpus() Method
13 Oct, 2021 The os.cpus() method is an inbuilt application programming interface of the os module which is used to get information about each logical CPU core of the computer. Syntax: os.cpus() Parameters: This method does not accept any parameters. Return: This method returns an object containing information about ea...
[ { "code": null, "e": 28, "s": 0, "text": "\n13 Oct, 2021" }, { "code": null, "e": 192, "s": 28, "text": "The os.cpus() method is an inbuilt application programming interface of the os module which is used to get information about each logical CPU core of the computer." }, { ...
HTML | DOM Input Text defaultValue Property
08 Mar, 2019 The Input Text defaultValue Property in HTML DOM is used to set or return the default value of the Text Field. This property is used to reflect the HTML value attribute. The main difference between the default value and value is that the default value indicate the default value and the value contains the c...
[ { "code": null, "e": 28, "s": 0, "text": "\n08 Mar, 2019" }, { "code": null, "e": 460, "s": 28, "text": "The Input Text defaultValue Property in HTML DOM is used to set or return the default value of the Text Field. This property is used to reflect the HTML value attribute. The m...
Python str() function
30 Sep, 2021 Python str() function returns the string version of the object. Syntax: str(object, encoding=’utf-8?, errors=’strict’) Parameters: object: The object whose string representation is to be returned. encoding: Encoding of the given object. errors: Response when decoding fails. Returns: String version of the g...
[ { "code": null, "e": 53, "s": 25, "text": "\n30 Sep, 2021" }, { "code": null, "e": 117, "s": 53, "text": "Python str() function returns the string version of the object." }, { "code": null, "e": 172, "s": 117, "text": "Syntax: str(object, encoding=’utf-8?, err...
C Program for KMP Algorithm for Pattern Searching
08 Jun, 2022 Given a text txt[0..n-1] and a pattern pat[0..m-1], write a function search(char pat[], char txt[]) that prints all occurrences of pat[] in txt[]. You may assume that n > m. Examples: Input: txt[] = "THIS IS A TEST TEXT" pat[] = "TEST" Output: Pattern found at index 10 Input: txt[] = "AABAACAA...
[ { "code": null, "e": 28, "s": 0, "text": "\n08 Jun, 2022" }, { "code": null, "e": 213, "s": 28, "text": "Given a text txt[0..n-1] and a pattern pat[0..m-1], write a function search(char pat[], char txt[]) that prints all occurrences of pat[] in txt[]. You may assume that n > m. E...
Make Zeroes | Practice | GeeksforGeeks
Given a matrix of size n x m. Your task is to make Zeroes, that means in whole matrix when you find a zero, convert its upper, lower, left, and right value to zero and make that element the sum of the upper, lower, left and right value. Do the following tasks according to the initial matrix. Example 1: Input: matrix...
[ { "code": null, "e": 522, "s": 226, "text": "Given a matrix of size n x m. Your task is to make Zeroes, that means in whole matrix when you find a zero, convert its upper, lower, left, and right value to zero and make that element the sum of the upper, lower, left and right value. Do the following ...
How to Extract Weather Data from Google in Python?
21 Jun, 2021 In this article, we will see how to extract weather data from google. Google does not have its own weather API, it fetches data from weather.com and shows it when you search on Google. So, we will scrape the data from Google. Module needed: Requests: Requests allows you to send HTTP/1.1 requests extremely ...
[ { "code": null, "e": 54, "s": 26, "text": "\n21 Jun, 2021" }, { "code": null, "e": 280, "s": 54, "text": "In this article, we will see how to extract weather data from google. Google does not have its own weather API, it fetches data from weather.com and shows it when you search ...
Cursors in PL/SQL
17 Jul, 2018 Cursor in SQLTo execute SQL statements, a work area is used by the Oracle engine for its internal processing and storing the information. This work area is private to SQL’s operations. The β€˜Cursor’ is the PL/SQL construct that allows the user to name the work area and access the stored information in it. U...
[ { "code": null, "e": 54, "s": 26, "text": "\n17 Jul, 2018" }, { "code": null, "e": 360, "s": 54, "text": "Cursor in SQLTo execute SQL statements, a work area is used by the Oracle engine for its internal processing and storing the information. This work area is private to SQL’s o...
Python – Find the index of Minimum element in list
17 Dec, 2019 Sometimes, while working with Python lists, we can have a problem in which we intend to find the position of minimum element of list. This task is easy and discussed many times. But sometimes, we can have multiple minimum elements and hence multiple minimum positions. Let’s discuss ways to achieve this tas...
[ { "code": null, "e": 28, "s": 0, "text": "\n17 Dec, 2019" }, { "code": null, "e": 338, "s": 28, "text": "Sometimes, while working with Python lists, we can have a problem in which we intend to find the position of minimum element of list. This task is easy and discussed many time...
NLP | Synsets for a word in WordNet
28 Jan, 2019 WordNet is the lexical database i.e. dictionary for the English language, specifically designed for natural language processing. Synset is a special kind of a simple interface that is present in NLTK to look up words in WordNet. Synset instances are the groupings of synonymous words that express the same c...
[ { "code": null, "e": 52, "s": 24, "text": "\n28 Jan, 2019" }, { "code": null, "e": 181, "s": 52, "text": "WordNet is the lexical database i.e. dictionary for the English language, specifically designed for natural language processing." }, { "code": null, "e": 429, ...
Printing Shortest Common Supersequence
25 Mar, 2022 Given two strings X and Y, print the shortest string that has both X and Y as subsequences. If multiple shortest super-sequence exists, print any one of them.Examples: Input: X = "AGGTAB", Y = "GXTXAYB" Output: "AGXGTXAYB" OR "AGGXTXAYB" OR Any string that represents shortest supersequence of X and Y ...
[ { "code": null, "e": 52, "s": 24, "text": "\n25 Mar, 2022" }, { "code": null, "e": 222, "s": 52, "text": "Given two strings X and Y, print the shortest string that has both X and Y as subsequences. If multiple shortest super-sequence exists, print any one of them.Examples: " }...
Node.js crypto.scrypt() Method
11 Oct, 2021 The crypto.scrypt() method is an inbuilt application programming interface of crypto module which is used to enable an implementation of an asynchronous scrypt. Where, scrypt is a password-based key derivation function. It is intended to be costly computationally plus memory-wise. So, the brute-force attac...
[ { "code": null, "e": 28, "s": 0, "text": "\n11 Oct, 2021" }, { "code": null, "e": 361, "s": 28, "text": "The crypto.scrypt() method is an inbuilt application programming interface of crypto module which is used to enable an implementation of an asynchronous scrypt. Where, scrypt ...
Java Program for QuickSort
13 Jun, 2022 Like Merge Sort, QuickSort is a Divide and Conquer algorithm. It picks an element as pivot and partitions the given array around the picked pivot. There are many different versions of quickSort that pick pivot in different ways. Always pick first element as pivot.Always pick last element as pivot (implemen...
[ { "code": null, "e": 54, "s": 26, "text": "\n13 Jun, 2022" }, { "code": null, "e": 283, "s": 54, "text": "Like Merge Sort, QuickSort is a Divide and Conquer algorithm. It picks an element as pivot and partitions the given array around the picked pivot. There are many different ve...
Python – Cross mapping of Two dictionary value lists
21 Jun, 2022 GIven two dictionaries with list values, perform mapping of keys of first list with values of other list, by checking values-key linkage. Input : test_dict1 = {β€œGfg” : [4, 10], β€œBest” : [8, 6], β€œis” : [9, 3]}, test_dict2 = {6 : [15, 9], 8 : [6, 3], 7 : [9, 8], 9 : [10, 11]} Output : {β€˜Best’: [6, 3, 15, 9],...
[ { "code": null, "e": 28, "s": 0, "text": "\n21 Jun, 2022" }, { "code": null, "e": 166, "s": 28, "text": "GIven two dictionaries with list values, perform mapping of keys of first list with values of other list, by checking values-key linkage." }, { "code": null, "e": ...
Cucumber - Java Testing
To run Cucumber test with Java, following are the steps. Step 1 βˆ’ Install Java βˆ’ Download jdk and jre from http://www.oracle.com/technetwork/java/javase/downloads/index.html Download jdk and jre from http://www.oracle.com/technetwork/java/javase/downloads/index.html Accept license agreement. Accept license agreement. I...
[ { "code": null, "e": 2019, "s": 1962, "text": "To run Cucumber test with Java, following are the steps." }, { "code": null, "e": 2043, "s": 2019, "text": "Step 1 βˆ’ Install Java βˆ’" }, { "code": null, "e": 2136, "s": 2043, "text": "Download jdk and jre from\nhtt...
Don’t be Afraid of Nonparametric Topic Models (Part 2: Python) | by Eduardo Coronado Sroka | Towards Data Science
This article builds upon high-level foundational material I covered in my previous article and describes how to implement a Hierarchical Dirichlet Process model for topic modeling in Python. Let us all agree, it’s one thing to learn and talk about cool, new methods and another to actually implement/test them with data....
[ { "code": null, "e": 363, "s": 172, "text": "This article builds upon high-level foundational material I covered in my previous article and describes how to implement a Hierarchical Dirichlet Process model for topic modeling in Python." }, { "code": null, "e": 733, "s": 363, "tex...
How to check if a string contains only lower case letters in Python?
We can check if a string contains only lower case letters using 2 methods. First is using method islower(). For example: print('Hello world'.islower()) print('hello world'.islower()) OUTPUT False True You can also use regexes for the same result. For matching only lowercase, we can call the re.match(regex, string) usin...
[ { "code": null, "e": 1170, "s": 1062, "text": "We can check if a string contains only lower case letters using 2 methods. First is using method islower()." }, { "code": null, "e": 1183, "s": 1170, "text": "For example:" }, { "code": null, "e": 1245, "s": 1183, ...
AngularJS – isString() method
The isString() method in AngularJS basically checks if a reference is a string value or not. This method will return True if the reference passed inside the function is a string, else it will return False. angular.isString(value) Create a file "isString.html" in your Angular project directory and copy-paste the followi...
[ { "code": null, "e": 1268, "s": 1062, "text": "The isString() method in AngularJS basically checks if a reference is a string value or not. This method will return True if the reference passed inside the function is a string, else it will return False." }, { "code": null, "e": 1292, ...
How to Create a RAID 5 Storage Array with β€˜mdadm’ on Ubuntu 16.04
In this article, we will learn how to create a RAID 5 Array configuration using the β€˜mdadm’ utility. The β€˜mdadm’ is a utility which is used to create and manage storage arrays on Linux with RAID capability where the administrators are having great flexibility in managing the individual storages devices and creating the...
[ { "code": null, "e": 1163, "s": 1062, "text": "In this article, we will learn how to create a RAID 5 Array configuration using the β€˜mdadm’ utility." }, { "code": null, "e": 1439, "s": 1163, "text": "The β€˜mdadm’ is a utility which is used to create and manage storage arrays on Lin...
Annotation Based After Returning Advice
@AfterReturning is an advice type, which ensures that an advice runs after the method executes successfully. Following is the syntax of @AfterReturning advice. @AfterReturning(Pointcut = "execution(* com.tutorialspoint.Student.*(..))", returning = "retVal") public void afterReturningAdvice(JoinPoint jp, Object retVal){...
[ { "code": null, "e": 2429, "s": 2269, "text": "@AfterReturning is an advice type, which ensures that an advice runs after the method executes successfully. Following is the syntax of @AfterReturning advice." }, { "code": null, "e": 2718, "s": 2429, "text": "@AfterReturning(Pointc...
GATE | GATE CS 1997 | Question 21 - GeeksforGeeks
25 Oct, 2018 The correct matching for the following pairs is (A) Disk Scheduling (1) Round robin (B) Batch Processing (2) SCAN (C) Time sharing (3) LIFO (D) Interrupt processing (4) FIFO Codes: A B C D a 3 4 2 1 b 4 3 2 1 c 2 4 1 3 d 3 4 3 2 (A) a(B) ...
[ { "code": null, "e": 24466, "s": 24438, "text": "\n25 Oct, 2018" }, { "code": null, "e": 24514, "s": 24466, "text": "The correct matching for the following pairs is" }, { "code": null, "e": 24666, "s": 24514, "text": "(A) Disk Scheduling (1) Round robin...
How to clear form after submission in Angular 2? - GeeksforGeeks
09 Jun, 2020 In Angular 2, they are two types of forms: Template-driven forms. Reactive forms. In template-driven forms, most of the content will be populated in .html file.In Reactive forms, most of the functionalities and content will be performed in .ts file. The main advantage of reactive forms is, we can create cu...
[ { "code": null, "e": 24471, "s": 24443, "text": "\n09 Jun, 2020" }, { "code": null, "e": 24514, "s": 24471, "text": "In Angular 2, they are two types of forms:" }, { "code": null, "e": 24537, "s": 24514, "text": "Template-driven forms." }, { "code": nu...
MySQL Tryit Editor v1.0
SELECT CustomerName, ContactName, Address FROM Customers WHERE Address IS NULL; ​ Edit the SQL Statement, and click "Run SQL" to see the result. This SQL-Statement is not supported in the WebSQL Database. The example still works, because it uses a modified version of SQL. Your browser does not support WebSQL. ...
[ { "code": null, "e": 42, "s": 0, "text": "SELECT CustomerName, ContactName, Address" }, { "code": null, "e": 57, "s": 42, "text": "FROM Customers" }, { "code": null, "e": 80, "s": 57, "text": "WHERE Address IS NULL;" }, { "code": null, "e": 82, ...
C# Program to Find the Value of Sin(x) - GeeksforGeeks
30 Nov, 2021 Sin(x) is also known as Sine. It is a trigonometric function of an angle. In a right-angled triangle, the ratio of the length of the perpendicular to the length of the hypotenuse is known as the sine of an angle. sin ΞΈ = perpendicular / hypotenuse The values of sine of some of the comman angles are given b...
[ { "code": null, "e": 24222, "s": 24194, "text": "\n30 Nov, 2021" }, { "code": null, "e": 24435, "s": 24222, "text": "Sin(x) is also known as Sine. It is a trigonometric function of an angle. In a right-angled triangle, the ratio of the length of the perpendicular to the length of...
How to read the contents of a webpage into a string in java?
You can read the contents of a web page in several ways using Java. Here, we are going to discuss three of them. The URL class of the java.net package represents a Uniform Resource Locator which is used to point a resource (file or, directory or a reference) in the world wide web. The openStream() method of this class ...
[ { "code": null, "e": 1175, "s": 1062, "text": "You can read the contents of a web page in several ways using Java. Here, we are going to discuss three of them." }, { "code": null, "e": 1344, "s": 1175, "text": "The URL class of the java.net package represents a Uniform Resource L...
YAML - Block Styles
YAML includes two block scalar styles: literal and folded. Block scalars are controlled with few indicators with a header preceding the content itself. An example of block scalar headers is given below βˆ’ %YAML 1.2 --- !!seq [ !!str "literal\n", !!str "Β·folded\n", !!str "keep\n\n", !!str "Β·strip", ] The outp...
[ { "code": null, "e": 2252, "s": 2048, "text": "YAML includes two block scalar styles: literal and folded. Block scalars are controlled with few indicators with a header preceding the content itself. An example of block scalar headers is given below βˆ’" }, { "code": null, "e": 2360, "s...
Compare and Find Differences Between Two Tables in SQL - GeeksforGeeks
23 Apr, 2021 Structured Query Language or SQL is a standard Database language that is used to create, maintain and retrieve the data from relational databases like MySQL, Oracle, etc. Here we are going to see how to Compare and Find Differences Between Two Tables in SQL Here, we will first create a database named β€œgeek...
[ { "code": null, "e": 23877, "s": 23849, "text": "\n23 Apr, 2021" }, { "code": null, "e": 24135, "s": 23877, "text": "Structured Query Language or SQL is a standard Database language that is used to create, maintain and retrieve the data from relational databases like MySQL, Oracl...
Four major chronic diseases and premature mortality | by Daniel Wu | Towards Data Science
In part 2 of our CDC Chronic Disease indicator dataset, our analysis revealed several areas with highly correlated interrelationships β€” indicators within the cardiovascular disease, chronic kidney disease, diabetes, and select indicators in the overarching conditions β€œsocial determinants” category. While there are also...
[ { "code": null, "e": 635, "s": 171, "text": "In part 2 of our CDC Chronic Disease indicator dataset, our analysis revealed several areas with highly correlated interrelationships β€” indicators within the cardiovascular disease, chronic kidney disease, diabetes, and select indicators in the overarchin...
Get the range of elements in a C# list
Use the GetRange() method to get the range of elements βˆ’ Firstly, set a list and add elements βˆ’ List<int> arr1 = new List<int>(); arr1.Add(10); arr1.Add(20); arr1.Add(30); arr1.Add(40); arr1.Add(50); Now, under a new list get the range of elements between index 1 and 3 βˆ’ List<int> myList = arr1.GetRange(1, 3); Here is ...
[ { "code": null, "e": 1119, "s": 1062, "text": "Use the GetRange() method to get the range of elements βˆ’" }, { "code": null, "e": 1158, "s": 1119, "text": "Firstly, set a list and add elements βˆ’" }, { "code": null, "e": 1262, "s": 1158, "text": "List<int> arr1 ...
Angular 6 - Routing
Routing basically means navigating between pages. You have seen many sites with links that direct you to a new page. This can be achieved using routing. Here the pages that we are referring to will be in the form of components. We have already seen how to create a component. Let us now create a component and see how to...
[ { "code": null, "e": 2337, "s": 1995, "text": "Routing basically means navigating between pages. You have seen many sites with links that direct you to a new page. This can be achieved using routing. Here the pages that we are referring to will be in the form of components. We have already seen how ...
Sending message through WhatsApp in android?
This example demonstrate about sending message through WhatsApp 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"?> <LinearL...
[ { "code": null, "e": 1137, "s": 1062, "text": "This example demonstrate about sending message through WhatsApp in android" }, { "code": null, "e": 1266, "s": 1137, "text": "Step 1 βˆ’ Create a new project in Android Studio, go to File β‡’ New Project and fill all required details to ...
How to handle Java Array Index Out of Bounds Exception?
Generally, an array is of fixed size and each element is accessed using the indices. For example, we have created an array with size 9. Then the valid expressions to access the elements of this array will be a[0] to a[8] (length-1). Whenever you used an –ve value or, the value greater than or equal to the size of the a...
[ { "code": null, "e": 1295, "s": 1062, "text": "Generally, an array is of fixed size and each element is accessed using the indices. For example, we have created an array with size 9. Then the valid expressions to access the elements of this array will be a[0] to a[8] (length-1)." }, { "code"...
How To Set Up Multiple SSL Host With A Single Apache Server
In this article, we will show you how to set up multiple SSL Certificates on a CentOS with Apache using a single IP address only. In general, a website administrator is restricted to use a single SSL Certificate per socket with an IP which will cost a lot of investment to the company. This restriction may lead them to ...
[ { "code": null, "e": 1524, "s": 1062, "text": "In this article, we will show you how to set up multiple SSL Certificates on a CentOS with Apache using a single IP address only. In general, a website administrator is restricted to use a single SSL Certificate per socket with an IP which will cost a l...
Java Program to count all vowels in a string
Let’s say the following is our string. String str = "!Demo Text!"; To count vowels, loop through each every character and check for any of the vowel i.e. if(c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u') { ++vowelsCount; } The variable β€œvowelsCount” will give the count of all vowels. Live Demo public class ...
[ { "code": null, "e": 1101, "s": 1062, "text": "Let’s say the following is our string." }, { "code": null, "e": 1129, "s": 1101, "text": "String str = \"!Demo Text!\";" }, { "code": null, "e": 1216, "s": 1129, "text": "To count vowels, loop through each every c...
Python Tricks for Competitive Coding
Python is one of the preferred languages among coders for most of the competitive programming challenges. Most of the problems are easily computed in a reasonable time frame using python. For some of the complex problem, writing fast-enough python code is often a challenge. Below are some of the pythonic code construct...
[ { "code": null, "e": 1250, "s": 1062, "text": "Python is one of the preferred languages among coders for most of the competitive programming challenges. Most of the problems are easily computed in a reasonable time frame using python." }, { "code": null, "e": 1458, "s": 1250, "te...
Check if a directory is not empty in Java
The method java.io.File.list() is used to obtain the list of the files and directories in the specified directory defined by its path name. This list of files is stored in a string array. If the length of this string array is greater than 0, then the specified directory is not empty. Otherwise, it is empty. A program t...
[ { "code": null, "e": 1371, "s": 1062, "text": "The method java.io.File.list() is used to obtain the list of the files and directories in the specified directory defined by its path name. This list of files is stored in a string array. If the length of this string array is greater than 0, then the sp...
3-way comparison operator (Space Ship Operator) in C++ 20 - GeeksforGeeks
24 Nov, 2020 The three-way comparison operator β€œ<=>” is called a spaceship operator. The spaceship operator determines for two objects A and B whether A < B, A = B, or A > B. The spaceship operator or the compiler can auto-generate it for us. Also, a three-way comparison is a function that will give the entire relation...
[ { "code": null, "e": 24342, "s": 24314, "text": "\n24 Nov, 2020" }, { "code": null, "e": 24763, "s": 24342, "text": "The three-way comparison operator β€œ<=>” is called a spaceship operator. The spaceship operator determines for two objects A and B whether A < B, A = B, or A > B. T...
Dynamic Connectivity | Set 1 (Incremental) - GeeksforGeeks
11 Mar, 2022 Dynamic connectivity is a data structure that dynamically maintains the information about the connected components of graph. In simple words suppose there is a graph G(V, E) in which no. of vertices V is constant but no. of edges E is variable. There are three ways in which we can change the number of edge...
[ { "code": null, "e": 24853, "s": 24825, "text": "\n11 Mar, 2022" }, { "code": null, "e": 25163, "s": 24853, "text": "Dynamic connectivity is a data structure that dynamically maintains the information about the connected components of graph. In simple words suppose there is a gra...
Python - Data Aggregation
Python has several methods are available to perform aggregations on data. It is done using the pandas and numpy libraries. The data must be available or converted to a dataframe to apply the aggregation functions. Let us create a DataFrame and apply aggregations on it. import pandas as pd import numpy as np df = pd.D...
[ { "code": null, "e": 2744, "s": 2529, "text": "Python has several methods are available to perform aggregations on data. It is done using the pandas and numpy libraries. The data must be available or converted to \na dataframe to apply the aggregation functions." }, { "code": null, "e": ...
Tryit Editor v3.7
Tryit: Audio with autoplay
[]
How to match multiple criteria inside an array with MongoDB?
To match multiple criteria inside an array, use aggregate(). Let us create a collection with documents βˆ’ > db.demo84.insertOne({ ... "EmployeeDetails": [ ... {Name: 'John', Salary:45000, isMarried: true}, ... {Name: 'Chris', Salary:50000, isMarried: false} ... ] ... } ... ); { "acknowledged" ...
[ { "code": null, "e": 1167, "s": 1062, "text": "To match multiple criteria inside an array, use aggregate(). Let us create a collection with documents βˆ’" }, { "code": null, "e": 1725, "s": 1167, "text": "> db.demo84.insertOne({\n... \"EmployeeDetails\": [\n... {Name: 'Joh...
Explain the basics of scikit-learn library in Python?
Scikit-learn, commonly known as sklearn is a library in Python that is used for the purpose of implementing machine learning algorithms. It is an open-source library hence it can be used free of cost. Powerful and robust, since it provides a wide variety of tools to perform statistical modelling. This includes classifi...
[ { "code": null, "e": 1199, "s": 1062, "text": "Scikit-learn, commonly known as sklearn is a library in Python that is used for the purpose of implementing machine learning algorithms." }, { "code": null, "e": 1579, "s": 1199, "text": "It is an open-source library hence it can be ...
Material - Notification Icons
This chapter explains the usage of Google's (Material) Notification icons. Assume that custom is the CSS class name where we defined the size and color, as shown in the example given below. <!DOCTYPE html> <html> <head> <link href = "https://fonts.googleapis.com/icon?family=Material+Icons" rel = "stylesheet"> ...
[ { "code": null, "e": 2756, "s": 2566, "text": "This chapter explains the usage of Google's (Material) Notification icons. Assume that custom is the CSS class name where we defined the size and color, as shown in the example given below." }, { "code": null, "e": 3074, "s": 2756, "...
JUnit - Test Framework
JUnit is a Regression Testing Framework used by developers to implement unit testing in Java, and accelerate programming speed and increase the quality of code. JUnit Framework can be easily integrated with either of the following βˆ’ Eclipse Ant Maven JUnit test framework provides the following important features βˆ’ Fixt...
[ { "code": null, "e": 2205, "s": 1972, "text": "JUnit is a Regression Testing Framework used by developers to implement unit testing in Java, and accelerate programming speed and increase the quality of code. JUnit Framework can be easily integrated with either of the following βˆ’" }, { "code"...
Building a k-Nearest-Neighbors (k-NN) Model with Scikit-learn | by Eijaz Allibhai | Towards Data Science
k-Nearest-Neighbors (k-NN) is a supervised machine learning model. Supervised learning is when a model learns from data that is already labeled. A supervised learning model takes in a set of input objects and output values. The model then trains on that data to learn how to map the inputs to the desired output so it ca...
[ { "code": null, "e": 411, "s": 47, "text": "k-Nearest-Neighbors (k-NN) is a supervised machine learning model. Supervised learning is when a model learns from data that is already labeled. A supervised learning model takes in a set of input objects and output values. The model then trains on that da...
Maximum Subarray in Python
Suppose we have an integer array A. We have to find the contiguous subarrays which length will be at least one, and that has the largest sum, and also return its sum. So if the array A is like A = [-2,1,-3,4,-1,2,1,-5,4], then the sum will be 6. And the subarray will be [4, -1, 2, 1] To solve this we will try to use th...
[ { "code": null, "e": 1347, "s": 1062, "text": "Suppose we have an integer array A. We have to find the contiguous subarrays which length will be at least one, and that has the largest sum, and also return its sum. So if the array A is like A = [-2,1,-3,4,-1,2,1,-5,4], then the sum will be 6. And the...
Text to Image. This article will explain an... | by Connor Shorten | Towards Data Science
This article will explain the experiments and theory behind an interesting paper that converts natural language text descriptions such as β€œA small bird has a short, point orange beak and white belly” into 64x64 RGB images. Following is a link to the paper β€œGenerative Adversarial Text to Image Synthesis” from Reed et al...
[ { "code": null, "e": 494, "s": 172, "text": "This article will explain the experiments and theory behind an interesting paper that converts natural language text descriptions such as β€œA small bird has a short, point orange beak and white belly” into 64x64 RGB images. Following is a link to the paper...
How to use a click() method in Selenium with python?
While working on an application and navigating to different pages or different sections of a page, we need to click on various UI elements on a page like a link or a button. All these are performed with the help of click() method. Thus a click() method typically works with elements like buttons and links. driver.find_e...
[ { "code": null, "e": 1293, "s": 1062, "text": "While working on an application and navigating to different pages or different sections of a page, we need to click on various UI elements on a page like a link or a button. All these are performed with the help of click() method." }, { "code": ...
Fantasy Football Data Analysis | Anish Kasam | Towards Data Science
With the 2020–2021 NFL fantasy football season about to come to a close, I was inspired to analyze data from the past few years: Before I start jumping into the data analysis, here’s a summary of fantasy football so we are all on the same page: To play fantasy football, you need to create or join a league on one of man...
[ { "code": null, "e": 301, "s": 172, "text": "With the 2020–2021 NFL fantasy football season about to come to a close, I was inspired to analyze data from the past few years:" }, { "code": null, "e": 417, "s": 301, "text": "Before I start jumping into the data analysis, here’s a s...
Set Up Virtual Environment in Julia With Playground.jl | by Emmett Boudreau | Towards Data Science
There are over a billion reasons why you would want to use a virtual environment when working on a project in any language, and that sentiment is no different in Julia. Developing web-apps can be catastrophic when working with a team without a virtual environment. Fortunately, Julia has a package virtualization tool eq...
[ { "code": null, "e": 540, "s": 171, "text": "There are over a billion reasons why you would want to use a virtual environment when working on a project in any language, and that sentiment is no different in Julia. Developing web-apps can be catastrophic when working with a team without a virtual env...
Program to find leaf and non-leaf nodes of a binary tree in Python
Suppose we have a binary tree, we have to find a list of two numbers where the first number is the count of leaves in the tree and the second number is the count of non-leaf nodes. So, if the input is like then the output will be (3, 2), as there are 3 leaves and 2 non-leaf nodes. To solve this, we will follow these st...
[ { "code": null, "e": 1243, "s": 1062, "text": "Suppose we have a binary tree, we have to find a list of two numbers where the first number is the count of leaves in the tree and the second number is the count of non-leaf nodes." }, { "code": null, "e": 1268, "s": 1243, "text": "S...
Detecting the first non-repeating string in Array in JavaScript
Suppose, we have an array of strings like this where strings might contain duplicate characters βˆ’ const arr = ['54gdgdfe3', '434ffd', '43frdf', '43fdhnh', 'wgcxhjny', 'fsdf34']; We are required to write a JavaScript function that takes in one such array and returns the very first element from the array that contains 0 ...
[ { "code": null, "e": 1160, "s": 1062, "text": "Suppose, we have an array of strings like this where strings might contain duplicate characters βˆ’" }, { "code": null, "e": 1240, "s": 1160, "text": "const arr = ['54gdgdfe3', '434ffd', '43frdf', '43fdhnh', 'wgcxhjny', 'fsdf34'];" }...
Master the art of subplots in Python | by Ankit Gupta | Towards Data Science
Often while working with data, no matter big or small, sometimes you want to compare things side-by-side or plot different attributes or features individually. In such cases, a single figure is rendered insufficient. Thus, you need to know the art of working with subplots. This article will focus on the concept of subp...
[ { "code": null, "e": 446, "s": 172, "text": "Often while working with data, no matter big or small, sometimes you want to compare things side-by-side or plot different attributes or features individually. In such cases, a single figure is rendered insufficient. Thus, you need to know the art of work...
GANfolk: Using AI to Create Portraits for NFTs | Towards Data Science
I have previously written on Medium about using AI to create visual art, like abstract paintings and landscapes. During my research, I noticed that Generative Adversarial Networks (GANs) seem to have a hard time creating images of people. I decided to take this challenge [ahem] head-on, so I trained two GANs using pain...
[ { "code": null, "e": 601, "s": 166, "text": "I have previously written on Medium about using AI to create visual art, like abstract paintings and landscapes. During my research, I noticed that Generative Adversarial Networks (GANs) seem to have a hard time creating images of people. I decided to tak...
Java - String regionMatches() Method
This method has two variants which can be used to test if two string regions are equal. Here is the syntax of this method βˆ’ public boolean regionMatches(int toffset, String other, int ooffset, int len) Here is the detail of paramet...
[ { "code": null, "e": 2465, "s": 2377, "text": "This method has two variants which can be used to test if two string regions are equal." }, { "code": null, "e": 2502, "s": 2465, "text": "Here is the syntax of this method βˆ’" }, { "code": null, "e": 2668, "s": 2502,...
Searching characters in a String in Java.
You can search for a particular letter in a string using the indexOf() method of the String class. This method which returns a position index of a word within the string if found. Otherwise it returns -1. public class Test { public static void main(String args[]) { String str = new String("hi welcome to Tutori...
[ { "code": null, "e": 1267, "s": 1062, "text": "You can search for a particular letter in a string using the indexOf() method of the String class. This method which returns a position index of a word within the string if found. Otherwise it returns -1." }, { "code": null, "e": 1498, "...
Deploy a Machine Learning Model using Streamlit Library - GeeksforGeeks
02 Sep, 2020 Machine Learning:A computer is able to learn from experience without being explicitly programmed. Machine Learning is one of the top fields to enter currently and top companies all over the world are using it for improving their services and products. But there is no use of a Machine Learning model which i...
[ { "code": null, "e": 25002, "s": 24974, "text": "\n02 Sep, 2020" }, { "code": null, "e": 25591, "s": 25002, "text": "Machine Learning:A computer is able to learn from experience without being explicitly programmed. Machine Learning is one of the top fields to enter currently and ...
How to Convert PDF to Image in Linux Command Line? - GeeksforGeeks
25 Mar, 2021 Pdftoppm is a tool that converts PDF document files into .PNG format and many other formats. We can use this tool on Linux to convert the PDF into images. It also provides the features like the cropping image, set resolution, and scale, and many more. Now let’s see how to install the pdftoppm To install th...
[ { "code": null, "e": 24561, "s": 24533, "text": "\n25 Mar, 2021" }, { "code": null, "e": 24855, "s": 24561, "text": "Pdftoppm is a tool that converts PDF document files into .PNG format and many other formats. We can use this tool on Linux to convert the PDF into images. It also ...
Auto-Forecasting in Python with ThymeBoost | by Tyler Blume | Towards Data Science
TLDR: When comparing ThymeBoost to a few other popular time-series methods, we find that it can generate very competitive forecasts. Spoiler warning: ThymeBoost wins. But beyond winning, we see that there are many benefits of the ThymeBoost framework, even in the cases where it loses. For more examples you can view the...
[ { "code": null, "e": 458, "s": 172, "text": "TLDR: When comparing ThymeBoost to a few other popular time-series methods, we find that it can generate very competitive forecasts. Spoiler warning: ThymeBoost wins. But beyond winning, we see that there are many benefits of the ThymeBoost framework, eve...
How to Easily Set Up M1 MacBooks for Data Science and Machine Learning | by Dario Radečić | Towards Data Science
Configuring M1 Macs for data science can be a pain in the bottom. You can either go with the simpler option and run everything under Rosseta, or install dependencies manually like a madman and face a never-ending log of error messages. The first option is fine, but Python won’t run natively, so some performance is lost...
[ { "code": null, "e": 408, "s": 172, "text": "Configuring M1 Macs for data science can be a pain in the bottom. You can either go with the simpler option and run everything under Rosseta, or install dependencies manually like a madman and face a never-ending log of error messages." }, { "code...
Hidden Cost of ERP Implementation - GeeksforGeeks
25 Nov, 2020 Hidden Cost behind ERP Implementation is a common pressure point in Companies while implementing an ERP System. The ERP Selection team have met with various vendors, analyze various factors and then done with Selection Part and then ERP creating , analyzing flaws , Implementing , Removing Flaws and finaliz...
[ { "code": null, "e": 24868, "s": 24840, "text": "\n25 Nov, 2020" }, { "code": null, "e": 24980, "s": 24868, "text": "Hidden Cost behind ERP Implementation is a common pressure point in Companies while implementing an ERP System." }, { "code": null, "e": 25340, "s"...
C# Program to get the difference between two dates
Use DateTime.Subtract to get the difference between two dates in C#. Firstly, set two dates βˆ’ DateTime date1 = new DateTime(2018, 8, 27); DateTime date2 = new DateTime(2018, 8, 28); Use the Subtract method to get the difference βˆ’ TimeSpan t = date2.Subtract(date1); The following is the complete code βˆ’ Live Demo using ...
[ { "code": null, "e": 1131, "s": 1062, "text": "Use DateTime.Subtract to get the difference between two dates in C#." }, { "code": null, "e": 1156, "s": 1131, "text": "Firstly, set two dates βˆ’" }, { "code": null, "e": 1244, "s": 1156, "text": "DateTime date1 = ...
Python - Tkinter Toplevel
Toplevel widgets work as windows that are directly managed by the window manager. They do not necessarily have a parent widget on top of them. Your application can use any number of top-level windows. Here is the simple syntax to create this widget βˆ’ w = Toplevel ( option, ... ) options βˆ’ Here is the list of most comm...
[ { "code": null, "e": 2387, "s": 2244, "text": "Toplevel widgets work as windows that are directly managed by the window manager. They do not necessarily have a parent widget on top of them." }, { "code": null, "e": 2445, "s": 2387, "text": "Your application can use any number of ...
Python, Memory, and Objects. The basics of memory management for... | by Naser Tamimi | Towards Data Science
As data scientists, normally, we don’t pay attention to how Python and the underlying operating system handle memory for our code. After all, Python is the most popular language among data scientists, partly because it automatically handles those details. As long as we are working on small datasets, ignoring how Python...
[ { "code": null, "e": 730, "s": 171, "text": "As data scientists, normally, we don’t pay attention to how Python and the underlying operating system handle memory for our code. After all, Python is the most popular language among data scientists, partly because it automatically handles those details....
K-Palindrome | Practice | GeeksforGeeks
Given a string str of length n, find if the string is K-Palindrome or not. A k-palindrome string transforms into a palindrome on removing at most k characters from it. Example 1: Input: str = "abcdecba" n = 8, k = 1 Output: 1 Explaination: By removing 'd' or 'e' we can make it a palindrome. Example 2: Input: str = "...
[ { "code": null, "e": 406, "s": 238, "text": "Given a string str of length n, find if the string is K-Palindrome or not. A k-palindrome string transforms into a palindrome on removing at most k characters from it." }, { "code": null, "e": 418, "s": 406, "text": "\nExample 1:" },...
Convert PyMongo Cursor to JSON - GeeksforGeeks
26 May, 2020 Prerequisites: MongoDB Python Basics This article is about converting the PyMongo Cursor to JSON. Functions like find() and find_one() returns the Cursor instance. Let’s begin: Importing Required Modules: Import the required module using the command:from pymongo import MongoClient from bson.json_util impor...
[ { "code": null, "e": 24901, "s": 24873, "text": "\n26 May, 2020" }, { "code": null, "e": 24938, "s": 24901, "text": "Prerequisites: MongoDB Python Basics" }, { "code": null, "e": 25065, "s": 24938, "text": "This article is about converting the PyMongo Cursor t...
Deep count of elements of an array using JavaScript
We are required to write a JavaScript function that takes in a nested array of element and return the deep count of elements present in the array. Input const arr = [1, 2, [3, 4, [5]]]; Output const output = 7; Because the elements at level 1 are 2, elements at level 2 are 2 and elements at level 3 are 1, Hence the dee...
[ { "code": null, "e": 1209, "s": 1062, "text": "We are required to write a JavaScript function that takes in a nested array of element and return the deep count of elements present in the array." }, { "code": null, "e": 1215, "s": 1209, "text": "Input" }, { "code": null, ...
How to produce group subtotals and a grand total in Oracle?
Problem Statement:You want to find out totals, subtotals and a grand total in Oracle. Solution:Oracle ROLLUP function performs grouping at multiple levels, using a right to left method of rolling up through intermediate levels to any grand total. To demonstrate the ROLLUP function we will create a table to hold tennis ...
[ { "code": null, "e": 1148, "s": 1062, "text": "Problem Statement:You want to find out totals, subtotals and a grand total in Oracle." }, { "code": null, "e": 1465, "s": 1148, "text": "Solution:Oracle ROLLUP function performs grouping at multiple levels, using a right to left meth...
How to convert a Map to JSON object using JSON-lib API in Java?
A JSONObject is an unordered collection of name/value pairs whereas Map is an object that maps keys to values. A Map cannot contain duplicate keys and each key can map to at most one value. We need to use the JSON-lib library for serializing and de-serializing a Map in JSON format. Initially, we can create a POJO class...
[ { "code": null, "e": 1533, "s": 1062, "text": "A JSONObject is an unordered collection of name/value pairs whereas Map is an object that maps keys to values. A Map cannot contain duplicate keys and each key can map to at most one value. We need to use the JSON-lib library for serializing and de-seri...
SAP Web Dynpro - Creating an Application
To create a Web Dynpro application, we will create a Web Dynpro component that consists of one view. We will create a view context β†’ linked to a table element on the view layout and contains the data from the table. The table will be shown in the browser at runtime. A Web Dynpro application for this simple Web Dynpro c...
[ { "code": null, "e": 2395, "s": 2179, "text": "To create a Web Dynpro application, we will create a Web Dynpro component that consists of one view. We will create a view context β†’ linked to a table element on the view layout and contains the data from the table." }, { "code": null, "e": ...
Redis - String Getrange Command
Redis GETRANGE command is used to get the substring of the string value stored at the key, determined by the offsets start and end (both are inclusive). Negative offsets can be used in order to provide an offset starting from the end of the string. The function handles out of range requests by limiting the resulting ra...
[ { "code": null, "e": 2294, "s": 2045, "text": "Redis GETRANGE command is used to get the substring of the string value stored at the key, determined by the offsets start and end (both are inclusive). Negative offsets can be used in order to provide an offset starting from the end of the string." }...
BigDecimal add() Method in Java with Examples - GeeksforGeeks
27 May, 2019 The java.math.BigDecimal.add(BigDecimal val) is used to calculate the Arithmetic sum of two BigDecimals. This method is used to find arithmetic addition of large numbers of range much greater than the range of largest data type double of Java without compromising with the precision of the result. This meth...
[ { "code": null, "e": 24418, "s": 24390, "text": "\n27 May, 2019" }, { "code": null, "e": 24853, "s": 24418, "text": "The java.math.BigDecimal.add(BigDecimal val) is used to calculate the Arithmetic sum of two BigDecimals. This method is used to find arithmetic addition of large n...
GATE | GATE-CS-2015 (Set 1) | Question 65 - GeeksforGeeks
28 Jun, 2021 Consider a disk pack with a seek time of 4 milliseconds and rotational speed of 10000 rotations per minute (RPM). It has 600 sectors per track and each sector can store 512 bytes of data. Consider a file stored in the disk. The file contains 2000 sectors. Assume that every sector access necessitates a seek...
[ { "code": null, "e": 24604, "s": 24576, "text": "\n28 Jun, 2021" }, { "code": null, "e": 25158, "s": 24604, "text": "Consider a disk pack with a seek time of 4 milliseconds and rotational speed of 10000 rotations per minute (RPM). It has 600 sectors per track and each sector can ...
The Hitchhikers guide to handle Big Data using Spark | by Rahul Agarwal | Towards Data Science
Big Data has become synonymous with Data engineering. But the line between Data Engineering and Data scientists is blurring day by day. At this point in time, I think that Big Data must be in the repertoire of all data scientists. Reason: Too much data is getting generated day by day And that brings us to Spark. Now mo...
[ { "code": null, "e": 225, "s": 171, "text": "Big Data has become synonymous with Data engineering." }, { "code": null, "e": 307, "s": 225, "text": "But the line between Data Engineering and Data scientists is blurring day by day." }, { "code": null, "e": 402, "s":...
The 5 discrete distributions every Data Scientist should know | by Rahul Agarwal | Towards Data Science
Distributions play an essential role in the life of every Data Scientist. Now coming from a non-statistical background, distributions always come across as something mystical to me. And the fact is that there are a lot of them. So which ones should I know? And how do I know and understand them? This post is about some ...
[ { "code": null, "e": 246, "s": 172, "text": "Distributions play an essential role in the life of every Data Scientist." }, { "code": null, "e": 354, "s": 246, "text": "Now coming from a non-statistical background, distributions always come across as something mystical to me." }...
Find the prime numbers which can written as sum of most consecutive primes - GeeksforGeeks
11 Oct, 2021 Given an array of limits. For every limit, find the prime number which can be written as the sum of the most consecutive primes smaller than or equal to limit.The maximum possible value of a limit is 10^4. Example: Input : arr[] = {10, 30} Output : 5, 17 Explanation : There are two limit values 10 and 30...
[ { "code": null, "e": 25008, "s": 24980, "text": "\n11 Oct, 2021" }, { "code": null, "e": 25214, "s": 25008, "text": "Given an array of limits. For every limit, find the prime number which can be written as the sum of the most consecutive primes smaller than or equal to limit.The ...
apply() vs map() vs applymap() in Pandas | Towards Data Science
Usually, we need to apply certain functions over DataFrame columns or rows in order to either update values or even create new columns. The most commonly used operations for doing so in pandas, are apply, map and applymap methods. In today’s guide we are going to explore all three methods and understand how each of the...
[ { "code": null, "e": 402, "s": 171, "text": "Usually, we need to apply certain functions over DataFrame columns or rows in order to either update values or even create new columns. The most commonly used operations for doing so in pandas, are apply, map and applymap methods." }, { "code": nu...
String Data Structure - GeeksforGeeks
16 Jul, 2021 Strings are defined as an array of characters. The difference between a character array and a string is the string is terminated with a special character β€˜\0’. Declaring a string is as simple as declaring a one dimensional array. Below is the basic syntax for declaring a string in C programming language. c...
[ { "code": null, "e": 27219, "s": 27191, "text": "\n16 Jul, 2021" }, { "code": null, "e": 27379, "s": 27219, "text": "Strings are defined as an array of characters. The difference between a character array and a string is the string is terminated with a special character β€˜\\0’." ...
CSS - Fade In Down Effect
The image come or cause to come gradually into or out of view, or to merge into another shot. @keyframes fadeInDown { 0% { opacity: 0; transform: translateY(-20px); } 100% { opacity: 1; transform: translateY(0); } } Transform βˆ’ Transform applies to 2d and 3d transformation to an ele...
[ { "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": 2879, "s": 2720, "text": "@keyframes fadeInDown {\n 0% {\n opacity: 0;\n transform: translateY(-20px);...
Can we call a method on "this" keyword from a constructor in java?
The β€œthis ” keyword in Java is used as a reference to the current object, with in an instance method or a constructor. Using this you can refer the members of a class such as constructors, variables and methods. Yes, as mentioned we can call all the members of a class (methods, variables, and constructors) from instanc...
[ { "code": null, "e": 1274, "s": 1062, "text": "The β€œthis ” keyword in Java is used as a reference to the current object, with in an instance method or a constructor. Using this you can refer the members of a class such as constructors, variables and methods." }, { "code": null, "e": 1410...
Demystifying β€˜Confusion Matrix’ Confusion | by SalRite | Towards Data Science
If you are Confused about Confusion Matrix, then I hope this post may help you understand it! Happy Reading. We will use the UCI Bank Note Authentication Dataset for demystifying the confusion behind Confusion Matrix. We will predict and evaluate our model, and along the way develop our conceptual understanding. Also w...
[ { "code": null, "e": 281, "s": 172, "text": "If you are Confused about Confusion Matrix, then I hope this post may help you understand it! Happy Reading." }, { "code": null, "e": 557, "s": 281, "text": "We will use the UCI Bank Note Authentication Dataset for demystifying the con...
How to include CDN Based Version of jQuery in my HTML file?
Easily include jQuery library into your HTML code directly from Content Delivery Network (CDN). Google and Microsoft provide content delivery for the latest version. You can try to run the following code to learn how to use Google CDN for jQuery: Live Demo <html> <head> <title>jQuery CDN</title> <script ...
[ { "code": null, "e": 1228, "s": 1062, "text": "Easily include jQuery library into your HTML code directly from Content Delivery Network (CDN). Google and Microsoft provide content delivery for the latest version." }, { "code": null, "e": 1309, "s": 1228, "text": "You can try to r...
Nth catalan number | Practice | GeeksforGeeks
Given a number N. The task is to find the Nth catalan number. The first few Catalan numbers for N = 0, 1, 2, 3, ... are 1, 1, 2, 5, 14, 42, 132, 429, 1430, 4862, ... Note: Positions start from 0 as shown above. Example 1: Input: N = 5 Output: 42 Example 2: Input: N = 4 Output: 14 Your Task: Complete findCatalan() func...
[ { "code": null, "e": 449, "s": 238, "text": "Given a number N. The task is to find the Nth catalan number.\nThe first few Catalan numbers for N = 0, 1, 2, 3, ... are 1, 1, 2, 5, 14, 42, 132, 429, 1430, 4862, ...\nNote: Positions start from 0 as shown above." }, { "code": null, "e": 460, ...
Python | Image Classification using Keras
13 May, 2022 Image classification is a method to classify way images into their respective category classes using some methods like : Training a small network from scratch Fine-tuning the top layers of the model using VGG16 Let’s discuss how to train the model from scratch and classify the data containing cars and pl...
[ { "code": null, "e": 54, "s": 26, "text": "\n13 May, 2022" }, { "code": null, "e": 177, "s": 54, "text": "Image classification is a method to classify way images into their respective category classes using some methods like : " }, { "code": null, "e": 215, "s": ...
Introduction of Parallel Database
17 Mar, 2021 In this article, we will discuss the overview of Parallel Databases and then will emphasize their needs and advantages, and then finally, will cover the performance measurement factor-like Speedup and Scale-up with examples. Let’s discuss it one by one. Parallel Databases :Nowadays organizations need to ha...
[ { "code": null, "e": 52, "s": 24, "text": "\n17 Mar, 2021" }, { "code": null, "e": 306, "s": 52, "text": "In this article, we will discuss the overview of Parallel Databases and then will emphasize their needs and advantages, and then finally, will cover the performance measureme...
Matplotlib.figure.Figure.set_edgecolor() in Python
03 May, 2020 Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. The figure module provides the top-level Artist, the Figure, which contains all the plot elements. This module is used to control the default spacing of the subplots and top level container for all plot elemen...
[ { "code": null, "e": 28, "s": 0, "text": "\n03 May, 2020" }, { "code": null, "e": 339, "s": 28, "text": "Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. The figure module provides the top-level Artist, the Figure, which contains a...
C++ Installation on MacBook M1 for VS Code
12 Mar, 2021 This article is written on CPP installation for the latest MacBook M1 processor. It’s not like we can’t do CPP programming in the latest MacBook, there is Xcode which is a substitute for other code editors. But still many of the developers like to code on Visual Studio. So let’s start with this installati...
[ { "code": null, "e": 54, "s": 26, "text": "\n12 Mar, 2021" }, { "code": null, "e": 326, "s": 54, "text": "This article is written on CPP installation for the latest MacBook M1 processor. It’s not like we can’t do CPP programming in the latest MacBook, there is Xcode which is a s...
PostgreSQL - WITH Clause
In PostgreSQL, the WITH query provides a way to write auxiliary statements for use in a larger query. It helps in breaking down complicated and large queries into simpler forms, which are easily readable. These statements often referred to as Common Table Expressions or CTEs, can be thought of as defining temporary tab...
[ { "code": null, "e": 3314, "s": 2959, "text": "In PostgreSQL, the WITH query provides a way to write auxiliary statements for use in a larger query. It helps in breaking down complicated and large queries into simpler forms, which are easily readable. These statements often referred to as Common Tab...
Remove uppercase, lowercase, special, numeric, and non-numeric characters from a String
03 Nov, 2021 Given string str of length N, the task is to remove uppercase, lowercase, special, numeric, and non-numeric characters from this string and print the string after the simultaneous modifications. Examples: Input: str = β€œGFGgfg123$%” Output: After removing uppercase characters: gfg123$% After re...
[ { "code": null, "e": 54, "s": 26, "text": "\n03 Nov, 2021" }, { "code": null, "e": 249, "s": 54, "text": "Given string str of length N, the task is to remove uppercase, lowercase, special, numeric, and non-numeric characters from this string and print the string after the simulta...
Max Heap in Java
11 Jun, 2022 A max-heap is a complete binary tree in which the value in each internal node is greater than or equal to the values in the children of that node. Mapping the elements of a heap into an array is trivial: if a node is stored an index k, then its left child is stored at index 2k + 1 and its right child at in...
[ { "code": null, "e": 54, "s": 26, "text": "\n11 Jun, 2022" }, { "code": null, "e": 373, "s": 54, "text": "A max-heap is a complete binary tree in which the value in each internal node is greater than or equal to the values in the children of that node. Mapping the elements of a h...
JP Morgan Chase Interview Experience (Python Developer)
30 Jul, 2021 Round 1 (Technical Round): I started with the introduction. Few questions asked on the skills that were mentioned in the introduction. As I had mentioned the celery in my resume, Interviewer asked about the use cases, their implementation, and the broker used while implementing celery. Difference between ...
[ { "code": null, "e": 28, "s": 0, "text": "\n30 Jul, 2021" }, { "code": null, "e": 164, "s": 28, "text": "Round 1 (Technical Round): I started with the introduction. Few questions asked on the skills that were mentioned in the introduction. " }, { "code": null, "e": 31...
Java | MIDI Introduction
02 Jul, 2021 The Musical Instrument Digital Interface (MIDI) standard defines a communication protocol for electronic music devices, such as electronic keyboard instruments and personal computers. MIDI data can be transmitted over special cables during a live performance, and can also be stored in a standard type of fi...
[ { "code": null, "e": 28, "s": 0, "text": "\n02 Jul, 2021" }, { "code": null, "e": 828, "s": 28, "text": "The Musical Instrument Digital Interface (MIDI) standard defines a communication protocol for electronic music devices, such as electronic keyboard instruments and personal co...
Use Machine Learning to Predict Horse Racing | by Cullen Sun | Towards Data Science
I am a part-time student of master of computer science at HKU. After last semester exams, I was thinking it would be fun and cool to apply machine learning on a real world dataset. It took me no time to find out the great website for machine learning, Kaggle. Kaggle has a lot of interesting datasets for data science st...
[ { "code": null, "e": 353, "s": 172, "text": "I am a part-time student of master of computer science at HKU. After last semester exams, I was thinking it would be fun and cool to apply machine learning on a real world dataset." }, { "code": null, "e": 723, "s": 353, "text": "It to...
Java program to count the number of vowels in a given sentence
To count the number of vowels in a given sentence: Read a sentence from the user Create a variable (count) initialize it with 0; Compare each character in the sentence with the characters {'a', 'e', 'i', 'o', 'u' } If a match occurs increment the count. Finally print count. import java.util.Scanner; public class C...
[ { "code": null, "e": 1113, "s": 1062, "text": "To count the number of vowels in a given sentence:" }, { "code": null, "e": 1144, "s": 1113, "text": " Read a sentence from the user" }, { "code": null, "e": 1193, "s": 1144, "text": " Create a variable (count) in...
How to add hours to the current time in Python? - GeeksforGeeks
29 Dec, 2020 Prerequisites: Datetime module Every minute should be enjoyed and savored. Time is measured by the hours, days, years, and so on. Time helps us to make a good habit of organizing and structuring our daily activities. In this article, we will see how we can extract real-time from a python module. There are ...
[ { "code": null, "e": 24292, "s": 24264, "text": "\n29 Dec, 2020" }, { "code": null, "e": 24323, "s": 24292, "text": "Prerequisites: Datetime module" }, { "code": null, "e": 24975, "s": 24323, "text": "Every minute should be enjoyed and savored. Time is measure...
Resizing images with ImageTk.PhotoImage with Tkinter
The PIL or Pillow library in Python is used for processing images in a Tkinter application. We can use Pillow to open the images, resize them and display in the window. To resize the image, we can use image_resize((width, height) **options) method. The resized image can later be processed and displayed through the labe...
[ { "code": null, "e": 1392, "s": 1062, "text": "The PIL or Pillow library in Python is used for processing images in a Tkinter application. We can use Pillow to open the images, resize them and display in the window. To resize the image, we can use image_resize((width, height) **options) method. The ...
How to Efficiently Remove Punctuations from a String | by Eunjoo Byeon | Towards Data Science
Recently I found myself spending many hours trying to make sense of messy text data, and decided to review some of the preprocessing involved. There are many different ways to achieve a simple cleaning step. Today, I will review a couple of different methods to remove punctuations from a string and compare their perfor...
[ { "code": null, "e": 500, "s": 172, "text": "Recently I found myself spending many hours trying to make sense of messy text data, and decided to review some of the preprocessing involved. There are many different ways to achieve a simple cleaning step. Today, I will review a couple of different meth...
Maximum sum of lengths of non-overlapping subarrays with k as the max element. - GeeksforGeeks
19 Apr, 2022 Find the maximum sum of lengths of non-overlapping subarrays (contiguous elements) with k as the maximum element. Examples: Input : arr[] = {2, 1, 4, 9, 2, 3, 8, 3, 4} k = 4 Output : 5 {2, 1, 4} => Length = 3 {3, 4} => Length = 2 So, 3 + 2 = 5 is the answer Input : arr[] = {1, 2, 3, 2, 3, 4, 1} ...
[ { "code": null, "e": 24949, "s": 24921, "text": "\n19 Apr, 2022" }, { "code": null, "e": 25074, "s": 24949, "text": "Find the maximum sum of lengths of non-overlapping subarrays (contiguous elements) with k as the maximum element. Examples: " }, { "code": null, "e": 2...
Implementing and Analyzing different Activation Functions and Weight Initialization Methods Using Python | by Niranjan Kumar | Towards Data Science
In this post, we will discuss how to implement different combinations of non-linear activation functions and weight initialization methods in python. Also, we will analyze how the choice of activation function and weight initialization method will have an effect on accuracy and the rate at which we reduce our loss in a...
[ { "code": null, "e": 662, "s": 172, "text": "In this post, we will discuss how to implement different combinations of non-linear activation functions and weight initialization methods in python. Also, we will analyze how the choice of activation function and weight initialization method will have an...