title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
How to find the root mean square of a vector in R?
To find the root mean square of a vector we can find the mean of the squared values then take the square root of the resulting vector. This can be done in a single and very short line of code. For example, if we have a vector x and we want to find the root mean square of this vector then it can be done as sqrt(mean(x^2...
[ { "code": null, "e": 1386, "s": 1062, "text": "To find the root mean square of a vector we can find the mean of the squared values then take the square root of the resulting vector. This can be done in a single and very short line of code. For example, if we have a vector x and we want to find the r...
Check if reversing a sub array make the array sorted - GeeksforGeeks
13 Apr, 2021 Given an array of distinct n integers. The task is to check whether reversing one sub-array make the array sorted or not. If the array is already sorted or by reversing a subarray once make it sorted, print “Yes”, else print “No”.Examples: Input : arr [] = {1, 2, 5, 4, 3} Output : Yes By reversing the su...
[ { "code": null, "e": 24891, "s": 24863, "text": "\n13 Apr, 2021" }, { "code": null, "e": 25133, "s": 24891, "text": "Given an array of distinct n integers. The task is to check whether reversing one sub-array make the array sorted or not. If the array is already sorted or by reve...
Product array puzzle | Practice | GeeksforGeeks
Given an array nums[] of size n, construct a Product Array P (of same size n) such that P[i] is equal to the product of all the elements of nums except nums[i]. Example 1: Input: n = 5 nums[] = {10, 3, 5, 6, 2} Output: 180 600 360 300 900 Explanation: For i=0, P[i] = 3*5*6*2 = 180. For i=1, P[i] = 10*5*6*2 = 600. Fo...
[ { "code": null, "e": 399, "s": 238, "text": "Given an array nums[] of size n, construct a Product Array P (of same size n) such that P[i] is equal to the product of all the elements of nums except nums[i]." }, { "code": null, "e": 412, "s": 401, "text": "Example 1:" }, { ...
Get number from user input and display in console with JavaScript
You can use # to get the value when user clicks the button using document.querySelector(“”); Following is the JavaScript code − 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> <link rel="stylesheet" ...
[ { "code": null, "e": 1190, "s": 1062, "text": "You can use # to get the value when user clicks the button using document.querySelector(“”);\nFollowing is the JavaScript code −" }, { "code": null, "e": 1201, "s": 1190, "text": " Live Demo" }, { "code": null, "e": 2349,...
Using Random Forest to tell if you have a representative Validation Set | by Alessandro Kosciansky | Towards Data Science
When running a predictive model — be that during a Kaggle competition or the real world — you need a representative validation set to check whether the model you are training, generalises well — that is, the model can make good predictions on data it has never seen before. So what do I mean by ‘representative’? Well, a...
[ { "code": null, "e": 446, "s": 172, "text": "When running a predictive model — be that during a Kaggle competition or the real world — you need a representative validation set to check whether the model you are training, generalises well — that is, the model can make good predictions on data it has ...
Update data in one table from data in another table in MySQL?
For this, you can use UPDATE command along with JOIN. Let us create the first table − mysql> create table demo54 −> ( −> firstName varchar(20), −> lastName varchar(20) −> ); Query OK, 0 rows affected (0.57 sec) Insert some records into the table with the help of insert command − mysql> insert into demo54 values('John',...
[ { "code": null, "e": 1116, "s": 1062, "text": "For this, you can use UPDATE command along with JOIN." }, { "code": null, "e": 1148, "s": 1116, "text": "Let us create the first table −" }, { "code": null, "e": 1273, "s": 1148, "text": "mysql> create table demo5...
PyQtGraph – Hide the Bar Graph - GeeksforGeeks
25 Sep, 2020 In this article we will see how we can hide the bar graph in the PyQtGraph module. PyQtGraph is a graphics and user interface library for Python that provides functionality commonly required in designing and science applications. Its primary goals are to provide fast, interactive graphics for displaying da...
[ { "code": null, "e": 24228, "s": 24200, "text": "\n25 Sep, 2020" }, { "code": null, "e": 25083, "s": 24228, "text": "In this article we will see how we can hide the bar graph in the PyQtGraph module. PyQtGraph is a graphics and user interface library for Python that provides func...
Cryptography with Python - Affine Cipher
Affine Cipher is the combination of Multiplicative Cipher and Caesar Cipher algorithm. The basic implementation of affine cipher is as shown in the image below − In this chapter, we will implement affine cipher by creating its corresponding class that includes two basic functions for encryption and decryption. You can ...
[ { "code": null, "e": 2454, "s": 2292, "text": "Affine Cipher is the combination of Multiplicative Cipher and Caesar Cipher algorithm. The basic implementation of affine cipher is as shown in the image below −" }, { "code": null, "e": 2604, "s": 2454, "text": "In this chapter, we ...
Check if a given year is leap year in PL/SQL
Here we will see how to check given year is leap year or not, using PL/SQL. In PL/SQL code, some group of commands are arranged within a block of related declaration of statements. The leap year checking algorithm is like below. isLeapYear(year): begin if year is divisible by 4 and not divisible by 100, then i...
[ { "code": null, "e": 1243, "s": 1062, "text": "Here we will see how to check given year is leap year or not, using PL/SQL. In PL/SQL code, some group of commands are arranged within a block of related declaration of statements." }, { "code": null, "e": 1291, "s": 1243, "text": "T...
Interpretable K-Means: Clusters Feature Importances | by Yousef Alghofaili | Towards Data Science
Machine learning models go through many stages for them to be considered production-ready. One critical stage is that moment of truth where the model is given a scientific green light; Model Evaluation. Many evaluation metrics are designated for different purposes and problem specifications, but none of them is flawles...
[ { "code": null, "e": 709, "s": 172, "text": "Machine learning models go through many stages for them to be considered production-ready. One critical stage is that moment of truth where the model is given a scientific green light; Model Evaluation. Many evaluation metrics are designated for different...
What is Is-a relationship in Java?
IS-A is a way of saying: This object is a type of that object. Let us see how the extends keyword is used to achieve inheritance. public class Animal { } public class Mammal extends Animal { } public class Reptile extends Animal { } public class Dog extends Mammal { } Now, based on the above example, in Object-Oriented...
[ { "code": null, "e": 1192, "s": 1062, "text": "IS-A is a way of saying: This object is a type of that object. Let us see how the extends keyword is used to achieve inheritance." }, { "code": null, "e": 1331, "s": 1192, "text": "public class Animal {\n}\npublic class Mammal extend...
Pascal - Continue Statement
The continue statement in Pascal works somewhat like the break statement. Instead of forcing termination, however, continue forces the next iteration of the loop to take place, skipping any code in between. For the for-do loop, continue statement causes the conditional test and increment portions of the loop to execute...
[ { "code": null, "e": 2290, "s": 2083, "text": "The continue statement in Pascal works somewhat like the break statement. Instead of forcing termination, however, continue forces the next iteration of the loop to take place, skipping any code in between." }, { "code": null, "e": 2528, ...
stack empty() and stack size() in C++ STL - GeeksforGeeks
19 Sep, 2018 Stacks are a type of container adaptors with LIFO(Last In First Out) type of working, where a new element is added at one end and (top) an element is removed from that end only. empty() function is used to check if the stack container is empty or not. Syntax : stackname.empty() Parameters : No parameters a...
[ { "code": null, "e": 23732, "s": 23704, "text": "\n19 Sep, 2018" }, { "code": null, "e": 23910, "s": 23732, "text": "Stacks are a type of container adaptors with LIFO(Last In First Out) type of working, where a new element is added at one end and (top) an element is removed from ...
Finding the only unique string in an array using JavaScript
We are required to write a JavaScript function that takes in an array of strings. All the strings in the array contain the same characters, or the repetition of characters, and just one string contains a different set of characters. Our function should find and return that string. For example If the array is − [‘ba’, '...
[ { "code": null, "e": 1344, "s": 1062, "text": "We are required to write a JavaScript function that takes in an array of strings.\nAll the strings in the array contain the same characters, or the repetition of characters, and just one string contains a different set of characters. Our function should...
Assembly - Loops
The JMP instruction can be used for implementing loops. For example, the following code snippet can be used for executing the loop-body 10 times. MOV CL, 10 L1: <LOOP-BODY> DEC CL JNZ L1 The processor instruction set, however, includes a group of loop instructions for implementing iteration. The basic LOOP instruction ...
[ { "code": null, "e": 2231, "s": 2085, "text": "The JMP instruction can be used for implementing loops. For example, the following code snippet can be used for executing the loop-body 10 times." }, { "code": null, "e": 2272, "s": 2231, "text": "MOV\tCL, 10\nL1:\n<LOOP-BODY>\nDEC\t...
Train a Custom Object Detection Model using Mask RCNN | by Samden Lepcha | Towards Data Science
A complete guide from installation and training to deploying a custom trained object detection model in a webapp. According to Wikipedia “A pothole is a depression in a road surface, usually asphalt pavement, where traffic has removed broken pieces of the pavement”. Edmonton the “self proclaimed pothole capital” in Alb...
[ { "code": null, "e": 286, "s": 172, "text": "A complete guide from installation and training to deploying a custom trained object detection model in a webapp." }, { "code": null, "e": 837, "s": 286, "text": "According to Wikipedia “A pothole is a depression in a road surface, usu...
Scraping 1000’s of News Articles using 10 simple steps | by Kajal Yadav | Towards Data Science
Web Scraping Series: Using Python and Software Part-1: Scraping web pages without using Software: Python Part-2: Scraping web Pages using Software: Octoparse Table Of Content 1.Introduction 1.1 Why This article? 1.2 Who should read this article? 2. Overview 2.1 A brief introduction to webpage design and HTML 2.2 Web-sc...
[ { "code": null, "e": 219, "s": 172, "text": "Web Scraping Series: Using Python and Software" }, { "code": null, "e": 277, "s": 219, "text": "Part-1: Scraping web pages without using Software: Python" }, { "code": null, "e": 330, "s": 277, "text": "Part-2: Scra...
JqueryUI - Resizable
jQueryUI provides resizable() method to resize any DOM element. This method simplifies the resizing of element which otherwise takes time and lot of coding in HTML. The resizable () method displays an icon in the bottom right of the item to resize. The resizable() method can be used in two forms − $(selector, context)....
[ { "code": null, "e": 2513, "s": 2264, "text": "jQueryUI provides resizable() method to resize any DOM element. This method simplifies the resizing of element which otherwise takes time and lot of coding in HTML. The resizable () method displays an icon in the bottom right of the item to resize." }...
Kotlin Constructors
In the previous chapter, we created an object of a class, and specified the properties inside the class, like this: class Car { var brand = "" var model = "" var year = 0 } fun main() { val c1 = Car() c1.brand = "Ford" c1.model = "Mustang" c1.year = 1969 } In Kotlin, there's a faster way of doing this, b...
[ { "code": null, "e": 116, "s": 0, "text": "In the previous chapter, we created an object of a class, and specified the properties inside the class, like this:" }, { "code": null, "e": 272, "s": 116, "text": "class Car {\n var brand = \"\"\n var model = \"\"\n var year = 0\n}\n...
Select multiple columns in a Pandas DataFrame
To select multiple columns in a Pandas DataFrame, we can create new a DataFrame from the existing DataFrame Create a two-dimensional, size-mutable, potentially heterogeneous tabular data, df. Create a two-dimensional, size-mutable, potentially heterogeneous tabular data, df. Print the input DataFrame. Print the input D...
[ { "code": null, "e": 1170, "s": 1062, "text": "To select multiple columns in a Pandas DataFrame, we can create new a DataFrame from the existing DataFrame" }, { "code": null, "e": 1254, "s": 1170, "text": "Create a two-dimensional, size-mutable, potentially heterogeneous tabular ...
Reinforcement Learning — Cliff Walking Implementation | by Jeremy Zhang | Towards Data Science
The essence of reinforcement learning is the way the agent iteratively updates its estimation of state, action pairs by trials(if you are not familiar with value iteration, please check my previous example). In previous posts, I have been repetitively talking about Q-learning and how the agent updates its Q-value based...
[ { "code": null, "e": 827, "s": 179, "text": "The essence of reinforcement learning is the way the agent iteratively updates its estimation of state, action pairs by trials(if you are not familiar with value iteration, please check my previous example). In previous posts, I have been repetitively tal...
VBScript - Interview Questions
Dear readers, these VBScript Interview Questions have been designed specially to get you acquainted with the nature of questions you may encounter during your interview for the subject of VBScript. As per my experience good interviewers hardly plan to ask any particular question during your interview, normally question...
[ { "code": null, "e": 2520, "s": 2080, "text": "Dear readers, these VBScript Interview Questions have been designed specially to get you acquainted with the nature of questions you may encounter during your interview for the subject of VBScript. As per my experience good interviewers hardly plan to a...
Convert ASCII TO UTF-8 Encoding in PHP?
If we know that the current encoding is ASCII, the 'iconv' function can be used to convert ASCII to UTF-8. The original string can be passed as a parameter to the iconv function to encode it to UTF-8. Live Demo <?php $str = "ábrêcWtë"; echo 'Original :', ("$str"), PHP_EOL; echo 'Plain :', iconv("UTF-8", "I...
[ { "code": null, "e": 1263, "s": 1062, "text": "If we know that the current encoding is ASCII, the 'iconv' function can be used to convert ASCII to UTF-8. The original string can be passed as a parameter to the iconv function to encode it to UTF-8." }, { "code": null, "e": 1274, "s": ...
Uniscan – Web Application Penetration Testing Tool - GeeksforGeeks
14 Sep, 2021 With the rapid growth in the development of Web-based applications, there is also growth in vulnerabilities for which hackers are awaiting from all sides. Finding those vulnerabilities can be difficult if we use a manual approach, but with the help of automated plenty of tools makes the process easier. Vu...
[ { "code": null, "e": 24326, "s": 24298, "text": "\n14 Sep, 2021" }, { "code": null, "e": 24631, "s": 24326, "text": "With the rapid growth in the development of Web-based applications, there is also growth in vulnerabilities for which hackers are awaiting from all sides. Finding ...
What does “unsigned” in MySQL mean and when to use it?
The “unsigned” in MySQL is a data type. Whenever we write an unsigned to any column that means you cannot insert negative numbers. Suppose, for a very large number you can use unsigned type. The maximum range with unsigned int is 4294967295. Note: If you insert negative value you will get a MySQL error. Here is the exa...
[ { "code": null, "e": 1253, "s": 1062, "text": "The “unsigned” in MySQL is a data type. Whenever we write an unsigned to any column that means you cannot insert negative numbers. Suppose, for a very large number you can use unsigned type." }, { "code": null, "e": 1304, "s": 1253, ...
Lodash _.round() Method - GeeksforGeeks
09 Sep, 2020 Lodash is a JavaScript library that works on the top of underscore.js. Lodash helps in working with arrays, strings, objects, numbers, etc. The _.round() method is used to compute number rounded to precision. Syntax: _.round(number, [precision = 0]) Parameters: This method accepts two parameters as mention...
[ { "code": null, "e": 37045, "s": 37017, "text": "\n09 Sep, 2020" }, { "code": null, "e": 37185, "s": 37045, "text": "Lodash is a JavaScript library that works on the top of underscore.js. Lodash helps in working with arrays, strings, objects, numbers, etc." }, { "code": n...
Python program to find all Strong Numbers in given list
24 Jun, 2019 Given a list, write a Python program to find all the Strong numbers in a given list of numbers. A Strong Number is a number that is equal to the sum of factorial of its digits. Examples: Input : [1, 2, 5, 145, 654, 34] Output : [1, 2, 145] Input : [15, 58, 75, 675, 145, 2] Output : [145, 2] Explanation ...
[ { "code": null, "e": 52, "s": 24, "text": "\n24 Jun, 2019" }, { "code": null, "e": 148, "s": 52, "text": "Given a list, write a Python program to find all the Strong numbers in a given list of numbers." }, { "code": null, "e": 229, "s": 148, "text": "A Strong ...
Volume of solid of revolution
20 Jun, 2020 A solid of revolution is generated by revolving a plane area R about a line L known as axis of revolution in the plane. Below image shows an example of solid of revolution. We shall calculate the volume of solid of revolution when the equation of the curve is given in parametric form and polar form. Parame...
[ { "code": null, "e": 52, "s": 24, "text": "\n20 Jun, 2020" }, { "code": null, "e": 225, "s": 52, "text": "A solid of revolution is generated by revolving a plane area R about a line L known as axis of revolution in the plane. Below image shows an example of solid of revolution." ...
Spring Boot JPA - Native Query
Some time case arises, where we need a custom native query to fulfil one test case. We can use @Query annotation to specify a query within a repository. Following is an example. In this example, we are using native query, and set an attribute nativeQuery=true in Query annotation to mark the query as native. We've added...
[ { "code": null, "e": 2421, "s": 2112, "text": "Some time case arises, where we need a custom native query to fulfil one test case. We can use @Query annotation to specify a query within a repository. Following is an example. In this example, we are using native query, and set an attribute nativeQuer...
Amazon Interview Experience for SDE-1 (Off-Campus)
11 May, 2021 I appeared for the amazon’s interview for SDE full-time role, and here is my experience Technical Interview Round-1 First question was there are given n ropes of different lengths, we need to connect these ropes into one rope. The cost to connect two ropes is equal to the sum of their lengths. We need to c...
[ { "code": null, "e": 54, "s": 26, "text": "\n11 May, 2021" }, { "code": null, "e": 142, "s": 54, "text": "I appeared for the amazon’s interview for SDE full-time role, and here is my experience" }, { "code": null, "e": 170, "s": 142, "text": "Technical Intervi...
Auto-Fit vs Auto-Fill Property in CSS Grid
17 Nov, 2021 One of the most important features in CSS Grid is that we can create a responsive layout without using a media query. We don’t need to write a media query for each viewport rather it can be adjusted by using some of the properties of CSS-Grid. It can be adjusted by simply using grid-template-columns proper...
[ { "code": null, "e": 54, "s": 26, "text": "\n17 Nov, 2021" }, { "code": null, "e": 427, "s": 54, "text": "One of the most important features in CSS Grid is that we can create a responsive layout without using a media query. We don’t need to write a media query for each viewport r...
time.h localtime() function in C with Examples
07 Nov, 2019 The localtime() function is defined in the time.h header file. The localtime( ) function return the local time of the user i.e time present at the task bar in computer. Syntax: tm* localtime(const time_t* t_ptr); Parameter: This function accepts a parameter t_ptr which represents the pointer to time_t obje...
[ { "code": null, "e": 28, "s": 0, "text": "\n07 Nov, 2019" }, { "code": null, "e": 197, "s": 28, "text": "The localtime() function is defined in the time.h header file. The localtime( ) function return the local time of the user i.e time present at the task bar in computer." }, ...
Send message to FB friend using Python
22 Jan, 2022 The power of Python comes because of the large number of modules it has. This time we are going to use one of those. Every one of us, one time or another, has a wish of the message (or spamming -.-) our Facebook friend. This is a program that can do something similar. So without further delay, let’s jump r...
[ { "code": null, "e": 52, "s": 24, "text": "\n22 Jan, 2022" }, { "code": null, "e": 369, "s": 52, "text": "The power of Python comes because of the large number of modules it has. This time we are going to use one of those. Every one of us, one time or another, has a wish of the m...
Knapsack with Duplicate Items | Practice | GeeksforGeeks
Given a set of N items, each with a weight and a value, represented by the array w[] and val[] respectively. Also, a knapsack with weight limit W. The task is to fill the knapsack in such a way that we can get the maximum profit. Return the maximum profit. Note: Each item can be taken any number of times. Example 1: ...
[ { "code": null, "e": 545, "s": 238, "text": "Given a set of N items, each with a weight and a value, represented by the array w[] and val[] respectively. Also, a knapsack with weight limit W.\nThe task is to fill the knapsack in such a way that we can get the maximum profit. Return the maximum profi...
How to Create and Use Signals in Django ?
07 Oct, 2021 Signals are used to perform any action on modification of a model instance. The signals are utilities that help us to connect events with actions. We can develop a function that will run when a signal calls it. In other words, Signals are used to perform some action on modification/creation of a particular...
[ { "code": null, "e": 54, "s": 26, "text": "\n07 Oct, 2021" }, { "code": null, "e": 493, "s": 54, "text": "Signals are used to perform any action on modification of a model instance. The signals are utilities that help us to connect events with actions. We can develop a function t...
Probability of getting at least K heads in N tosses of Coins
25 Mar, 2021 Given N number of coins, the task is to find probability of getting at least K number of heads after tossing all the N coins simultaneously.Example : Suppose we have 3 unbiased coins and we have to find the probability of getting at least 2 heads, so there are 23 = 8 ways to toss these coins, i.e., HHH, ...
[ { "code": null, "e": 52, "s": 24, "text": "\n25 Mar, 2021" }, { "code": null, "e": 204, "s": 52, "text": "Given N number of coins, the task is to find probability of getting at least K number of heads after tossing all the N coins simultaneously.Example : " }, { "code": ...
SQL Query to Get Column Names From a Table
10 Oct, 2021 SQL stands for Structured Query Language. It is a language used to interact with the database, i.e to create a database, to create a table in the database, to retrieve data or update a table in the database, etc. SQL is an ANSI(American National Standards Institute) standard. Using SQL, we can do many thin...
[ { "code": null, "e": 52, "s": 24, "text": "\n10 Oct, 2021" }, { "code": null, "e": 538, "s": 52, "text": "SQL stands for Structured Query Language. It is a language used to interact with the database, i.e to create a database, to create a table in the database, to retrieve data o...
How to create a ComboBox using JavaFX?
A combo box is similar to a choice box it holds multiple items and, allows you to select one of them. It can be formed by adding scrolling to a drop-down list. You can create a combo box by instantiating the javafx.scene.control.ComboBox class. The following Example demonstrates the creation of a ComboBox. import javaf...
[ { "code": null, "e": 1432, "s": 1187, "text": "A combo box is similar to a choice box it holds multiple items and, allows you to select one of them. It can be formed by adding scrolling to a drop-down list. You can create a combo box by instantiating the javafx.scene.control.ComboBox class." }, ...
SWING - WindowEvent Class
The object of this class represents the change in state of a window.This low-level event is generated by a Window object when it is opened, closed, activated, deactivated, iconified, or deiconified, or when the focus is transfered into or out of the Window. Following is the declaration for java.awt.event.WindowEvent cl...
[ { "code": null, "e": 2155, "s": 1897, "text": "The object of this class represents the change in state of a window.This low-level event is generated by a Window object when it is opened, closed, activated, deactivated, iconified, or deiconified, or when the focus is transfered into or out of the Win...
p5.js | hide() Function
08 Jun, 2021 The hide() function is an inbuilt function which is used to hide the current element. Essentially display: none is used for this style.This function requires p5.dom library. So add the following line in the head section of the index.html file. javascript <script language="javascript" type="text/javasc...
[ { "code": null, "e": 28, "s": 0, "text": "\n08 Jun, 2021" }, { "code": null, "e": 274, "s": 28, "text": "The hide() function is an inbuilt function which is used to hide the current element. Essentially display: none is used for this style.This function requires p5.dom library. S...
Python List Comprehensions vs Generator Expressions
29 Jun, 2018 What is List Comprehension?It is an elegant way of defining and creating a list. List Comprehension allows us to create a list using for loop with lesser code. What normally takes 3-4 lines of code, can be compressed into just a single line. Example: # initializing the listlist = [] for i in range(11): ...
[ { "code": null, "e": 54, "s": 26, "text": "\n29 Jun, 2018" }, { "code": null, "e": 296, "s": 54, "text": "What is List Comprehension?It is an elegant way of defining and creating a list. List Comprehension allows us to create a list using for loop with lesser code. What normally ...
Nested Classes in Java
12 Apr, 2022 In Java, it is possible to define a class within another class, such classes are known as nested classes. They enable you to logically group classes that are only used in one place, thus this increases the use of encapsulation, and creates more readable and maintainable code. The scope of a nested class is...
[ { "code": null, "e": 52, "s": 24, "text": "\n12 Apr, 2022" }, { "code": null, "e": 329, "s": 52, "text": "In Java, it is possible to define a class within another class, such classes are known as nested classes. They enable you to logically group classes that are only used in one...
What is Box plot and the condition of outliers?
21 Apr, 2020 Box plot is a data visualization plotting function. It shows the min, max, median, first quartile, and third quartile. All of the things will be explained briefly. All of the property of box plot can be accessed by dataframe.column_name.describe() function. Here is a well distributed data-set. data = [0, 1...
[ { "code": null, "e": 28, "s": 0, "text": "\n21 Apr, 2020" }, { "code": null, "e": 286, "s": 28, "text": "Box plot is a data visualization plotting function. It shows the min, max, median, first quartile, and third quartile. All of the things will be explained briefly. All of the ...
How to count the frequency of unique values in NumPy array?
02 Sep, 2020 Let’s see How to count the frequency of unique values in NumPy array. Python’s numpy library provides a numpy.unique() function to find the unique elements and it’s corresponding frequency in a numpy array. Syntax: numpy.unique(arr, return_counts=False) Return: Sorted unique elements of an array with their...
[ { "code": null, "e": 28, "s": 0, "text": "\n02 Sep, 2020" }, { "code": null, "e": 235, "s": 28, "text": "Let’s see How to count the frequency of unique values in NumPy array. Python’s numpy library provides a numpy.unique() function to find the unique elements and it’s correspond...
GAN by Example using Keras on Tensorflow Backend | by Rowel Atienza | Towards Data Science
Generative Adversarial Networks (GAN) is one of the most promising recent developments in Deep Learning. GAN, introduced by Ian Goodfellow in 2014, attacks the problem of unsupervised learning by training two deep networks, called Generator and Discriminator, that compete and cooperate with each other. In the course of...
[ { "code": null, "e": 562, "s": 172, "text": "Generative Adversarial Networks (GAN) is one of the most promising recent developments in Deep Learning. GAN, introduced by Ian Goodfellow in 2014, attacks the problem of unsupervised learning by training two deep networks, called Generator and Discrimina...
Machine Learning 102: Logistic Regression With Polynomial Features | by Leihua Ye, PhD | Towards Data Science
Data Scientists are rock stars! Rock and Roll! In my previous ML 101 article, I explained how we could apply logistic regression to classify linear questions. In this post, I want to complicate things a little bit by including nonlinear features. Just like the real world, things are intertwined and messy. Let’s delve i...
[ { "code": null, "e": 203, "s": 171, "text": "Data Scientists are rock stars!" }, { "code": null, "e": 218, "s": 203, "text": "Rock and Roll!" }, { "code": null, "e": 478, "s": 218, "text": "In my previous ML 101 article, I explained how we could apply logistic...
Data Classes in Python (dataclasses)
The dataclasses is a new module added in Python's standard library since version 3.7. It defines @dataclass decorator that automatically generates constructor magic method __init__(), string representation method __repr__(), the __eq__() method which overloads == operator (and a few more) for a user defined class. The ...
[ { "code": null, "e": 1378, "s": 1062, "text": "The dataclasses is a new module added in Python's standard library since version 3.7. It defines @dataclass decorator that automatically generates constructor magic method __init__(), string representation method __repr__(), the __eq__() method which ov...
Batch Script - Renaming Folders
For renaming folders, Batch Script provides the REN or RENAME command. RENAME [drive:][path][directoryname1 | filename1] [directoryname2 | filename2] Let’s look at some examples of renaming folders. ren Example Example1 The above command will rename the folder called Example in the current working directory to Exampl...
[ { "code": null, "e": 2240, "s": 2169, "text": "For renaming folders, Batch Script provides the REN or RENAME command." }, { "code": null, "e": 2320, "s": 2240, "text": "RENAME [drive:][path][directoryname1 | filename1] [directoryname2 | filename2]\n" }, { "code": null, ...
Making Your Loss Function Count. Some errors are more costly than... | by Kieran | Towards Data Science
George Orwell’s novella Animal Farm includes the memorable line... all animals are equal, but some animals are more equal than others 1 Orwell may have been referring to hypocrisy, power, and privilege in society, but if you replace the word animals with errors, it starts to become very relevant to machine learning. No...
[ { "code": null, "e": 238, "s": 171, "text": "George Orwell’s novella Animal Farm includes the memorable line..." }, { "code": null, "e": 307, "s": 238, "text": "all animals are equal, but some animals are more equal than others 1" }, { "code": null, "e": 489, "s":...
How can I pass arguments to Tkinter button's callback command?
Tkinter Buttons are used for handling certain operations in the application. In order to handle such events, we generally pass the defined function name as the value in the callback command. For a particular event, we can also pass the argument to the function in the button’s command. There are two ways to pass the arg...
[ { "code": null, "e": 1348, "s": 1062, "text": "Tkinter Buttons are used for handling certain operations in the application. In order to handle such events, we generally pass the defined function name as the value in the callback command. For a particular event, we can also pass the argument to the f...
MongoDB query for capped sub-collection in an array
In MongoDB, you cannot use capped for sub-collection. However, use capped on the overall document. To display a specific number of values from an array, prefer $slice. Let us create a collection with documents − > db.demo319.insertOne({"Scores":[100,345,980,890]}); { "acknowledged" : true, "insertedId" : ObjectId...
[ { "code": null, "e": 1230, "s": 1062, "text": "In MongoDB, you cannot use capped for sub-collection. However, use capped on the overall document. To display a specific number of values from an array, prefer $slice." }, { "code": null, "e": 1274, "s": 1230, "text": "Let us create ...
Functional Programming - Records
A record is a data structure for storing a fixed number of elements. It is similar to a structure in C language. At the time of compilation, its expressions are translated to tuple expressions. The keyword ‘record’ is used to create records specified with record name and its fields. Its syntax is as follows − record(re...
[ { "code": null, "e": 2015, "s": 1821, "text": "A record is a data structure for storing a fixed number of elements. It is similar to a structure in C language. At the time of compilation, its expressions are translated to tuple expressions." }, { "code": null, "e": 2132, "s": 2015, ...
Extract Tables from PDF file in a single line of Python Code | by Satyam Kumar | Towards Data Science
A standard principle in data science is that the presence of more data leads to training a better model. Data can be present in any format, data collection and data preparation is an important component of a model development pipeline. The required data for any case study can be present in any format, and it's the task...
[ { "code": null, "e": 632, "s": 172, "text": "A standard principle in data science is that the presence of more data leads to training a better model. Data can be present in any format, data collection and data preparation is an important component of a model development pipeline. The required data f...
Perl - Extracting Date from a String using Regex - GeeksforGeeks
14 Dec, 2020 In Perl generally, we have to read CSV (Comma Separated Values) files to extract the required data. Sometimes there are dates in the file name like sample 2014-02-12T11:10:10.csv or there could be a column in a file that has a date in it. These dates can be of any pattern like YYYY-MM-DDThh:mm:ss or dd/mm/...
[ { "code": null, "e": 25315, "s": 25287, "text": "\n14 Dec, 2020" }, { "code": null, "e": 26049, "s": 25315, "text": "In Perl generally, we have to read CSV (Comma Separated Values) files to extract the required data. Sometimes there are dates in the file name like sample 2014-02-...
How to add border to an element on mouse hover using CSS ? - GeeksforGeeks
14 Dec, 2020 We have given a web page containing elements and the task is to add border to an element on mouse move over (hover) using CSS. When we add a border to an element on hovering the mouse, it affects the position of the other nearest element. To remove this problem, we can use the CSS margin property. Example:...
[ { "code": null, "e": 26167, "s": 26139, "text": "\n14 Dec, 2020" }, { "code": null, "e": 26466, "s": 26167, "text": "We have given a web page containing elements and the task is to add border to an element on mouse move over (hover) using CSS. When we add a border to an element o...
Unformatted input/output operations In C++ - GeeksforGeeks
11 Nov, 2021 In this article, we will discuss the unformatted Input/Output operations In C++. Using objects cin and cout for the input and the output of data of various types is possible because of overloading of operator >> and << to recognize all the basic C++ types. The operator >> is overloaded in the istream class...
[ { "code": null, "e": 25367, "s": 25339, "text": "\n11 Nov, 2021" }, { "code": null, "e": 25727, "s": 25367, "text": "In this article, we will discuss the unformatted Input/Output operations In C++. Using objects cin and cout for the input and the output of data of various types i...
Errors and Exceptions in Python - GeeksforGeeks
22 Oct, 2021 Errors are the problems in a program due to which the program will stop the execution. On the other hand, exceptions are raised when some internal events occur which changes the normal flow of the program. Two types of Error occurs in python. Syntax errorsLogical errors (Exceptions) Syntax errors Logic...
[ { "code": null, "e": 42677, "s": 42649, "text": "\n22 Oct, 2021" }, { "code": null, "e": 42922, "s": 42677, "text": "Errors are the problems in a program due to which the program will stop the execution. On the other hand, exceptions are raised when some internal events occur whi...
Interfaces and Inheritance in Java - GeeksforGeeks
28 Jun, 2021 Prerequisites: Interfaces in Java, Java and Multiple Inheritance A class can extends another class and/ can implement one and more than one interface. // Java program to demonstrate that a class can// implement multiple interfacesimport java.io.*;interface intfA{ void m1();} interface intfB{ void m2...
[ { "code": null, "e": 25797, "s": 25769, "text": "\n28 Jun, 2021" }, { "code": null, "e": 25862, "s": 25797, "text": "Prerequisites: Interfaces in Java, Java and Multiple Inheritance" }, { "code": null, "e": 25948, "s": 25862, "text": "A class can extends anoth...
numpy.concatenate() function | Python - GeeksforGeeks
22 Apr, 2020 numpy.concatenate() function concatenate a sequence of arrays along an existing axis. Syntax : numpy.concatenate((arr1, arr2, ...), axis=0, out=None)Parameters :arr1, arr2, ... : [sequence of array_like] The arrays must have the same shape, except in the dimension corresponding to axis.axis : [int, optiona...
[ { "code": null, "e": 25562, "s": 25534, "text": "\n22 Apr, 2020" }, { "code": null, "e": 25648, "s": 25562, "text": "numpy.concatenate() function concatenate a sequence of arrays along an existing axis." }, { "code": null, "e": 26217, "s": 25648, "text": "Synt...
C# | First occurrence in the List that matches the specified conditions - GeeksforGeeks
30 Sep, 2019 List<T>.Find(Predicate<T>) Method is used to search for an element which matches the conditions defined by the specified predicate and it returns the first occurrence of that element within the entire List<T>. Properties of List: It is different from the arrays. A list can be resized dynamically but arrays...
[ { "code": null, "e": 25791, "s": 25763, "text": "\n30 Sep, 2019" }, { "code": null, "e": 26001, "s": 25791, "text": "List<T>.Find(Predicate<T>) Method is used to search for an element which matches the conditions defined by the specified predicate and it returns the first occurre...
Top 10 High Paying Jobs That Demand SQL - GeeksforGeeks
16 Dec, 2019 SQL can execute queries, retrieve data, insert or delete records, create tables or stored procedures in a database, and so on. SQL is the most adaptable niche in the market. Switching the job once you enter in IT industry is not a big deal. The hardest part is in the beginning. But most of the students who...
[ { "code": null, "e": 25615, "s": 25587, "text": "\n16 Dec, 2019" }, { "code": null, "e": 26135, "s": 25615, "text": "SQL can execute queries, retrieve data, insert or delete records, create tables or stored procedures in a database, and so on. SQL is the most adaptable niche in t...
Node.js fs.lstat() Method - GeeksforGeeks
11 Oct, 2021 The fs.lstat() method is similar to the fs.stat() method except that it is used to return information about the symbolic link that is being used to refer to a file or directory. The fs.Stat object returned has several fields and methods to get more details about the file. Syntax: fs.lstat( path, options, c...
[ { "code": null, "e": 25759, "s": 25731, "text": "\n11 Oct, 2021" }, { "code": null, "e": 26032, "s": 25759, "text": "The fs.lstat() method is similar to the fs.stat() method except that it is used to return information about the symbolic link that is being used to refer to a file...
User Defined Data Structures in Python - GeeksforGeeks
19 Jan, 2022 In computer science, a data structure is a logical way of organizing data in computer memory so that it can be used effectively. A data structure allows data to be added, removed, stored and maintained in a structured manner. Python supports two types of data structures: Non-primitive data types: Python ha...
[ { "code": null, "e": 25561, "s": 25533, "text": "\n19 Jan, 2022" }, { "code": null, "e": 25833, "s": 25561, "text": "In computer science, a data structure is a logical way of organizing data in computer memory so that it can be used effectively. A data structure allows data to be...
wxPython - Set window in center of screen - GeeksforGeeks
10 Mar, 2022 In this article we are going to learn that, how can we show window in the center of the screen. We can do this by using a Centre() function in wx.Frame module. Syntax: wx.Frame.Centre(self, direction = wx.BOTH) Parameters: Example #1: Python3 # import wxPythonimport wx class Example(wx.Frame): ...
[ { "code": null, "e": 26083, "s": 26055, "text": "\n10 Mar, 2022" }, { "code": null, "e": 26245, "s": 26083, "text": "In this article we are going to learn that, how can we show window in the center of the screen. We can do this by using a Centre() function in wx.Frame module. " ...
Program to implement Linear Extrapolation - GeeksforGeeks
25 Nov, 2021 What is Extrapolation? Extrapolation is the process in mathematics where the required value is estimated beyond the range the of the given variable range. Extrapolation is often used to estimate the data of some observation below or above the given range. Extrapolation is also referred to as a mathematical...
[ { "code": null, "e": 25876, "s": 25848, "text": "\n25 Nov, 2021" }, { "code": null, "e": 26814, "s": 25876, "text": "What is Extrapolation? Extrapolation is the process in mathematics where the required value is estimated beyond the range the of the given variable range. Extrapol...
Josephus Problem | (Iterative Solution) - GeeksforGeeks
22 Jan, 2020 There are N Children are seated on N chairs arranged around a circle. The chairs are numbered from 1 to N. The game starts going in circles counting the children starting with the first chair. Once the count reaches K, that child leaves the game, removing his/her chair. The game starts again, beginning wit...
[ { "code": null, "e": 26451, "s": 26423, "text": "\n22 Jan, 2020" }, { "code": null, "e": 26879, "s": 26451, "text": "There are N Children are seated on N chairs arranged around a circle. The chairs are numbered from 1 to N. The game starts going in circles counting the children s...
Program to calculate the number of odd days in given number of years - GeeksforGeeks
01 Apr, 2021 Given an integer N, the task is to find the number of odd days in the years from 1 to N. Odd Days: Number of odd days refer to those days that are left in a certain year(s) when it’s days gets converted into weeks. Say, an ordinary year has 365 days, that is 52 weeks and one odd day. This means, out of the...
[ { "code": null, "e": 25937, "s": 25909, "text": "\n01 Apr, 2021" }, { "code": null, "e": 26386, "s": 25937, "text": "Given an integer N, the task is to find the number of odd days in the years from 1 to N. Odd Days: Number of odd days refer to those days that are left in a certai...
Check if a string represents a hexadecimal number or not - GeeksforGeeks
13 Apr, 2021 Given an alphanumeric string S of length N, the task is to check if the given string represents a hexadecimal number or not. Print Yes if it represents a hexadecimal number. Otherwise, print No. Examples: Input: S = “BF57C” Output: Yes Explanation: Decimal Representation of the given string = 783740 Input:...
[ { "code": null, "e": 26189, "s": 26161, "text": "\n13 Apr, 2021" }, { "code": null, "e": 26384, "s": 26189, "text": "Given an alphanumeric string S of length N, the task is to check if the given string represents a hexadecimal number or not. Print Yes if it represents a hexadecim...
Storage Definition Languages (SDL) - GeeksforGeeks
11 Sep, 2020 DBMS supports many languages out of which (SDL) is one of them. SDL stands for Storage Definition Language. SDL matter is almost anything that’s not specified by SQL standard. It is different in every DBMS which specifies anything to do with how or where data in relevant table is stored. It’s applications ...
[ { "code": null, "e": 25549, "s": 25521, "text": "\n11 Sep, 2020" }, { "code": null, "e": 25873, "s": 25549, "text": "DBMS supports many languages out of which (SDL) is one of them. SDL stands for Storage Definition Language. SDL matter is almost anything that’s not specified by S...
Construct sum-array with sum of elements in given range - GeeksforGeeks
05 Apr, 2021 You are given an array of n-elements and an odd-integer m. You have to construct a new sum_array from given array such that sum_array[i] = Σarr[j] for (i-(m/2)) < j (i+(m/2)). note : for 0 > j or j >= n take arr[j] = 0.Examples: Input : arr[] = {1, 2, 3, 4, 5}, m = 3 Output : sum_array = {3,...
[ { "code": null, "e": 26041, "s": 26013, "text": "\n05 Apr, 2021" }, { "code": null, "e": 26272, "s": 26041, "text": "You are given an array of n-elements and an odd-integer m. You have to construct a new sum_array from given array such that sum_array[i] = Σarr[j] for (i-(m/2)) < ...
Applied Multivariate Regression. A look into the practical applications... | by Ashwin Raj | Towards Data Science
In this article we will be getting introduced to the concepts of Multivariate regression. We will also be discussing about a common problem associated with the algorithm i.e. The Dummy Variable Trap. First we will be getting familiar with the concepts of Multivariate regression and then we will build our very own multi...
[ { "code": null, "e": 372, "s": 172, "text": "In this article we will be getting introduced to the concepts of Multivariate regression. We will also be discussing about a common problem associated with the algorithm i.e. The Dummy Variable Trap." }, { "code": null, "e": 673, "s": 372,...
Codes Conversion
There are many methods or techniques which can be used to convert code from one format to another. We'll demonstrate here the following Binary to BCD Conversion BCD to Binary Conversion BCD to Excess-3 Excess-3 to BCD Steps Step 1 -- Convert the binary number to decimal. Step 1 -- Convert the binary number to decimal. ...
[ { "code": null, "e": 2107, "s": 1971, "text": "There are many methods or techniques which can be used to convert code from one format to another. We'll demonstrate here the following" }, { "code": null, "e": 2132, "s": 2107, "text": "Binary to BCD Conversion" }, { "code":...
C# - Constants and Literals
The constants refer to fixed values that the program may not alter during its execution. These fixed values are also called literals. Constants can be of any of the basic data types like an integer constant, a floating constant, a character constant, or a string literal. There are also enumeration constants as well. Th...
[ { "code": null, "e": 2588, "s": 2270, "text": "The constants refer to fixed values that the program may not alter during its execution. These fixed values are also called literals. Constants can be of any of the basic data types like an integer constant, a floating constant, a character constant, or...
How to match any one uppercase character in python using Regular Expression?
The following code matches and prints any uppercase character in the given string using python regular expression as follows. import re foo = 'MozamBiQuE' match = re.findall(r'[A-Z]', foo) print match This gives the output ['M', 'B', 'Q', 'E']
[ { "code": null, "e": 1188, "s": 1062, "text": "The following code matches and prints any uppercase character in the given string using python regular expression as follows." }, { "code": null, "e": 1263, "s": 1188, "text": "import re\nfoo = 'MozamBiQuE'\nmatch = re.findall(r'[A-Z...
The Quick and Easy Way to Plot Error Bars in Python Using Pandas | by Max Hilsdorf | Towards Data Science
In scientific studies, displaying error bars in your descriptive visualizations is inevitable. Holding information about the variability of your data, they are a necessary complement to your mean scores. However, scientific visualizations tend to be more beautiful on the inside than on the outside. As data scientists, ...
[ { "code": null, "e": 472, "s": 172, "text": "In scientific studies, displaying error bars in your descriptive visualizations is inevitable. Holding information about the variability of your data, they are a necessary complement to your mean scores. However, scientific visualizations tend to be more ...
How to Integrate Razorpay Payment Gateway in Android? - GeeksforGeeks
31 Jan, 2021 Many apps nowadays require to have a payment gateway inside their application so that users can do any transactions inside their apps to purchase any product or any service. Many apps use the payment gateway features but the integration of this payment gateway is a difficult task in Android applications. S...
[ { "code": null, "e": 23995, "s": 23967, "text": "\n31 Jan, 2021" }, { "code": null, "e": 24611, "s": 23995, "text": "Many apps nowadays require to have a payment gateway inside their application so that users can do any transactions inside their apps to purchase any product or an...
Python Program for Fibonacci numbers
In this article, we will learn about the solution and approach to solve the given problem statement. Problem statement −Our task to compute the nth Fibonacci number. The sequence Fn of Fibonacci numbers is given by the recurrence relation given below Fn = Fn-1 + Fn-2 with seed values (standard) F0 = 0 and F1 = 1. We ha...
[ { "code": null, "e": 1163, "s": 1062, "text": "In this article, we will learn about the solution and approach to solve the given problem statement." }, { "code": null, "e": 1228, "s": 1163, "text": "Problem statement −Our task to compute the nth Fibonacci number." }, { "c...
Break Statement Implementation
The break statement is used to alter the flow of control inside loops within any programming language. The break statement is normally used in looping constructs and is used to cause immediate termination of the innermost enclosing loop. The Batch Script language does not have a direct ‘for’ statement which does a brea...
[ { "code": null, "e": 2407, "s": 2169, "text": "The break statement is used to alter the flow of control inside loops within any programming language. The break statement is normally used in looping constructs and is used to cause immediate termination of the innermost enclosing loop." }, { "...
Preprocess and prepare a face dataset ready for CNN models | by Nachi Muthu | Towards Data Science
Hola amigos! in this article, I’m going to preprocess the IMDB-WIKI datasets and extract faces from those images and save them to Google Drive along with other useful information such as name, age, and gender. The data will be stored as an object itself in .pickle format. The best part of all this is that you don’t hav...
[ { "code": null, "e": 583, "s": 172, "text": "Hola amigos! in this article, I’m going to preprocess the IMDB-WIKI datasets and extract faces from those images and save them to Google Drive along with other useful information such as name, age, and gender. The data will be stored as an object itself i...
The new operator in Java
The new operator is used in Java to create new objects. It can also be used to create an array object. Let us first see the steps when creating an object from a class − Declaration − A variable declaration with a variable name with an object type. Declaration − A variable declaration with a variable name with an object...
[ { "code": null, "e": 1165, "s": 1062, "text": "The new operator is used in Java to create new objects. It can also be used to create an array object." }, { "code": null, "e": 1231, "s": 1165, "text": "Let us first see the steps when creating an object from a class −" }, { ...
deque_insert( ) in C++ in STL
Given is the task to show the functionality of Deque insert( ) function in C++ STL Deque is the Double Ended Queues that are the sequence containers which provides the functionality of expansion and contraction on both the ends. A queue data structure allow user to insert data only at the END and delete data from the F...
[ { "code": null, "e": 1145, "s": 1062, "text": "Given is the task to show the functionality of Deque insert( ) function in C++ STL" }, { "code": null, "e": 1655, "s": 1145, "text": "Deque is the Double Ended Queues that are the sequence containers which provides the functionality ...
CopyOnWriteArrayList Class in Java
public class CopyOnWriteArrayList extends Object implements List, RandomAccess, Cloneable, Serializable CopyOnWriteArrayList is a thread-safe variant of ArrayList where operations which can change the ArrayList (add, update, set methods) creates a clone of the underlying array. CopyOnWriteArrayList is a thread-safe ...
[ { "code": null, "e": 1169, "s": 1062, "text": "public class CopyOnWriteArrayList\n extends Object\nimplements List, RandomAccess, Cloneable, Serializable" }, { "code": null, "e": 1344, "s": 1169, "text": "CopyOnWriteArrayList is a thread-safe variant of ArrayList where operatio...
PyTorch - Installation
PyTorch is a popular deep learning framework. In this tutorial, we consider “Windows 10” as our operating system. The steps for a successful environmental setup are as follows − The following link includes a list of packages which includes suitable packages for PyTorch. All you need to do is download the respective pac...
[ { "code": null, "e": 2437, "s": 2259, "text": "PyTorch is a popular deep learning framework. In this tutorial, we consider “Windows 10” as our operating system. The steps for a successful environmental setup are as follows −" }, { "code": null, "e": 2530, "s": 2437, "text": "The ...
C - Environment Setup
If you want to set up your environment for C programming language, you need the following two software tools available on your computer, (a) Text Editor and (b) The C Compiler. This will be used to type your program. Examples of few a editors include Windows Notepad, OS Edit command, Brief, Epsilon, EMACS, and vim or v...
[ { "code": null, "e": 2261, "s": 2084, "text": "If you want to set up your environment for C programming language, you need the following two software tools available on your computer, (a) Text Editor and (b) The C Compiler." }, { "code": null, "e": 2407, "s": 2261, "text": "This ...
Tryit Editor v3.7
CSS 2D Transforms Tryit: The matrix() method
[ { "code": null, "e": 27, "s": 9, "text": "CSS 2D Transforms" } ]
BigDecimal max() Method in Java - GeeksforGeeks
04 Dec, 2018 The java.math.BigDecimal.max(BigDecimal val) method in Java is used to compare two BigDecimal values and return the maximum of the two. This is opposite to BigDecimal max() method in Java. Syntax: public BigDecimal max(BigDecimal val) Parameters: The function accepts a BigDecimal object val as parameter wh...
[ { "code": null, "e": 23948, "s": 23920, "text": "\n04 Dec, 2018" }, { "code": null, "e": 24137, "s": 23948, "text": "The java.math.BigDecimal.max(BigDecimal val) method in Java is used to compare two BigDecimal values and return the maximum of the two. This is opposite to BigDeci...
How can I get Webdriver Session ID in Selenium?
We can get the webdriver session id with Selenium webdriver using the SessionId class. A session id is a distinctive number that is given to the webdriver by the server. This number is utilized by the webdriver to establish communication with the browser. The commands in our Selenium tests are directed to the browser w...
[ { "code": null, "e": 1232, "s": 1062, "text": "We can get the webdriver session id with Selenium webdriver using the SessionId class. A session id is a distinctive number that is given to the webdriver by the server." }, { "code": null, "e": 1483, "s": 1232, "text": "This number ...
Cuckoo Hashing - Worst case O(1) Lookup! - GeeksforGeeks
13 Sep, 2021 Background : There are three basic operations that must be supported by a hash table (or a dictionary): Lookup(key): return true if key is there on the table, else false Insert(key): add the item ‘key’ to the table if not already present Delete(key): removes ‘key’ from the table Collisions are very likel...
[ { "code": null, "e": 24794, "s": 24766, "text": "\n13 Sep, 2021" }, { "code": null, "e": 24900, "s": 24794, "text": "Background : There are three basic operations that must be supported by a hash table (or a dictionary): " }, { "code": null, "e": 24966, "s": 2490...
JSF - h:inputTextarea
The h:inputText tag renders an HTML input element of the type "text". <h:inputTextarea row = "10" col = "10" value = "Hello World! Everything is fine!" readonly = "true"/> <textarea name = "j_idt18:j_idt20" readonly = "readonly"> Hello World! Everything is fine!</textarea> id Identifier for a component bind...
[ { "code": null, "e": 2022, "s": 1952, "text": "The h:inputText tag renders an HTML input element of the type \"text\"." }, { "code": null, "e": 2130, "s": 2022, "text": "<h:inputTextarea row = \"10\" col = \"10\" value = \"Hello World! \n Everything is fine!\" readonly = \"tr...
EMOJIFY- Machine Learning Web App using Flask + Containerization +Deployment on AWS | by Sriram TM | Towards Data Science
In this tutorial, I will share my learning on building a simple end to end Machine Learning web app using Flask and later deploying it on AWS. The purpose of an ML model is well served only if it can be used interactively through a web app by the users. The traditional Jupyter notebooks only provide an interactive cons...
[ { "code": null, "e": 427, "s": 47, "text": "In this tutorial, I will share my learning on building a simple end to end Machine Learning web app using Flask and later deploying it on AWS. The purpose of an ML model is well served only if it can be used interactively through a web app by the users. Th...
Solidity - Functions
A function is a group of reusable code which can be called anywhere in your program. This eliminates the need of writing the same code again and again. It helps programmers in writing modular codes. Functions allow a programmer to divide a big program into a number of small and manageable functions. Like any other adva...
[ { "code": null, "e": 2856, "s": 2555, "text": "A function is a group of reusable code which can be called anywhere in your program. This eliminates the need of writing the same code again and again. It helps programmers in writing modular codes. Functions allow a programmer to divide a big program i...
Fake News Classification with Recurrent Convolutional Neural Networks | by Amol Mavuduru | Towards Data Science
Fake news is a topic that has gained a lot of attention in the past few years, and for good reasons. As social media becomes widely accessible, it becomes easier to influence millions of people by spreading misinformation. As humans, we often fail to recognize if the news we read is real or fake. A study from the Unive...
[ { "code": null, "e": 672, "s": 171, "text": "Fake news is a topic that has gained a lot of attention in the past few years, and for good reasons. As social media becomes widely accessible, it becomes easier to influence millions of people by spreading misinformation. As humans, we often fail to reco...
Beginner’s Guide to Creating the SVD Recommender System | by Mayukh Bhattacharyya | Towards Data Science
Ever logged into Netflix and see they are suggesting you watch Gravity if you had spent the last night watching Interstellar? Or perhaps bought something on Amazon and saw they are recommending us products that we may be interested in? Or ever wondered how the online ad agencies show us ads based on our browsing habits...
[ { "code": null, "e": 660, "s": 172, "text": "Ever logged into Netflix and see they are suggesting you watch Gravity if you had spent the last night watching Interstellar? Or perhaps bought something on Amazon and saw they are recommending us products that we may be interested in? Or ever wondered ho...
How do I cast a type to a BigInt in MySQL?
You need to use the CAST operator along with CONV() function. The CONV() function can be used to convert one base number system to another base system. For Example, The 16 is one base system and 10 is another base system. The 16 base system is hexadecimal and 10 is a decimal. The syntax is as follows − SELECT CAST(CONV...
[ { "code": null, "e": 1214, "s": 1062, "text": "You need to use the CAST operator along with CONV() function. The CONV() function can be used to convert one base number system to another base system." }, { "code": null, "e": 1339, "s": 1214, "text": "For Example, The 16 is one bas...
Hot Standby Router Protocol (HSRP) - GeeksforGeeks
25 Oct, 2021 Hot Standby Router Protocol (HSRP) is a CISCO proprietary protocol, which provides redundancy for a local subnet. In HSRP, two or more routers gives an illusion of a virtual router. HSRP allows you to configure two or more routers as standby routers and only a single router as an active router at a time. A...
[ { "code": null, "e": 36568, "s": 36540, "text": "\n25 Oct, 2021" }, { "code": null, "e": 36750, "s": 36568, "text": "Hot Standby Router Protocol (HSRP) is a CISCO proprietary protocol, which provides redundancy for a local subnet. In HSRP, two or more routers gives an illusion of...
EmberJS - Template Condition Unless
It executes only false block of statements. {{#unless falsy_condition}} //block of statement {{/unless}} The example given below shows the use of the unless conditional helper in the Ember.js. Create a template called application.hbs under app/templates/ with the following code − {{#unless check}} <h3> boolean v...
[ { "code": null, "e": 1942, "s": 1898, "text": "It executes only false block of statements." }, { "code": null, "e": 2007, "s": 1942, "text": "{{#unless falsy_condition}}\n //block of statement\n{{/unless}}\n" }, { "code": null, "e": 2183, "s": 2007, "text": ...
D3.js - Drawing Charts
D3.js is used to create a static SVG chart. It helps to draw the following charts − Bar Chart Circle Chart Pie Chart Donut Chart Line Chart Bubble Chart, etc. This chapter explains about drawing charts in D3. Let us understand each of these in detail. Bar charts are one of the most commonly used types of graph and are ...
[ { "code": null, "e": 2214, "s": 2130, "text": "D3.js is used to create a static SVG chart. It helps to draw the following charts −" }, { "code": null, "e": 2224, "s": 2214, "text": "Bar Chart" }, { "code": null, "e": 2237, "s": 2224, "text": "Circle Chart" }...
How to adjust the width and height of iframe to fit with content in it ? - GeeksforGeeks
30 Jun, 2020 Using iframe tag the content inside the tag is displayed with a default size if the height and width are not specified. thou the height and width are specified then also the content of the iframe tag is not displayed in the same size of the main content. It is difficult to set the size of the content in th...
[ { "code": null, "e": 24978, "s": 24950, "text": "\n30 Jun, 2020" }, { "code": null, "e": 25552, "s": 24978, "text": "Using iframe tag the content inside the tag is displayed with a default size if the height and width are not specified. thou the height and width are specified the...
How to write Python regular expression to get zero or more occurrences within the pattern?
* An asterisk meta-character in a regular expression indicates 0 or more occurrences of the pattern to its left The following code matches and prints the zero or more occurrences of the pattern '\w' in the string 'chihua huahua' import re s = 'chihua huahua' result = re.findall(r'\w*', s) print result This gives ...
[ { "code": null, "e": 1180, "s": 1062, "text": "* An asterisk meta-character in a regular expression indicates 0 or more occurrences of the pattern to its left" }, { "code": null, "e": 1297, "s": 1180, "text": "The following code matches and prints the zero or more occurrenc...
Print all pairs with given sum in C++
In this problem, we are given an array of integers and an integer sum and we have to print all pairs of integers whose sum is equal to the sum value. Let’s take an example to understand the problem : Input − array = {1, 6, -2, 3} sum = 4 Output − (1, 3) , (6, -2) Here, we need pairs with the given sum value. A simple s...
[ { "code": null, "e": 1212, "s": 1062, "text": "In this problem, we are given an array of integers and an integer sum and we have to print all pairs of integers whose sum is equal to the sum value." }, { "code": null, "e": 1262, "s": 1212, "text": "Let’s take an example to underst...