title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Multinomial Models for Nominal Data | by Yufeng | Towards Data Science
The popular multinomial logistic regression is known as an extension of the binomial logistic regression model, in order to deal with more than two possible discrete outcomes. However, the multinomial logistic regression is not designed to be a general multi-class classifier but designed specifically for the nominal mu...
[ { "code": null, "e": 347, "s": 171, "text": "The popular multinomial logistic regression is known as an extension of the binomial logistic regression model, in order to deal with more than two possible discrete outcomes." }, { "code": null, "e": 507, "s": 347, "text": "However, t...
GATE | GATE CS 2010 | Question 43 - GeeksforGeeks
28 Jun, 2021 Which of the following functional dependencies hold for relations R(A, B, C) and S(B, D, E): B -> A A -> C The relation R contains 200 tuples and the rel ation S contains 100 tuples. What is the maximum number of tuples possible in the natural join of R and S (R natural join S)(A) 100(B) 200(C) 300(D) 2000...
[ { "code": null, "e": 24123, "s": 24095, "text": "\n28 Jun, 2021" }, { "code": null, "e": 24216, "s": 24123, "text": "Which of the following functional dependencies hold for relations R(A, B, C) and S(B, D, E):" }, { "code": null, "e": 24230, "s": 24216, "text"...
Linked List Matrix | Practice | GeeksforGeeks
Given a Matrix mat of N*N size, the task is to complete the function constructLinkedMatrix(), that constructs a 2D linked list representation of the given matrix. Input : 2D matrix 1 2 3 4 5 6 7 8 9 Output : 1 -> 2 -> 3 -> NULL | | | v v v 4 -> 5 -> 6 -> NULL | | | v v v 7 -> 8 -> 9 -> NULL | ...
[ { "code": null, "e": 401, "s": 238, "text": "Given a Matrix mat of N*N size, the task is to complete the function constructLinkedMatrix(), that constructs a 2D linked list representation of the given matrix." }, { "code": null, "e": 595, "s": 401, "text": "Input : 2D matrix \n1 2...
Java HashSet
A HashSet is a collection of items where every item is unique, and it is found in the java.util package: Create a HashSet object called cars that will store strings: import java.util.HashSet; // Import the HashSet class HashSet<String> cars = new HashSet<String>(); The HashSet class has many useful methods. For exam...
[ { "code": null, "e": 106, "s": 0, "text": "A HashSet is a collection of items where every item is unique, and it is found in the java.util \npackage:" }, { "code": null, "e": 167, "s": 106, "text": "Create a HashSet object called cars that will store strings:" }, { "code"...
Java Program to Convert TimeStamp to Date - GeeksforGeeks
17 Jan, 2022 Date Time class is used to display date and time and manipulate date and time in java and in addition to this it is also used for formatting date and time class in java across time zone associated data. So in order to import this class from a package called java.utils Timestamp class can be converted to Da...
[ { "code": null, "e": 23557, "s": 23529, "text": "\n17 Jan, 2022" }, { "code": null, "e": 23826, "s": 23557, "text": "Date Time class is used to display date and time and manipulate date and time in java and in addition to this it is also used for formatting date and time class in...
Feature Selection by Chi-Square | Towards Data Science
In our everyday data science work, we often encounter categorical features. Some people would be confused about how to handle these features, especially when we want to create a prediction model where those models basically an equation that accepting number; not a category. One way is to encode all the category variabl...
[ { "code": null, "e": 447, "s": 172, "text": "In our everyday data science work, we often encounter categorical features. Some people would be confused about how to handle these features, especially when we want to create a prediction model where those models basically an equation that accepting numb...
Detectron2 : The bare basic end to end tutorial | by Yousry Mohamed | Towards Data Science
In 2018, Facebook AI developed an object detection library called Detectron. It was an amazing library but a bit hard to use. An earlier version of myself wrote a blog post on just how to install Detectron and run the sample demos, nothing more. Detectron was a bit hard to install and use and it was powered by Caffe2. ...
[ { "code": null, "e": 638, "s": 172, "text": "In 2018, Facebook AI developed an object detection library called Detectron. It was an amazing library but a bit hard to use. An earlier version of myself wrote a blog post on just how to install Detectron and run the sample demos, nothing more. Detectron...
Amazon Interview Experience for SDE-1 | 7 Months Experienced - GeeksforGeeks
22 Aug, 2021 Online Round: Question-related to the priority queueSimple Ad Hoc question Question-related to the priority queue Simple Ad Hoc question Round 1(Chime Interview): Taken by SDE 2 (1 hour, 15 mins) There are N bubbles in an array. A bubble with a positive value means it’s moving towards the right and has a m...
[ { "code": null, "e": 25429, "s": 25401, "text": "\n22 Aug, 2021" }, { "code": null, "e": 25443, "s": 25429, "text": "Online Round:" }, { "code": null, "e": 25504, "s": 25443, "text": "Question-related to the priority queueSimple Ad Hoc question" }, { "...
Benchmarking and Profiling
In this chapter, we will learn how benchmarking and profiling help in addressing performance issues. Suppose we had written a code and it is giving the desired result too but what if we want to run this code a bit faster because the needs have changed. In this case, we need to find out what parts of our code are slowin...
[ { "code": null, "e": 2023, "s": 1922, "text": "In this chapter, we will learn how benchmarking and profiling help in addressing performance issues." }, { "code": null, "e": 2325, "s": 2023, "text": "Suppose we had written a code and it is giving the desired result too but what if...
Video Facial Expression and Awareness Detection with Fast.ai and OpenCV | by Joyce Zheng | Towards Data Science
The inspiration behind this? The FBI agent watching me through my webcam, but replaced by deep learning :) The goal of this tutorial? Train a facial expression classification model with the fast.ai library, read facial expressions from your webcam or a video file, and finally, add in facial landmarking to track your ey...
[ { "code": null, "e": 279, "s": 172, "text": "The inspiration behind this? The FBI agent watching me through my webcam, but replaced by deep learning :)" }, { "code": null, "e": 614, "s": 279, "text": "The goal of this tutorial? Train a facial expression classification model with ...
XML DOM - Quick Guide
The Document Object Model (DOM) is a W3C standard. It defines a standard for accessing documents like HTML and XML. Definition of DOM as put by the W3C is − DOM defines the objects and properties and methods (interface) to access all XML elements. It is separated into 3 different parts / levels − Core DOM − standard mo...
[ { "code": null, "e": 2404, "s": 2288, "text": "The Document Object Model (DOM) is a W3C standard. It defines a standard for accessing documents like HTML and XML." }, { "code": null, "e": 2445, "s": 2404, "text": "Definition of DOM as put by the W3C is −" }, { "code": nul...
How to count number of rows in a table with jQuery?
Live Demo <html> <head> <title>table</title> <style type="text/css"> table,th,td { border:2px solid black; margin-left:400px; } h2 { margin-left:400px; } button { margin-left:400px; } </style> <script src="../../Scripts/jquery-1.4.1.min.js" type="text/javascript"></scr...
[ { "code": null, "e": 1073, "s": 1062, "text": " Live Demo" }, { "code": null, "e": 1922, "s": 1073, "text": "<html>\n<head>\n<title>table</title>\n <style type=\"text/css\">\n table,th,td {\n border:2px solid black;\n margin-left:400px;\n }\n h2 {\n margin-...
Deletion of array of objects in C++ - GeeksforGeeks
18 Jan, 2021 Need for deletion of the object: To avoid memory leak as when an object is created dynamically using new, it occupies memory in the Heap Section. If objects are not deleted explicitly then the program will crash during runtime. Program 1: Create an object of the class which is created dynamically using the...
[ { "code": null, "e": 24098, "s": 24070, "text": "\n18 Jan, 2021" }, { "code": null, "e": 24131, "s": 24098, "text": "Need for deletion of the object:" }, { "code": null, "e": 24244, "s": 24131, "text": "To avoid memory leak as when an object is created dynamic...
Beans and Dependency Injection
In Spring Boot, we can use Spring Framework to define our beans and their dependency injection. The @ComponentScan annotation is used to find beans and the corresponding injected with @Autowired annotation. If you followed the Spring Boot typical layout, no need to specify any arguments for @ComponentScan annotation. A...
[ { "code": null, "e": 3232, "s": 3025, "text": "In Spring Boot, we can use Spring Framework to define our beans and their dependency injection. The @ComponentScan annotation is used to find beans and the corresponding injected with @Autowired annotation." }, { "code": null, "e": 3418, ...
How to create a dotted vertical line using ggplot2 in R?
To create a vertical line using ggplot2, we can use geom_vline function of ggplot2 package and if we want to have a dotted vertical line then linetype will be set to 3 inside the same function. To draw the line, we will have to provide xintercept because the line will start on X-axis. Check out the below example to und...
[ { "code": null, "e": 1348, "s": 1062, "text": "To create a vertical line using ggplot2, we can use geom_vline function of ggplot2 package and if we want to have a dotted vertical line then linetype will be set to 3 inside the same function. To draw the line, we will have to provide xintercept becaus...
How do you declare an interface in C++?
An interface describes the behavior or capabilities of a C++ class without committing to a particular implementation of that class. The C++ interfaces are implemented using abstract classes and these abstract classes should not be confused with data abstraction which is a concept of keeping implementation details separ...
[ { "code": null, "e": 1194, "s": 1062, "text": "An interface describes the behavior or capabilities of a C++ class without committing to a particular implementation of that class." }, { "code": null, "e": 1408, "s": 1194, "text": "The C++ interfaces are implemented using abstract ...
RTOS Introduction with Arduino
RTOS stands for Real Time Operating System. It is used to run multiple tasks concurrently, schedule them as required, and enable them to share resources. Now, while getting into the details of RTOS is out of the scope of this article, we will walk through an example that will give you a fair idea of RTOS. For now, you ...
[ { "code": null, "e": 1592, "s": 1062, "text": "RTOS stands for Real Time Operating System. It is used to run multiple tasks concurrently, schedule them as required, and enable them to share resources. Now, while getting into the details of RTOS is out of the scope of this article, we will walk throu...
Statistical Significance Explained | by Will Koehrsen | Towards Data Science
What does it mean to prove something with data? As the dean at a major university, you receive a concerning report showing your students get an average of 6.80 hours of sleep per night compared to the national college average of 7.02 hours. The student body president is worried about the health of students and points t...
[ { "code": null, "e": 219, "s": 171, "text": "What does it mean to prove something with data?" }, { "code": null, "e": 852, "s": 219, "text": "As the dean at a major university, you receive a concerning report showing your students get an average of 6.80 hours of sleep per night c...
Responsible Machine Learning with Error Analysis | by Besmira Nushi | Towards Data Science
Website: ErrorAnalysis.ai Github repository: https://github.com/microsoft/responsible-ai-widgets/ Machine Learning (ML) teams who deploy models in the real world often face the challenges of conducting rigorous performance evaluation and testing for ML models. How often do we read claims such as “Model X is 90% on a gi...
[ { "code": null, "e": 197, "s": 171, "text": "Website: ErrorAnalysis.ai" }, { "code": null, "e": 269, "s": 197, "text": "Github repository: https://github.com/microsoft/responsible-ai-widgets/" }, { "code": null, "e": 1249, "s": 269, "text": "Machine Learning (...
Financial Fraud Detection with AutoXGB | by Kenneth Leung | Towards Data Science
XGBoost has established itself as one of the most important machine learning algorithms due to its versatility and impressive performance. Having used XGBoost for previous projects, I am always open to making its implementation faster, better, and cheaper. My curiosity was piqued when I came across AutoXGB, which claim...
[ { "code": null, "e": 311, "s": 172, "text": "XGBoost has established itself as one of the most important machine learning algorithms due to its versatility and impressive performance." }, { "code": null, "e": 581, "s": 311, "text": "Having used XGBoost for previous projects, I am...
How to create a canvas image using Fabric.js ? - GeeksforGeeks
07 Jan, 2022 In this article, we are going to see how to create a canvas-like image in JavaScript. Thee canvas like image means the image is movable and can be resized according to requirement. Approach: To make this possible we are going to use a JavaScript library called FabricJS. After importing the library, we will...
[ { "code": null, "e": 24391, "s": 24363, "text": "\n07 Jan, 2022" }, { "code": null, "e": 24572, "s": 24391, "text": "In this article, we are going to see how to create a canvas-like image in JavaScript. Thee canvas like image means the image is movable and can be resized accordin...
Modin: Accelerating Your Pandas Functions by Changing One Line of Code | by George Seif | Towards Data Science
Want to be inspired? Come join my Super Quotes newsletter. 😎 Pandas is the go-to library for processing data in Python. It’s easy to use and quite flexible when it comes to handling different types and sizes of data. It has tons of different functions that make manipulating data a breeze. But there is one drawback: Pa...
[ { "code": null, "e": 232, "s": 171, "text": "Want to be inspired? Come join my Super Quotes newsletter. 😎" }, { "code": null, "e": 461, "s": 232, "text": "Pandas is the go-to library for processing data in Python. It’s easy to use and quite flexible when it comes to handling dif...
CSS position: absolute;
The position: absolute; property allows you to position element relative to the nearest positioned ancestor. You can try to run the following code to implement CSS position: absolute; Live Demo <!DOCTYPE html> <html> <head> <style> div.one { position: relative; width: 500px; ...
[ { "code": null, "e": 1171, "s": 1062, "text": "The position: absolute; property allows you to position element relative to the nearest positioned ancestor." }, { "code": null, "e": 1246, "s": 1171, "text": "You can try to run the following code to implement CSS position: absolute...
How to Configure Nginx as Reverse Proxy for WebSocket
The WebSocket is a protocol which provides a way of creating web applications that supports real-time bi-directional communication between both clients and servers. WebSocket makes it much easier to develop these types of applications. Most modern browsers support WebSocket including Firefox, Internet Explorer, Chrome,...
[ { "code": null, "e": 1488, "s": 1062, "text": "The WebSocket is a protocol which provides a way of creating web applications that supports real-time bi-directional communication between both clients and servers. WebSocket makes it much easier to develop these types of applications. Most modern brows...
MATLAB - Scalar Operations of Matrices
When you add, subtract, multiply or divide a matrix by a number, this is called the scalar operation. Scalar operations produce a new matrix with same number of rows and columns with each element of the original matrix added to, subtracted from, multiplied by or divided by the number. Create a script file with the foll...
[ { "code": null, "e": 2243, "s": 2141, "text": "When you add, subtract, multiply or divide a matrix by a number, this is called the scalar operation." }, { "code": null, "e": 2427, "s": 2243, "text": "Scalar operations produce a new matrix with same number of rows and columns with...
QTP - Ordinal Identifiers
Sometimes, there are series of objects with same class name and properties. Let us say, in a window, there are series of checkboxes with the same set of properties. If we want to act on those objects, we need to uniquely identify them so that QTP will be able to act on it. An Ordinal Identifier assigns a numerical valu...
[ { "code": null, "e": 2396, "s": 2122, "text": "Sometimes, there are series of objects with same class name and properties. Let us say, in a window, there are series of checkboxes with the same set of properties. If we want to act on those objects, we need to uniquely identify them so that QTP will b...
Left pad a String in Java with zeros
The following is our string − String str = "Tim"; Now take a StringBuilder object − StringBuilder strBuilder = new StringBuilder(); Perform left padding and extend the string length. We have set it till 20, that would include the current string as well. The zeros that will be padded comes on the left. Append the zeros ...
[ { "code": null, "e": 1092, "s": 1062, "text": "The following is our string −" }, { "code": null, "e": 1112, "s": 1092, "text": "String str = \"Tim\";" }, { "code": null, "e": 1146, "s": 1112, "text": "Now take a StringBuilder object −" }, { "code": nul...
Function pointers in Java
From Java 8 onwards, the lambda expression is introduced which acts as function pointers. Lambda expressions are introduced in Java 8 and are touted to be the biggest feature of Java 8. Lambda expression facilitates functional programming and simplifies the development a lot. A lambda expression is characterized by the...
[ { "code": null, "e": 1152, "s": 1062, "text": "From Java 8 onwards, the lambda expression is introduced which acts as function pointers." }, { "code": null, "e": 1339, "s": 1152, "text": "Lambda expressions are introduced in Java 8 and are touted to be the biggest feature of Java...
C++ Pointer Arithmetic
As you understood pointer is an address which is a numeric value; therefore, you can perform arithmetic operations on a pointer just as you can a numeric value. There are four arithmetic operators that can be used on pointers: ++, --, +, and - To understand pointer arithmetic, let us consider that ptr is an integer poi...
[ { "code": null, "e": 2562, "s": 2318, "text": "As you understood pointer is an address which is a numeric value; therefore, you can perform arithmetic operations on a pointer just as you can a numeric value. There are four arithmetic operators that can be used on pointers: ++, --, +, and -" }, {...
How to Add Markers to a Graph Plot in Matplotlib with Python?
16 Nov, 2020 Prerequisite: Matplotlib In this article we will learn how to add markers to a Graph Plot in Matplotlib with Python. For that just see some concepts that we will use in our work. Matplotlib : Matplotlib is a tremendous visualization library in Python for 2D plots of arrays. Matplotlib may be a multi-platf...
[ { "code": null, "e": 28, "s": 0, "text": "\n16 Nov, 2020" }, { "code": null, "e": 54, "s": 28, "text": "Prerequisite: Matplotlib " }, { "code": null, "e": 208, "s": 54, "text": "In this article we will learn how to add markers to a Graph Plot in Matplotlib wit...
turtle.ycor() function in Python
21 Jul, 2020 The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses Tkinter for the underlying graphics, it needs a version of Python installed with Tk support. This function is used to return the turtle’s y coordinate of the current position of turtl...
[ { "code": null, "e": 28, "s": 0, "text": "\n21 Jul, 2020" }, { "code": null, "e": 245, "s": 28, "text": "The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses Tkinter for the underlying graphics, it needs a ver...
Ruby | String hex Method
09 Dec, 2019 hex is a String class method in Ruby which is used to treats the leading characters from the given string as a string of hexadecimal digits (with an optional sign and an optional 0x) and returns the corresponding number. Zero is returned on error. Syntax: str.hex Parameters: Here, str is the given string. ...
[ { "code": null, "e": 28, "s": 0, "text": "\n09 Dec, 2019" }, { "code": null, "e": 276, "s": 28, "text": "hex is a String class method in Ruby which is used to treats the leading characters from the given string as a string of hexadecimal digits (with an optional sign and an optio...
Height Checker in Python
Suppose a set of students have to be arranged in non-decreasing order of their heights for a photograph. If we have an array of students, we have to return the minimum number of students that are not present in correct position. So if the array is like [1, 1, 4, 2, 1, 3], then output will be 3. So students with height ...
[ { "code": null, "e": 1444, "s": 1062, "text": "Suppose a set of students have to be arranged in non-decreasing order of their heights for a photograph. If we have an array of students, we have to return the minimum number of students that are not present in correct position. So if the array is like ...
Bootstrap table-striped class
To implement the table-striped class in Bootstrap, you can try to run the following code: Live Demo <!DOCTYPE html> <html> <head> <title>Bootstrap Table</title> <meta name ="viewport" content = "width = device-width, initial-scale = 1"> <link rel = "stylesheet" href = "https://stackpath.bootstrapcd...
[ { "code": null, "e": 1152, "s": 1062, "text": "To implement the table-striped class in Bootstrap, you can try to run the following code:" }, { "code": null, "e": 1162, "s": 1152, "text": "Live Demo" }, { "code": null, "e": 1937, "s": 1162, "text": "<!DOCTYPE h...
C# | Finding the index of last element in the array - GeeksforGeeks
01 Feb, 2019 GetUpperBound() Method is used to find the index of the last element of the specified dimension in the array. Syntax: public int GetUpperBound (int dimension); Here, dimension is a zero-based dimension of the array whose upper bound needs to be determined. Return Value:The return type of this method is Sys...
[ { "code": null, "e": 24093, "s": 24065, "text": "\n01 Feb, 2019" }, { "code": null, "e": 24203, "s": 24093, "text": "GetUpperBound() Method is used to find the index of the last element of the specified dimension in the array." }, { "code": null, "e": 24211, "s": ...
Design Patterns - Bridge Pattern
Bridge is used when we need to decouple an abstraction from its implementation so that the two can vary independently. This type of design pattern comes under structural pattern as this pattern decouples implementation class and abstract class by providing a bridge structure between them. This pattern involves an inter...
[ { "code": null, "e": 3041, "s": 2751, "text": "Bridge is used when we need to decouple an abstraction from its implementation so that the two can vary independently. This type of design pattern comes under structural pattern as this pattern decouples implementation class and abstract class by provid...
How to retrieve the Azure VM Subscription Name using PowerShell?
Once you are connected to the Azure Account, there are possibilities that the Get-AzVM will display the VMs from all the Azure Subscriptions. To find the specific Azure VM Subscription name, we will first retrieve the details of the VM using the Get-AzVM and it has an ID property that contains the Subscription ID and f...
[ { "code": null, "e": 1204, "s": 1062, "text": "Once you are connected to the Azure Account, there are possibilities that the Get-AzVM will display the VMs from all the Azure Subscriptions." }, { "code": null, "e": 1473, "s": 1204, "text": "To find the specific Azure VM Subscripti...
HTML | Window createPopup() Method
11 Oct, 2019 The createPopup() method in html window is used to create a pop-up window. Syntax: window.createPopup() Example: <html> <head> <title> DOM createPopup() Method </title> <style> h1 { color: green; } </style></head> <head> <script type="text/javascript"> fu...
[ { "code": null, "e": 28, "s": 0, "text": "\n11 Oct, 2019" }, { "code": null, "e": 103, "s": 28, "text": "The createPopup() method in html window is used to create a pop-up window." }, { "code": null, "e": 111, "s": 103, "text": "Syntax:" }, { "code": n...
Python | Get the substring from given string using list slicing
05 Jul, 2022 Given a string, write a Python program to get the substring from given string using list slicing. Let’s try to get this using different examples. A substring is a portion of a string. Python offers a variety of techniques for producing substrings, as well as for determining the index of a substring and mor...
[ { "code": null, "e": 28, "s": 0, "text": "\n05 Jul, 2022" }, { "code": null, "e": 174, "s": 28, "text": "Given a string, write a Python program to get the substring from given string using list slicing. Let’s try to get this using different examples." }, { "code": null, ...
Connect Nodes at same Level (Level Order Traversal)
24 Jun, 2022 Write a function to connect all the adjacent nodes at the same level in a binary tree. Example: Input Tree A / \ B C / \ \ D E F Output Tree A--->NULL / \ B-->C-->NULL / \ \ D-->E-->F-->NULL We have already discussed O(n^2) time and O approach ...
[ { "code": null, "e": 54, "s": 26, "text": "\n24 Jun, 2022" }, { "code": null, "e": 141, "s": 54, "text": "Write a function to connect all the adjacent nodes at the same level in a binary tree." }, { "code": null, "e": 151, "s": 141, "text": "Example: " }, ...
C# | IsNullOrWhiteSpace() Method
31 Jan, 2019 In C#, IsNullOrWhiteSpace() is a string method. It is used to check whether the specified string is null or contains only white-space characters. A string will be null if it has not been assigned a value or has explicitly been assigned a value of null. Syntax: public static bool IsNullOrWhiteSpace(String s...
[ { "code": null, "e": 28, "s": 0, "text": "\n31 Jan, 2019" }, { "code": null, "e": 281, "s": 28, "text": "In C#, IsNullOrWhiteSpace() is a string method. It is used to check whether the specified string is null or contains only white-space characters. A string will be null if it h...
How to clear session storage data with specified session storage item ?
22 Jan, 2021 In this article, we are going to learn how we can clear the session storage of a browser using JavaScript by getting the specified session storage item. We can achieve this by using Window sessionStorage( ) property. The Window sessionStorage() property is used for saving key/value pairs in a web browser. ...
[ { "code": null, "e": 28, "s": 0, "text": "\n22 Jan, 2021" }, { "code": null, "e": 181, "s": 28, "text": "In this article, we are going to learn how we can clear the session storage of a browser using JavaScript by getting the specified session storage item." }, { "code": ...
Javascript Program To Check For Balanced Brackets In An Expression (Well-Formedness) Using Stack
14 Dec, 2021 Given an expression string exp, write a program to examine whether the pairs and the orders of “{“, “}”, “(“, “)”, “[“, “]” are correct in exp. Example: Input: exp = “[()]{}{[()()]()}” Output: Balanced Input: exp = “[(])” Output: Not Balanced Algorithm: Declare a character stack S. Now traverse the expr...
[ { "code": null, "e": 28, "s": 0, "text": "\n14 Dec, 2021" }, { "code": null, "e": 172, "s": 28, "text": "Given an expression string exp, write a program to examine whether the pairs and the orders of “{“, “}”, “(“, “)”, “[“, “]” are correct in exp." }, { "code": null, ...
JavaScript Course | Task Tracker Project
13 Jun, 2022 Previous article: JavaScript Course | Objects in JavaScriptProject Introduction In this final article of this course, we will learn how to make a simple javascript application where we can add tasks, delete tasks and edit them too. Pure(Vanilla) JavaScript has been used and we will also make use of DOM man...
[ { "code": null, "e": 52, "s": 24, "text": "\n13 Jun, 2022" }, { "code": null, "e": 424, "s": 52, "text": "Previous article: JavaScript Course | Objects in JavaScriptProject Introduction In this final article of this course, we will learn how to make a simple javascript applicatio...
Introduction to XPath
11 May, 2022 XPath(XML Path) is an expression which is used to find the element or say node in the XML document. In Selenium it is commonly used to find the web elements. Example: //input[@id = 'fakebox-input'] In this example, We are locating the ‘input’ element whose ‘id’ is equal to ‘fakebox-input’ XML Code: html ...
[ { "code": null, "e": 28, "s": 0, "text": "\n11 May, 2022" }, { "code": null, "e": 195, "s": 28, "text": "XPath(XML Path) is an expression which is used to find the element or say node in the XML document. In Selenium it is commonly used to find the web elements. Example:" }, ...
Python – seaborn.pointplot() method
01 Aug, 2020 Seaborn is an amazing visualization library for statistical graphics plotting in Python. It provides beautiful default styles and color palettes to make statistical plots more attractive. It is built on the top of matplotlib library and also closely integrated to the data structures from pandas. This metho...
[ { "code": null, "e": 28, "s": 0, "text": "\n01 Aug, 2020" }, { "code": null, "e": 325, "s": 28, "text": "Seaborn is an amazing visualization library for statistical graphics plotting in Python. It provides beautiful default styles and color palettes to make statistical plots more...
What are the differences between LESS and SASS ?
25 Jul, 2021 This article aims to emphasize the key features & differences between the two CSS pre-processors, LESS and SASS. Before diving directly into the difference section, first, let’s talk about these two pre-processors. If you don’t know the basics of this pre-processor, then please refer to LESS & SASS. LESS: ...
[ { "code": null, "e": 28, "s": 0, "text": "\n25 Jul, 2021" }, { "code": null, "e": 329, "s": 28, "text": "This article aims to emphasize the key features & differences between the two CSS pre-processors, LESS and SASS. Before diving directly into the difference section, first, let...
Import and Export in Node.js
19 Aug, 2020 Importing and exporting files are important parts of any programming language. Importing functions or modules enhances the reusability of code. When the application grows in size, maintaining a single file with all the functions and logic becomes difficult. It also hinders the process of debugging. Therefo...
[ { "code": null, "e": 52, "s": 24, "text": "\n19 Aug, 2020" }, { "code": null, "e": 473, "s": 52, "text": "Importing and exporting files are important parts of any programming language. Importing functions or modules enhances the reusability of code. When the application grows in ...
Build Your First Interactive Data Science Web App with Streamlit | by Yong Cui | Towards Data Science
Web applications are one of the most convenient ways to showcase your data science work. Building web applications can be daunting to many data scientists if they don’t have any web development experience. However, with the streamlit framework, web applications are no longer difficult for data scientists — if you know ...
[ { "code": null, "e": 686, "s": 172, "text": "Web applications are one of the most convenient ways to showcase your data science work. Building web applications can be daunting to many data scientists if they don’t have any web development experience. However, with the streamlit framework, web applic...
GCD and LCM of two numbers in Java
Following is an example which computes find LCM and GCD of two given numbers. import java.util.Scanner; public class LCM_GCD { public static void lcm(int a, int b){ int max, step, lcm = 0; if(a > b){ max = step = a; } else{ max = step = b; } while(a!= 0) { if(...
[ { "code": null, "e": 1140, "s": 1062, "text": "Following is an example which computes find LCM and GCD of two given numbers." }, { "code": null, "e": 2094, "s": 1140, "text": "import java.util.Scanner;\npublic class LCM_GCD {\n public static void lcm(int a, int b){\n int m...
DocumentDB - Access Control
DocumentDB provides the concepts to control access to DocumentDB resources. Access to DocumentDB resources is governed by a master key token or a resource token. Connections based on resource tokens can only access the resources specified by the tokens and no other resources. Resource tokens are based on user permissio...
[ { "code": null, "e": 2604, "s": 2280, "text": "DocumentDB provides the concepts to control access to DocumentDB resources. Access to DocumentDB resources is governed by a master key token or a resource token. Connections based on resource tokens can only access the resources specified by the tokens ...
How to make div height expand with its content using CSS ? - GeeksforGeeks
20 Dec, 2021 The height property is used to set the height of an element. The height property does not contains padding, margin and border of element. The height property contains many values which define the height of an element. The height property values are listed below:Syntax: height: length|percentage|auto|initi...
[ { "code": null, "e": 24870, "s": 24842, "text": "\n20 Dec, 2021" }, { "code": null, "e": 25141, "s": 24870, "text": "The height property is used to set the height of an element. The height property does not contains padding, margin and border of element. The height property conta...
Ensemble models for Classification | by Gaurika Tyagi | Towards Data Science
You have cleaned your data and removed all correlating features. You have also visualized your dataset and know the class labels are separable. You have also tuned your hyper-parameters. That's great, but why isn’t your model performing well? Did you try stacking your models? Traditionally, we have modeled our data wit...
[ { "code": null, "e": 415, "s": 172, "text": "You have cleaned your data and removed all correlating features. You have also visualized your dataset and know the class labels are separable. You have also tuned your hyper-parameters. That's great, but why isn’t your model performing well?" }, { ...
IDE | GeeksforGeeks | A computer science portal for geeks
Please enter your email address or userHandle.
[]
Finding the LCM and HCF of decimal numbers - GeeksforGeeks
12 Aug, 2020 Finding the LCM and HCF are most frequently asked questions in any competitive exams. Finding LCM and HCF for natural numbers are taught in our school level but in some exams they also ask to find the LCM and HCF of decimal numbers. There is easy process to find the LCM and HCF of decimal numbers similar t...
[ { "code": null, "e": 24760, "s": 24732, "text": "\n12 Aug, 2020" }, { "code": null, "e": 24993, "s": 24760, "text": "Finding the LCM and HCF are most frequently asked questions in any competitive exams. Finding LCM and HCF for natural numbers are taught in our school level but in...
Python Strings decode() method - GeeksforGeeks
19 Nov, 2020 decode() is a method specified in Strings in Python 2.This method is used to convert from one encoding scheme, in which argument string is encoded to the desired encoding scheme. This works opposite to the encode. It accepts the encoding of the encoding string to decode it and returns the original string. ...
[ { "code": null, "e": 23853, "s": 23825, "text": "\n19 Nov, 2020" }, { "code": null, "e": 24160, "s": 23853, "text": "decode() is a method specified in Strings in Python 2.This method is used to convert from one encoding scheme, in which argument string is encoded to the desired e...
JavaScript | padEnd() Method - GeeksforGeeks
18 Nov, 2019 The padEnd() method in JavaScript is used to pad a string with another string until it reaches the given length. The padding is applied from the right end of the string. Syntax: string.padEnd( targetLength, padString ) Parameters: This method accepts two parameters as mentioned above and described below: t...
[ { "code": null, "e": 24909, "s": 24881, "text": "\n18 Nov, 2019" }, { "code": null, "e": 25079, "s": 24909, "text": "The padEnd() method in JavaScript is used to pad a string with another string until it reaches the given length. The padding is applied from the right end of the s...
How to create a Popup Menu in Tkinter?
We need menubars in applications where user interaction is required. Menus can be created by initializing the Menu(parent) object along with the menu items. A popup Menu can be created by initializing tk_popup(x_root,y_root, False) which ensures that the menu is visible on the screen. Now, we will add an event which ca...
[ { "code": null, "e": 1518, "s": 1062, "text": "We need menubars in applications where user interaction is required. Menus can be created by initializing the Menu(parent) object along with the menu items. A popup Menu can be created by initializing tk_popup(x_root,y_root, False) which ensures that th...
Maximum Index | Practice | GeeksforGeeks
Given an array A[] of N positive integers. The task is to find the maximum of j - i subjected to the constraint of A[i] < A[j] and i < j. Example 1: Input: N = 2 A[] = {1, 10} Output: 1 Explanation: A[0]<A[1] so (j-i) is 1-0 = 1. Example 2: Input: N = 9 A[] = {34, 8, 10, 3, 2, 80, 30, 33, 1} Output: 6 Explanation: In...
[ { "code": null, "e": 378, "s": 238, "text": "Given an array A[] of N positive integers. The task is to find the maximum of j - i subjected to the constraint of A[i] < A[j] and i < j.\n " }, { "code": null, "e": 389, "s": 378, "text": "Example 1:" }, { "code": null, "e...
What is arguments object in JavaScript?
Arguments object in JavaScript is an object, which represents the arguments to the function executing. Its syntax has two arguments: [function.]arguments[p] You can try to run the following code to learn what are arguments object in JavaScript Live Demo <html> <body> <script> function functionArgument...
[ { "code": null, "e": 1195, "s": 1062, "text": "Arguments object in JavaScript is an object, which represents the arguments to the function executing. Its syntax has two arguments:" }, { "code": null, "e": 1219, "s": 1195, "text": "[function.]arguments[p]" }, { "code": nul...
Python’s «predict_proba» Doesn’t Actually Predict Probabilities (and How to Fix It) | by Samuele Mazzanti | Towards Data Science
Data scientists typically evaluate their predictive models in terms of accuracy or precision, but hardly ever ask themselves: “Is my model capable of predicting real probabilities?” However, an accurate estimate of probability is extremely valuable from a business point of view (sometimes even more valuable than a good...
[ { "code": null, "e": 297, "s": 171, "text": "Data scientists typically evaluate their predictive models in terms of accuracy or precision, but hardly ever ask themselves:" }, { "code": null, "e": 353, "s": 297, "text": "“Is my model capable of predicting real probabilities?”" }...
Difference between BIGINT and BIGINT(20) in MySQL?
The only difference between BIGINT and BIGINT(20) is for displaying width. The 20 can be used for displaying width. Let us see an example and create a table. Here, we have set BIGINT(20) − mysql> create table DemoTable ( Number bigint(20) zerofill ); Query OK, 0 rows affected (0.58 sec) Insert some records in the ta...
[ { "code": null, "e": 1178, "s": 1062, "text": "The only difference between BIGINT and BIGINT(20) is for displaying width. The 20 can be used for displaying width." }, { "code": null, "e": 1251, "s": 1178, "text": "Let us see an example and create a table. Here, we have set BIGINT...
Activity Recognition using Smartphones — Machine Learning application | by Karan Bhanot | Towards Data Science
When I first began to explore machine learning, I read numerous articles and research papers. One of the papers I discovered initially, involved using Machine Learning to classify activities. And even though implementation seemed a far-fetched goal at that time, I was intrigued by the application. Having gained some ex...
[ { "code": null, "e": 604, "s": 172, "text": "When I first began to explore machine learning, I read numerous articles and research papers. One of the papers I discovered initially, involved using Machine Learning to classify activities. And even though implementation seemed a far-fetched goal at tha...
Longest Distinct characters in string | Practice | GeeksforGeeks
Given a string S, find length of the longest substring with all distinct characters. Example 1: Input: S = "geeksforgeeks" Output: 7 Explanation: "eksforg" is the longest substring with all distinct characters. ​Example 2: Input: S = "aaa" Output: 1 Explanation: "a" is the longest substring with all distinct ch...
[ { "code": null, "e": 324, "s": 238, "text": "Given a string S, find length of the longest substring with all distinct characters. " }, { "code": null, "e": 335, "s": 324, "text": "Example 1:" }, { "code": null, "e": 452, "s": 335, "text": "Input:\nS = \"geeksf...
What is Bitwise OR Assignment Operator (|=) in JavaScript?
It performs OR operation on the right operand with the left operand and assigns the result to the left operand. You can try to run the following code to learn how to work with Bitwise OR Assignment Operator − <html> <body> <script> var a = 2; // Bit presentation 10 var b = 3; // Bit presentat...
[ { "code": null, "e": 1174, "s": 1062, "text": "It performs OR operation on the right operand with the left operand and assigns the result to the left operand." }, { "code": null, "e": 1271, "s": 1174, "text": "You can try to run the following code to learn how to work with Bitwis...
How to center a Tkinter widget in a sticky frame?
Tkinter has lots of inbuilt functions and methods that can be used configure the properties of Tkinter widgets. These properties vary with different geometry managers. The grid geometry manager is one of them which deals with many complex layout problems in any application. Grid geometry manager adds all the widgets in...
[ { "code": null, "e": 1447, "s": 1062, "text": "Tkinter has lots of inbuilt functions and methods that can be used configure the properties of Tkinter widgets. These properties vary with different geometry managers. The grid geometry manager is one of them which deals with many complex layout problem...
How to execute zombie and orphan process in a single C program?
In this section we will see how to execute zombie process and orphan process in a single program in C/C++. Before going to the main discussion, let us see what are the zombie process and orphan process. A zombie process is a process whose execution is completed but it still has an entry in the process table. Zombie pro...
[ { "code": null, "e": 1265, "s": 1062, "text": "In this section we will see how to execute zombie process and orphan process in a single program in C/C++. Before going to the main discussion, let us see what are the zombie process and orphan process." }, { "code": null, "e": 1639, "s"...
How to Create Browsers Window using HTML and CSS ? - GeeksforGeeks
08 Aug, 2021 The browser window is a tool to view the pages from the internet. It is used to search the content on the internet and get the relevant information from internet.Creating Structure: In this section, we will create a basic site structure and also attach the CDN link of the Font-Awesome for the icons which w...
[ { "code": null, "e": 30274, "s": 30246, "text": "\n08 Aug, 2021" }, { "code": null, "e": 30656, "s": 30274, "text": "The browser window is a tool to view the pages from the internet. It is used to search the content on the internet and get the relevant information from internet.C...
FarmEasy: Crop Recommendation for Farmers made easy | by Darshan Gandhi | Towards Data Science
Please leave a clap if you found this article useful, it helps me a lot! :D In order to mitigate the agrarian crisis in the current status quo, there is a need for better recommendation systems to alleviate the crisis by helping the farmers to make an informed decision before starting the cultivation of crops. The majo...
[ { "code": null, "e": 248, "s": 172, "text": "Please leave a clap if you found this article useful, it helps me a lot! :D" }, { "code": null, "e": 484, "s": 248, "text": "In order to mitigate the agrarian crisis in the current status quo, there is a need for better recommendation ...
Get faster pandas with Modin, even on your laptops. | by Parul Pandey | Towards Data Science
Scale your pandas workflows by changing one line of code Pandas is a library which needs no introduction in the field of data science. It provides high-performance, easy-to-use data structures and data analysis tools. However, when working with excessively large amounts of data, Pandas on a single core becomes insuffic...
[ { "code": null, "e": 229, "s": 172, "text": "Scale your pandas workflows by changing one line of code" }, { "code": null, "e": 1074, "s": 229, "text": "Pandas is a library which needs no introduction in the field of data science. It provides high-performance, easy-to-use data str...
Difference between window.location.href, window.location.replace and window.location.assign in JavaScript - GeeksforGeeks
30 Jun, 2021 Window.location is a property that returns a Location object with information about the document’s current location. This Location object represents the location (URL) of the object it is linked to i.e. holds all the information about the current document location (host, href, port, protocol, etc.) All thr...
[ { "code": null, "e": 24469, "s": 24441, "text": "\n30 Jun, 2021" }, { "code": null, "e": 24769, "s": 24469, "text": "Window.location is a property that returns a Location object with information about the document’s current location. This Location object represents the location (...
jQuery Effect - Slide Effect
The Slide effect can be used with show/hide/toggle. This slides the element out of the viewport. Here is the simple syntax to use this effect − selector.hide|show|toggle( "slide", {arguments}, speed ); Here is the description of all the arguments − direction − The direction of the effect. Can be "left", "right", "up",...
[ { "code": null, "e": 2419, "s": 2322, "text": "The Slide effect can be used with show/hide/toggle. This slides the element out of the viewport." }, { "code": null, "e": 2466, "s": 2419, "text": "Here is the simple syntax to use this effect −" }, { "code": null, "e": 2...
How to add a class on click of anchor tag using jQuery?
To add a class on click of anchor tag using jQuery, use the addClass() method. You can try to run the following code to learn how to implement adding a class on click of anchor tag using jQuery − Live Demo <html> <head> <script src = "https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> ...
[ { "code": null, "e": 1258, "s": 1062, "text": "To add a class on click of anchor tag using jQuery, use the addClass() method. You can try to run the following code to learn how to implement adding a class on click of anchor tag using jQuery −" }, { "code": null, "e": 1268, "s": 1258,...
Find length of the largest region in Boolean Matrix - GeeksforGeeks
09 Mar, 2022 Consider a matrix with rows and columns, where each cell contains either a ‘0’ or a ‘1’ and any cell containing a 1 is called a filled cell. Two cells are said to be connected if they are adjacent to each other horizontally, vertically, or diagonally. If one or more filled cells are also connected, they fo...
[ { "code": null, "e": 26471, "s": 26443, "text": "\n09 Mar, 2022" }, { "code": null, "e": 26830, "s": 26471, "text": "Consider a matrix with rows and columns, where each cell contains either a ‘0’ or a ‘1’ and any cell containing a 1 is called a filled cell. Two cells are said to ...
How to create a shallow copy of SortedList Object in C# - GeeksforGeeks
01 Feb, 2019 SortedList.Clone() Method is used to create a shallow copy of a SortedList object. Syntax: public virtual object Clone(); Return Value: It returns a shallow copy of the SortedList object. The type of returned value will be Object. Note: A shallow copy of a collection copies only the elements of the collect...
[ { "code": null, "e": 25517, "s": 25489, "text": "\n01 Feb, 2019" }, { "code": null, "e": 25600, "s": 25517, "text": "SortedList.Clone() Method is used to create a shallow copy of a SortedList object." }, { "code": null, "e": 25608, "s": 25600, "text": "Syntax:...
XAML - Custom Controls
XAML has one of the most powerful features provided to create custom controls which make it very easy to create feature-rich and customizable controls. Custom controls are used when all the built-in controls provided by Microsoft are not fulfilling your criteria or you don’t want to pay for 3rd party controls. In this ...
[ { "code": null, "e": 2235, "s": 1923, "text": "XAML has one of the most powerful features provided to create custom controls which make it very easy to create feature-rich and customizable controls. Custom controls are used when all the built-in controls provided by Microsoft are not fulfilling your...
Remember and copy passwords to clipboard using Pyperclip module in Python - GeeksforGeeks
19 Feb, 2020 It is always a difficult job to remember all our passwords for different accounts. So this is a really simple Python program which uses sys module to obtain account name as argument form the command terminal and pyperclip module to paste the respective account’s password to the clipboard. Pyperclip module ...
[ { "code": null, "e": 26450, "s": 26422, "text": "\n19 Feb, 2020" }, { "code": null, "e": 26740, "s": 26450, "text": "It is always a difficult job to remember all our passwords for different accounts. So this is a really simple Python program which uses sys module to obtain accoun...
How to get website links using Invoke-WebRequest in PowerShell?
To get the links present on the website using PowerShell, we can first retrieve the data from the webpage using the Invoke-WebRequest cmdlet. $req = Invoke-WebRequest -uri "https://theautomationcode.com" $req To retrieve only links we can use that property and there you will also find some sub-properties like InnerHTML...
[ { "code": null, "e": 1204, "s": 1062, "text": "To get the links present on the website using PowerShell, we can first retrieve the data from the webpage using the Invoke-WebRequest cmdlet." }, { "code": null, "e": 1271, "s": 1204, "text": "$req = Invoke-WebRequest -uri \"https://...
Swap Column Values in SQL Server - GeeksforGeeks
05 Nov, 2020 Introduction (Swap Column Values in SQL Server) :If you are a developer and have learned the programming languages, you might think that you will need a third variable or another temporary storage location to swap the values. Here, as you are a SQL Server DBA, you can simply swap them using a single update...
[ { "code": null, "e": 25285, "s": 25257, "text": "\n05 Nov, 2020" }, { "code": null, "e": 25604, "s": 25285, "text": "Introduction (Swap Column Values in SQL Server) :If you are a developer and have learned the programming languages, you might think that you will need a third vari...
Count Pairs Of Consecutive Zeros - GeeksforGeeks
22 Jan, 2022 Consider a sequence that starts with a 1 on a machine. At each successive step, the machine simultaneously transforms each digit 0 into the sequence 10 and each digit 1 into the sequence 01. After the first time step, the sequence 01 is obtained; after the second, the sequence 1001, after the third, the se...
[ { "code": null, "e": 25398, "s": 25370, "text": "\n22 Jan, 2022" }, { "code": null, "e": 25822, "s": 25398, "text": "Consider a sequence that starts with a 1 on a machine. At each successive step, the machine simultaneously transforms each digit 0 into the sequence 10 and each di...
C# program to determine if any two integers in array sum to given integer
The following is our array − int[] arr = new int[] { 7, 4, 6, 2 }; Let’s say the given intger that should be equal to sum of two other integers is − int res = 8; To get the sum and find the equality. for (int i = 0; i < arr.Length; i++) { for (int j = 0; j < arr.Length; j++) { if (i != j) { ...
[ { "code": null, "e": 1091, "s": 1062, "text": "The following is our array −" }, { "code": null, "e": 1141, "s": 1091, "text": "int[] arr = new int[] {\n 7,\n 4,\n 6,\n 2\n};" }, { "code": null, "e": 1223, "s": 1141, "text": "Let’s say the given intger ...
Built-in objects in Python (builtins)
The builtins module is automatically loaded every time Python interpreter starts, either as a top level execution environment or as interactive session. The Object class, which happens to be the base class for all Python objects, is defined in this module. All built-in data type classes such as numbers, string, list et...
[ { "code": null, "e": 1571, "s": 1062, "text": "The builtins module is automatically loaded every time Python interpreter starts, either as a top level execution environment or as interactive session. The Object class, which happens to be the base class for all Python objects, is defined in this modu...
How can I loop over entries in JSON using Python?
You can parse JSON files using the json module in Python. This module parses the json and puts it in a dict. You can then get the values from this like a normal dict. For example, if you have a json with the following content − { "id": "file", "value": "File", "popup": { "menuitem": [ {"value": "Ne...
[ { "code": null, "e": 1290, "s": 1062, "text": "You can parse JSON files using the json module in Python. This module parses the json and puts it in a dict. You can then get the values from this like a normal dict. For example, if you have a json with the following content −" }, { "code": nul...
A Deep Dive into Lane Detection with Hough Transform | by Nushaine Ferdinand | Towards Data Science
Lane line detection is one of the essential components of self-driving cars. There are many approaches to doing this. Here, we’ll look at the simplest approach using Hough Transform. Alright, let’s dive into it! So before we get started, we need a place to write our code. The IDE (environment) that I recommend is Jupyt...
[ { "code": null, "e": 383, "s": 171, "text": "Lane line detection is one of the essential components of self-driving cars. There are many approaches to doing this. Here, we’ll look at the simplest approach using Hough Transform. Alright, let’s dive into it!" }, { "code": null, "e": 668, ...
Number of pairs whose sum is a power of 2 - GeeksforGeeks
15 Nov, 2021 Given an array arr[] of positive integers, the task is to count the maximum possible number of pairs (arr[i], arr[j]) such that arr[i] + arr[j] is a power of 2. Note: One element can be used at most once to form a pair.Examples: Input: arr[] = {3, 11, 14, 5, 13} Output: 2 All valid pairs are (13, 3) and ...
[ { "code": null, "e": 24803, "s": 24775, "text": "\n15 Nov, 2021" }, { "code": null, "e": 25034, "s": 24803, "text": "Given an array arr[] of positive integers, the task is to count the maximum possible number of pairs (arr[i], arr[j]) such that arr[i] + arr[j] is a power of 2. No...
Matplotlib - Simple Plot
In this chapter, we will learn how to create a simple plot with Matplotlib. We shall now display a simple line plot of angle in radians vs. its sine value in Matplotlib. To begin with, the Pyplot module from Matplotlib package is imported, with an alias plt as a matter of convention. import matplotlib.pyplot as plt Nex...
[ { "code": null, "e": 2592, "s": 2516, "text": "In this chapter, we will learn how to create a simple plot with Matplotlib." }, { "code": null, "e": 2801, "s": 2592, "text": "We shall now display a simple line plot of angle in radians vs. its sine value in Matplotlib. To begin wit...
Quickly Build and Deploy a Dashboard with Streamlit | by Maarten Grootendorst | Towards Data Science
With the launch of Streamlit, developing a dashboard for your machine learning solution has been made incredibly easy. Streamlit is an open source app framework specifically designed for ML engineers working with Python. It allows you to create a stunning looking application with only a few lines of code. I want to tak...
[ { "code": null, "e": 291, "s": 172, "text": "With the launch of Streamlit, developing a dashboard for your machine learning solution has been made incredibly easy." }, { "code": null, "e": 479, "s": 291, "text": "Streamlit is an open source app framework specifically designed for...
How to implement merge sort in JavaScript?
Merge sort is an example of a divide-and-conquer type sorting-algorithm.The input of merge sort is an array of some elements, which are need to be arranged typically from least to the greatest. Merge sort divides the array in to two sub arrays and later divides each array in to another two arrays and so on until a bun...
[ { "code": null, "e": 1257, "s": 1062, "text": "Merge sort is an example of a divide-and-conquer type sorting-algorithm.The input of merge sort is an array of some elements, which are need to be arranged typically from least to the greatest. " }, { "code": null, "e": 1571, "s": 1257, ...
Genetic algorithm vs. Backtracking: N-Queen Problem | by Hirad Babayan | Towards Data Science
A few months ago, I got familiar with genetic algorithms. I started to read about it and I was pretty amazed by it. One of the most famous problems solved by genetic algorithms is the n-queen problem. I implemented my genetic solver, plus the famous old backtracking solver using python 3. I implemented a Chess class (b...
[ { "code": null, "e": 674, "s": 172, "text": "A few months ago, I got familiar with genetic algorithms. I started to read about it and I was pretty amazed by it. One of the most famous problems solved by genetic algorithms is the n-queen problem. I implemented my genetic solver, plus the famous old b...
Data profiling in Pandas using Python - GeeksforGeeks
04 May, 2020 Pandas is one of the most popular Python library mainly used for data manipulation and analysis. When we are working with large data, many times we need to perform Exploratory Data Analysis. We need to get the detailed description about different columns available and there relation, null check, data types...
[ { "code": null, "e": 24260, "s": 24232, "text": "\n04 May, 2020" }, { "code": null, "e": 24713, "s": 24260, "text": "Pandas is one of the most popular Python library mainly used for data manipulation and analysis. When we are working with large data, many times we need to perform...
Rearrange a linked list such that all even and odd positioned nodes are together - GeeksforGeeks
02 Nov, 2021 Rearrange a linked list in such a way that all odd position nodes are together and all even positions node are together, Examples: Input: 1->2->3->4 Output: 1->3->2->4 Input: 10->22->30->43->56->70 Output: 10->30->56->22->43->70 The important thing in this question is to make sure that all below ...
[ { "code": null, "e": 24569, "s": 24541, "text": "\n02 Nov, 2021" }, { "code": null, "e": 24701, "s": 24569, "text": "Rearrange a linked list in such a way that all odd position nodes are together and all even positions node are together, Examples: " }, { "code": null, ...
Scala - Basic Syntax
If you have a good understanding on Java, then it will be very easy for you to learn Scala. The biggest syntactic difference between Scala and Java is that the ';' line end character is optional. When we consider a Scala program, it can be defined as a collection of objects that communicate via invoking each other’s me...
[ { "code": null, "e": 2194, "s": 1998, "text": "If you have a good understanding on Java, then it will be very easy for you to learn Scala. The biggest syntactic difference between Scala and Java is that the ';' line end character is optional." }, { "code": null, "e": 2414, "s": 2194,...
jQuery | offset() with Examples - GeeksforGeeks
30 Aug, 2021 The offset() method is an inbuilt method in jQuery which is used to set or returns the offset coordinates of the selected element.Syntax: $(selector).offset() Parameters: Parameter does not required. $(selector).offset({top:value, left:value}) Parameters: The parameter is required when set the offset. $(...
[ { "code": null, "e": 26352, "s": 26324, "text": "\n30 Aug, 2021" }, { "code": null, "e": 26492, "s": 26352, "text": "The offset() method is an inbuilt method in jQuery which is used to set or returns the offset coordinates of the selected element.Syntax: " }, { "code": n...
DAX Logical - SWITCH function
Evaluates an expression against a list of values and returns one of multiple possible result expressions. SWITCH ( <expression>, <value>, <result>, [<value>, <result>] ..., [<else>] ) expression Any DAX expression that returns a single scalar value, where the expression is to be evaluated multiple times for each r...
[ { "code": null, "e": 2107, "s": 2001, "text": "Evaluates an expression against a list of values and returns one of multiple possible result expressions." }, { "code": null, "e": 2190, "s": 2107, "text": "SWITCH (\n <expression>, <value>, <result>, [<value>, <result>] ..., [<els...
How to drop one or multiple columns in Pandas Dataframe - GeeksforGeeks
21 May, 2021 Let’s discuss how to drop one or multiple columns in Pandas Dataframe. Drop one or more than one columns from a DataFrame can be achieved in multiple ways. Create a simple dataframe with dictionary of lists, say column names are A, B, C, D, E. # Import pandas package import pandas as pd # create a diction...
[ { "code": null, "e": 26480, "s": 26452, "text": "\n21 May, 2021" }, { "code": null, "e": 26636, "s": 26480, "text": "Let’s discuss how to drop one or multiple columns in Pandas Dataframe. Drop one or more than one columns from a DataFrame can be achieved in multiple ways." }, ...
ReactJS Toast Notification - GeeksforGeeks
26 Oct, 2021 Toast Notifications are popup messages that are added so as to display a message to a user. It can be a success message, warning message, or custom message. Toast Notification is also called Toastify Notifications. This all toast notification comes under-react-toastify module so to use them we need to impo...
[ { "code": null, "e": 28521, "s": 28493, "text": "\n26 Oct, 2021" }, { "code": null, "e": 28859, "s": 28521, "text": "Toast Notifications are popup messages that are added so as to display a message to a user. It can be a success message, warning message, or custom message. Toast ...
Animation in Android with Example - GeeksforGeeks
06 Sep, 2021 Animation is the process of adding a motion effect to any view, image, or text. With the help of an animation, you can add motion or can change the shape of a specific view. Animation in Android is generally used to give your UI a rich look and feel. The animations are basically of three types as follows: ...
[ { "code": null, "e": 24974, "s": 24946, "text": "\n06 Sep, 2021" }, { "code": null, "e": 25282, "s": 24974, "text": "Animation is the process of adding a motion effect to any view, image, or text. With the help of an animation, you can add motion or can change the shape of a spec...
Add zero columns to Pandas Dataframe - GeeksforGeeks
11 Dec, 2020 Prerequisites: Pandas The task here is to generate a Python program using its Pandas module that can add a column with all entries as zero to an existing dataframe. A Dataframe is a two-dimensional, size-mutable, potentially heterogeneous tabular data.It is used to represent data in tabular form like an Ex...
[ { "code": null, "e": 25555, "s": 25527, "text": "\n11 Dec, 2020" }, { "code": null, "e": 25577, "s": 25555, "text": "Prerequisites: Pandas" }, { "code": null, "e": 25720, "s": 25577, "text": "The task here is to generate a Python program using its Pandas modul...
CSS | rotateY() Function - GeeksforGeeks
07 Aug, 2019 The rotateY() function is an inbuilt function which is used to rotate an element around the vertical axis. Syntax: rotateY( angle ) Parameters: This function accepts single parameter angle which represents the angle of rotations. The positive and negative angles rotate the elements in clockwise and counter...
[ { "code": null, "e": 26621, "s": 26593, "text": "\n07 Aug, 2019" }, { "code": null, "e": 26728, "s": 26621, "text": "The rotateY() function is an inbuilt function which is used to rotate an element around the vertical axis." }, { "code": null, "e": 26736, "s": 267...
CSS - Bounce Up Effect
Bounce Animation effect is used to move the element quick up, back, or away from a surface after hitting it. @keyframes bounceInUp { 0% { opacity: 0; transform: translateY(2000px); } 60% { opacity: 1; transform: translateY(-30px); } 80% { transform: translateY(10px); } ...
[ { "code": null, "e": 2735, "s": 2626, "text": "Bounce Animation effect is used to move the element quick up, back, or away from a surface after hitting it." }, { "code": null, "e": 2994, "s": 2735, "text": "@keyframes bounceInUp {\n 0% {\n opacity: 0;\n transform: tra...