title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
The essence of eigenvalues and eigenvectors in Machine Learning | by Ranjeet Singh | Towards Data Science | The word, Eigen is perhaps most usefully translated from German which means Characteristic. So when we talk about Eigenvalues and eigenvectors of a Matrix, we’re talking about finding the characteristics of the matrix.
Before diving deep into Eigenvectors, let's understand what is a matrix except being a rectangular ar... | [
{
"code": null,
"e": 391,
"s": 172,
"text": "The word, Eigen is perhaps most usefully translated from German which means Characteristic. So when we talk about Eigenvalues and eigenvectors of a Matrix, we’re talking about finding the characteristics of the matrix."
},
{
"code": null,
"e":... |
What does close() function do in Python? | The function close() closes an open file. For example:
f = open('my_file', 'r+')
my_file_data = f.read()
f.close()
The above code opens 'my_file'in read mode then stores the data it reads from my_file in my_file_data and closes the file. When you open a file, the operating system gives a file handle to read/write the... | [
{
"code": null,
"e": 1118,
"s": 1062,
"text": "The function close() closes an open file. For example: "
},
{
"code": null,
"e": 1178,
"s": 1118,
"text": "f = open('my_file', 'r+')\nmy_file_data = f.read()\nf.close()"
},
{
"code": null,
"e": 1687,
"s": 1178,
"t... |
End to End Deep Learning: A Different Perspective | by Himanshu Dutta | Towards Data Science | Whenever there is an article on an end-to-end deep learning project, it consists of training a deep learning model, deploying a Flask API, and then making sure it works or it extensively consists of creating a web demo using Streamlit or something similar. The problem with this approach is that it talks about a straigh... | [
{
"code": null,
"e": 959,
"s": 172,
"text": "Whenever there is an article on an end-to-end deep learning project, it consists of training a deep learning model, deploying a Flask API, and then making sure it works or it extensively consists of creating a web demo using Streamlit or something similar... |
W3.CSS - Forms | W3.CSS has a very beautiful and responsive CSS for form designing. The following CSS are used −
w3-group
Represents a bordered container. Can be used to group a label and input.
w3-input
Beautifies an input control.
w3-label
Beautifies a label.
w3-checkbox w3-checkmark
Beautify a checkbox/ radio button.
<html>
<head... | [
{
"code": null,
"e": 2005,
"s": 1909,
"text": "W3.CSS has a very beautiful and responsive CSS for form designing. The following CSS are used −"
},
{
"code": null,
"e": 2014,
"s": 2005,
"text": "w3-group"
},
{
"code": null,
"e": 2087,
"s": 2014,
"text": "Repres... |
String to Number Conversion in Julia - GeeksforGeeks | 25 Aug, 2020
Julia is a flexible, dynamic, and high-level programming language that can be used to write any application. Also, many of its features can be used for numerical analysis and computational science. Julia is being widely used in machine learning, visualization, and data science. Julia allows type conversion... | [
{
"code": null,
"e": 24180,
"s": 24152,
"text": "\n25 Aug, 2020"
},
{
"code": null,
"e": 24603,
"s": 24180,
"text": "Julia is a flexible, dynamic, and high-level programming language that can be used to write any application. Also, many of its features can be used for numerical a... |
All Pandas qcut() you should know for binning numerical data based on sample quantiles | by B. Chen | Towards Data Science | Numerical data is common in data analysis. Often you have numerical data that is continuous, very large scales, or highly skewed. Sometimes, it can be easier to bin those data into discrete intervals. This is very helpful to perform descriptive statistics when values are divided into meaningful categories. For example,... | [
{
"code": null,
"e": 610,
"s": 171,
"text": "Numerical data is common in data analysis. Often you have numerical data that is continuous, very large scales, or highly skewed. Sometimes, it can be easier to bin those data into discrete intervals. This is very helpful to perform descriptive statistics... |
Design and Analysis Introduction | An algorithm is a set of steps of operations to solve a problem performing calculation, data processing, and automated reasoning tasks. An algorithm is an efficient method that can be expressed within finite amount of time and space.
An algorithm is the best way to represent the solution of a particular problem in a ve... | [
{
"code": null,
"e": 2833,
"s": 2599,
"text": "An algorithm is a set of steps of operations to solve a problem performing calculation, data processing, and automated reasoning tasks. An algorithm is an efficient method that can be expressed within finite amount of time and space."
},
{
"code... |
Difference between the | and || or operator in php | '|' operator is a bitwise OR operator and is used to set the bit to 1 if any of the corresponding bit is 1.
'||' is a logical Or operator and works on complete operands as whole.
Following example, shows usage of '|' vs '||' operators.
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>PHP Example</title>
</head>
<body... | [
{
"code": null,
"e": 1170,
"s": 1062,
"text": "'|' operator is a bitwise OR operator and is used to set the bit to 1 if any of the corresponding bit is 1."
},
{
"code": null,
"e": 1241,
"s": 1170,
"text": "'||' is a logical Or operator and works on complete operands as whole."
... |
C# | ToLower() Method - GeeksforGeeks | 31 Jan, 2019
In C#, ToLower() is a string method. It converts every character to lowercase (if there is a lowercase character). If a character does not have a lowercase equivalent, it remains unchanged. For example, special symbols remain unchanged. This method can be overloaded by passing the different type of argumen... | [
{
"code": null,
"e": 24436,
"s": 24408,
"text": "\n31 Jan, 2019"
},
{
"code": null,
"e": 24753,
"s": 24436,
"text": "In C#, ToLower() is a string method. It converts every character to lowercase (if there is a lowercase character). If a character does not have a lowercase equival... |
MySQL - AVG Function | MySQL AVG function is used to find out the average of a field in various records.
To understand AVG function, consider an employee_tbl table, which is having following records −
mysql> SELECT * FROM employee_tbl;
+------+------+------------+--------------------+
| id | name | work_date | daily_typing_pages |
+------... | [
{
"code": null,
"e": 2415,
"s": 2333,
"text": "MySQL AVG function is used to find out the average of a field in various records."
},
{
"code": null,
"e": 2511,
"s": 2415,
"text": "To understand AVG function, consider an employee_tbl table, which is having following records −"
}... |
Different ways to update Python list - onlinetutorialspoint | PROGRAMMINGJava ExamplesC Examples
Java Examples
C Examples
C Tutorials
aws
JAVAEXCEPTIONSCOLLECTIONSSWINGJDBC
EXCEPTIONS
COLLECTIONS
SWING
JDBC
JAVA 8
SPRING
SPRING BOOT
HIBERNATE
PYTHON
PHP
JQUERY
PROGRAMMINGJava ExamplesC Examples
Java Examples
C Examples
C Tutorials
aws
There are several ways to update the List in ... | [
{
"code": null,
"e": 158,
"s": 123,
"text": "PROGRAMMINGJava ExamplesC Examples"
},
{
"code": null,
"e": 172,
"s": 158,
"text": "Java Examples"
},
{
"code": null,
"e": 183,
"s": 172,
"text": "C Examples"
},
{
"code": null,
"e": 195,
"s": 183,
... |
Create gradient translucent windows in Java Swing | With JDK 7, we can create a gradient based translucent window using swing very easily. Following are the steps needed to make a gradient-based translucent window.
Make the background of JFrame transparent first.
frame.setBackground(new Color(0,0,0,0));
Create a gradient paint, and fill the panel.
JPanel panel = new j... | [
{
"code": null,
"e": 1225,
"s": 1062,
"text": "With JDK 7, we can create a gradient based translucent window using swing very easily. Following are the steps needed to make a gradient-based translucent window."
},
{
"code": null,
"e": 1275,
"s": 1225,
"text": " Make the backgroun... |
Test Environment | Test Environment consists of elements that support test execution with software, hardware and network configured. Test environment configuration must mimic the production environment in order to uncover any environment/configuration related issues.
Determine if test environment needs archiving in order to take back ups... | [
{
"code": null,
"e": 5994,
"s": 5745,
"text": "Test Environment consists of elements that support test execution with software, hardware and network configured. Test environment configuration must mimic the production environment in order to uncover any environment/configuration related issues."
}... |
How do I check to see if a column name exists in a CachedRowSet in JDBC? | CachedRowSet interface does not provide any methods to determine whether a particular column exists.
Therefore, to find whether a RowSet contains a specific column, you need to compare the name of each column in the RowSet with the required name. To do so −
Retrieve the ResultSetMetaData object from the RowSet using th... | [
{
"code": null,
"e": 1163,
"s": 1062,
"text": "CachedRowSet interface does not provide any methods to determine whether a particular column exists."
},
{
"code": null,
"e": 1320,
"s": 1163,
"text": "Therefore, to find whether a RowSet contains a specific column, you need to compa... |
Python Pandas - Convert the Timedelta to a NumPy timedelta64 | To convert the Timedelta to a NumPy timedelta64, use the timedelta.to_timedelta64() method.
At first, import the required libraries −
import pandas as pd
Create a Timedelta object −
timedelta = pd.Timedelta('2 days 11 hours 22 min 25 s 50 ms 45 ns')
Display the Timedelta −
print("Timedelta...\n", timedelta)
Convert th... | [
{
"code": null,
"e": 1154,
"s": 1062,
"text": "To convert the Timedelta to a NumPy timedelta64, use the timedelta.to_timedelta64() method."
},
{
"code": null,
"e": 1196,
"s": 1154,
"text": "At first, import the required libraries −"
},
{
"code": null,
"e": 1216,
"... |
jQuery | unbind() Method | 20 Feb, 2019
The unbind() Method is an inbuilt method in jQuery which is used to remove any selected event handlers. This method can be used to remove particular event handler, or stop specific functions. It works on any event handler using an event object.
Note: If no parameters are provided, the method works on all e... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n20 Feb, 2019"
},
{
"code": null,
"e": 273,
"s": 28,
"text": "The unbind() Method is an inbuilt method in jQuery which is used to remove any selected event handlers. This method can be used to remove particular event handler, or stop spe... |
Strings in C++ and How to Create them? | 13 Nov, 2019
Strings in C++ are used to store text or sequence of characters. In C++ strings can be stored in one of the two following ways:
C style string (using characters)
String class
Each of the above methods is discussed below:
Chapters
descriptions off, selected
captions settings, opens captions settings dialog
... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n13 Nov, 2019"
},
{
"code": null,
"e": 180,
"s": 52,
"text": "Strings in C++ are used to store text or sequence of characters. In C++ strings can be stored in one of the two following ways:"
},
{
"code": null,
"e": 214,
... |
Python – Downloading captions from YouTube | 13 Jul, 2022
Python provides a large set of APIs for the developer to choose from. Each and every service provided by Google has an associated API. Being one of them, YouTube Transcript API is very simple to use provides various features.
In this article, we will learn how to download captions or subtitles from a YouTu... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n13 Jul, 2022"
},
{
"code": null,
"e": 254,
"s": 28,
"text": "Python provides a large set of APIs for the developer to choose from. Each and every service provided by Google has an associated API. Being one of them, YouTube Transcript AP... |
Null Cipher | 09 Sep, 2021
A null cipher, also known as concealment cipher, is an ancient form of encryption where the plaintext is mixed with a large amount of non-cipher material. Today it is regarded as a simple form of steganography, which can be used to hide ciphertext.There are various options of using the Null Cipher. Here we... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n09 Sep, 2021"
},
{
"code": null,
"e": 501,
"s": 52,
"text": "A null cipher, also known as concealment cipher, is an ancient form of encryption where the plaintext is mixed with a large amount of non-cipher material. Today it is regarde... |
C# | Check if two List objects are equal | 27 Jan, 2019
Equals(Object) Method which is inherited from the Object class is used to check if a specified List<T> object is equal to another List<T> object or not.
Syntax:
public virtual bool Equals (object obj);
Here, obj is the object which is to be compared with the current object.
Return Value: This method return... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n27 Jan, 2019"
},
{
"code": null,
"e": 207,
"s": 54,
"text": "Equals(Object) Method which is inherited from the Object class is used to check if a specified List<T> object is equal to another List<T> object or not."
},
{
"code":... |
BigDecimal divide() Method in Java with Examples | 17 Jun, 2019
The java.math.BigDecimal.divide(BigDecimal divisor) is used to calculate the Quotient of two BigDecimals. The Quotient is given by (this / divisor). This method performs an operation upon the current BigDecimal by which this method is called and the BigDecimal passed as the parameter.
There are five overlo... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n17 Jun, 2019"
},
{
"code": null,
"e": 314,
"s": 28,
"text": "The java.math.BigDecimal.divide(BigDecimal divisor) is used to calculate the Quotient of two BigDecimals. The Quotient is given by (this / divisor). This method performs an op... |
What is Scrambling in Digital Electronics ? | 31 May, 2022
A computer network is designed to send information from one point to another. Data that we send can either be digital or analog. Also, signals that represent data can also be digital or analog. Thus to send data by using signals, we must be able to convert the data into signals, this conversion can be Anal... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n31 May, 2022"
},
{
"code": null,
"e": 931,
"s": 52,
"text": "A computer network is designed to send information from one point to another. Data that we send can either be digital or analog. Also, signals that represent data can also be... |
XOR two binary strings of unequal lengths | 06 Jul, 2021
Given two binary string of unequal lengths A and B, the task is to print the binary string which is the XOR of A and B.Examples:
Input: A = “11001”, B = “111111” Output: 100110Input: A = “11111”, B = “0” Output: 11111
Approach: The idea is to first make both the strings of equal length and then perform t... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n06 Jul, 2021"
},
{
"code": null,
"e": 182,
"s": 52,
"text": "Given two binary string of unequal lengths A and B, the task is to print the binary string which is the XOR of A and B.Examples: "
},
{
"code": null,
"e": 272,
... |
Python – Initialize empty array of given length | 06 Dec, 2019
Prerequisite: List in Python
As we know Array is a collection of items stored at contiguous memory locations. In Python, List (Dynamic Array) can be treated as Array. In this article, we will learn how to initialize an empty array of some given size.
Let’s see different Pythonic ways to do this task.
Metho... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n06 Dec, 2019"
},
{
"code": null,
"e": 82,
"s": 53,
"text": "Prerequisite: List in Python"
},
{
"code": null,
"e": 304,
"s": 82,
"text": "As we know Array is a collection of items stored at contiguous memory location... |
Java Program to Convert Byte Array to String | 03 May, 2022
A byte is 8 bits of binary data so do byte array is an array of bytes used to store the collection of binary data. There are multiple ways to change byte array to String in Java, you can either use methods from JDK, or you can use open-source complementary APIs like Apache commons and Google Guava. These A... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n03 May, 2022"
},
{
"code": null,
"e": 527,
"s": 52,
"text": "A byte is 8 bits of binary data so do byte array is an array of bytes used to store the collection of binary data. There are multiple ways to change byte array to String in J... |
Strategy Pattern | Set 2 (Implementation) | 14 Feb, 2018
We have discussed a fighter example and introduced Strategy Pattern in set 1.
Strategy Pattern | Set 1 (Introduction)
In this post, we apply Strategy Pattern to the Fighter Problem and discuss implementation.
The first step is to identify the behaviors that may vary across different classes in future and s... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n14 Feb, 2018"
},
{
"code": null,
"e": 130,
"s": 52,
"text": "We have discussed a fighter example and introduced Strategy Pattern in set 1."
},
{
"code": null,
"e": 170,
"s": 130,
"text": "Strategy Pattern | Set 1 (I... |
Softmax Regression Using Keras | 16 Jan, 2022
Prerequisites: Logistic RegressionGetting Started With Keras: Deep learning is one of the major subfields of machine learning framework. It is supported by various libraries such as Theano, TensorFlow, Caffe, Mxnet etc., Keras is one of the most powerful and easy to use python library, which is built on to... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n16 Jan, 2022"
},
{
"code": null,
"e": 1204,
"s": 54,
"text": "Prerequisites: Logistic RegressionGetting Started With Keras: Deep learning is one of the major subfields of machine learning framework. It is supported by various libraries... |
Redis - List Lindex Command | Redis LINDEX command is used to get the element at the index in the list stored at the key. The index is zero-based, so 0 means the first element, 1 the second element, and so on. Negative indices can be used to designate elements starting at the tail of the list. Here, -1 means the last element, -2 means the penultima... | [
{
"code": null,
"e": 2383,
"s": 2045,
"text": "Redis LINDEX command is used to get the element at the index in the list stored at the key. The index is zero-based, so 0 means the first element, 1 the second element, and so on. Negative indices can be used to designate elements starting at the tail o... |
Data Normalization with Python scikit-learn | by Angelica Lo Duca | Towards Data Science | Following the series of publications on data preprocessing, in this tutorial, I deal with Data Normalization in Python scikit-learn . As already said in my previous tutorial, Data Normalization involves adjusting values measured on different scales to a common scale.
Normalization applies only to columns containing num... | [
{
"code": null,
"e": 440,
"s": 172,
"text": "Following the series of publications on data preprocessing, in this tutorial, I deal with Data Normalization in Python scikit-learn . As already said in my previous tutorial, Data Normalization involves adjusting values measured on different scales to a c... |
What is narrowing in java? Explain. | Java provides various datatypes to store various data values. It provides 7 primitive datatypes (stores single values) as listed below −
boolean − Stores 1-bit value representing true or, false.
byte − Stores twos compliment integer up to 8 bits.
char − Stores a Unicode character value up to 16 bits.
short − Stores an ... | [
{
"code": null,
"e": 1199,
"s": 1062,
"text": "Java provides various datatypes to store various data values. It provides 7 primitive datatypes (stores single values) as listed below −"
},
{
"code": null,
"e": 1257,
"s": 1199,
"text": "boolean − Stores 1-bit value representing tru... |
as_integer_ratio() in Python for reduced fraction of a given rational | In this tutorial, we are going to write a program that returns two numbers whose ratio is equal to the given float value. We have a method called as_integer_ratio() that helps to achieve our goal.
Let's see some examples.
Input:
1.5
Output:
3 / 2
Input:
5.3
Output:
5967269506265907 / 1125899906842624
Let's examine the ... | [
{
"code": null,
"e": 1259,
"s": 1062,
"text": "In this tutorial, we are going to write a program that returns two numbers whose ratio is equal to the given float value. We have a method called as_integer_ratio() that helps to achieve our goal."
},
{
"code": null,
"e": 1284,
"s": 1259... |
SQLAlchemy Core - Executing Expression | In the previous chapter, we have learnt SQL Expressions. In this chapter, we shall look into the execution of these expressions.
In order to execute the resulting SQL expressions, we have to obtain a connection object representing an actively checked out DBAPI connection resource and then feed the expression object as ... | [
{
"code": null,
"e": 2469,
"s": 2340,
"text": "In the previous chapter, we have learnt SQL Expressions. In this chapter, we shall look into the execution of these expressions."
},
{
"code": null,
"e": 2685,
"s": 2469,
"text": "In order to execute the resulting SQL expressions, we... |
C library function - srand() | The C library function void srand(unsigned int seed) seeds the random number generator used by the function rand.
Following is the declaration for srand() function.
void srand(unsigned int seed)
seed − This is an integer value to be used as seed by the pseudo-random number generator algorithm.
seed − This is an integer... | [
{
"code": null,
"e": 2121,
"s": 2007,
"text": "The C library function void srand(unsigned int seed) seeds the random number generator used by the function rand."
},
{
"code": null,
"e": 2172,
"s": 2121,
"text": "Following is the declaration for srand() function."
},
{
"co... |
How to do UI testing with Selenium? | We can do UI testing with Selenium webdriver. To achieve this, we have to follow the steps listed below which can be applied to any script developed to test the UI of the application −
Step1 − Object of Webdriver should be created. For example,
WebDriver driver = new ChromeDriver();
The above piece of code is used to c... | [
{
"code": null,
"e": 1247,
"s": 1062,
"text": "We can do UI testing with Selenium webdriver. To achieve this, we have to follow the steps listed below which can be applied to any script developed to test the UI of the application −"
},
{
"code": null,
"e": 1307,
"s": 1247,
"text"... |
How to represent all values of X-axis or Y-axis on the graph in R using ggplot2 package? | If we have many unique elements or repeated in a column of an R data frame and create a graph using that column, either on X-axis or Y-axis then R automatically choses the axes labels, this might not display all the unique values of the column in the plot. Therefore, we can use scale_x_continuous function or scale_y_co... | [
{
"code": null,
"e": 1471,
"s": 1062,
"text": "If we have many unique elements or repeated in a column of an R data frame and create a graph using that column, either on X-axis or Y-axis then R automatically choses the axes labels, this might not display all the unique values of the column in the pl... |
How to Fix: ‘numpy.float64’ object cannot be interpreted as an integer - GeeksforGeeks | 19 Dec, 2021
In this article, we are going to see how to fix: ‘numpy.float64’ object cannot be interpreted as an integer.
When a function or operation is applied to an object of the wrong type, a type error is raised. The ‘numpy.float64’ object cannot be interpreted as an integer is one example of this type of problem... | [
{
"code": null,
"e": 23901,
"s": 23873,
"text": "\n19 Dec, 2021"
},
{
"code": null,
"e": 24011,
"s": 23901,
"text": "In this article, we are going to see how to fix: ‘numpy.float64’ object cannot be interpreted as an integer."
},
{
"code": null,
"e": 24247,
"s": ... |
Reflection Array Class in Java - GeeksforGeeks | 10 Nov, 2021
The Array class in java.lang.reflect package is a part of the Java Reflection. This class provides static methods to create and access Java arrays dynamically. It is a final class, which means it can’t be instantiated or changed. Only the methods of this class can be used by the class name itself.
The java... | [
{
"code": null,
"e": 24437,
"s": 24409,
"text": "\n10 Nov, 2021"
},
{
"code": null,
"e": 24736,
"s": 24437,
"text": "The Array class in java.lang.reflect package is a part of the Java Reflection. This class provides static methods to create and access Java arrays dynamically. It ... |
Raft Algorithm Explained 2. Part 2 — Log Replication | by Zixuan Zhang | Towards Data Science | Raft is a consensus algorithm built to orchestrate replicas in a distributed fashion. Designed with understandability in mind, Raft has only a few moving parts and is easy to implement. In the last article, I talked about the basics of Raft and explained the leader-election mechanism. In this post, we are going to focu... | [
{
"code": null,
"e": 539,
"s": 171,
"text": "Raft is a consensus algorithm built to orchestrate replicas in a distributed fashion. Designed with understandability in mind, Raft has only a few moving parts and is easy to implement. In the last article, I talked about the basics of Raft and explained ... |
How to add colors to nodes in JavaFX? | You can apply colors to nodes in JavaFX using the setFill() and setStroke() methods. The setFill() method adds color to the surface area of the node whereas the setStroke() method applies color to the boundary of the node.
Both methods accept an object of the javafx.scene.paint.Paint class as a parameter. It is the bas... | [
{
"code": null,
"e": 1285,
"s": 1062,
"text": "You can apply colors to nodes in JavaFX using the setFill() and setStroke() methods. The setFill() method adds color to the surface area of the node whereas the setStroke() method applies color to the boundary of the node."
},
{
"code": null,
... |
How to write Web apps using simple Python for Data Scientists? | by Rahul Agarwal | Towards Data Science | A Machine Learning project is never really complete if we don’t have a good way to showcase it.
While in the past, a well-made visualization or a small PPT used to be enough for showcasing a data science project, with the advent of dashboarding tools like RShiny and Dash, a good data scientist needs to have a fair bit ... | [
{
"code": null,
"e": 268,
"s": 172,
"text": "A Machine Learning project is never really complete if we don’t have a good way to showcase it."
},
{
"code": null,
"e": 537,
"s": 268,
"text": "While in the past, a well-made visualization or a small PPT used to be enough for showcasi... |
Credit Card Fraud Detection using Autoencoders in H2O | by Maneesha Rajaratne | Towards Data Science | Frauds in the finance field are very rare to be identified. Because of that, it can do a severe damage to the financial field. It is estimated that fraud costs at least $80 billion a year across all lines of insurance. If there is a small possibility of detecting fraudulent activities, that can do a major impact on ann... | [
{
"code": null,
"e": 607,
"s": 172,
"text": "Frauds in the finance field are very rare to be identified. Because of that, it can do a severe damage to the financial field. It is estimated that fraud costs at least $80 billion a year across all lines of insurance. If there is a small possibility of d... |
MATLAB | Change the color of background pixels by OTSU Thresholding - GeeksforGeeks | 15 Sep, 2021
MATLAB also called Matrix Laboratory is a numerical computing environment and a platform for programming language. it was designed and developed by MathWorks. MATLAB is a framework that allows you to perform matrix manipulations, implementing algorithms, plotting functions and data, creating user-interface... | [
{
"code": null,
"e": 24326,
"s": 24298,
"text": "\n15 Sep, 2021"
},
{
"code": null,
"e": 25070,
"s": 24326,
"text": "MATLAB also called Matrix Laboratory is a numerical computing environment and a platform for programming language. it was designed and developed by MathWorks. MATL... |
Getting factorial of a number in Julia - factorial() Method - GeeksforGeeks | 21 Apr, 2020
The factorial() is an inbuilt function in julia which is used to return the factorial of the specified number n.
Syntax: factorial(n::Integer)
Parameters:
n: Specified number
Returns: It returns the factorial of the specified number n.
Example 1:
# Julia program to illustrate # the use of factorial() metho... | [
{
"code": null,
"e": 24464,
"s": 24436,
"text": "\n21 Apr, 2020"
},
{
"code": null,
"e": 24577,
"s": 24464,
"text": "The factorial() is an inbuilt function in julia which is used to return the factorial of the specified number n."
},
{
"code": null,
"e": 24607,
"s... |
How to make legend key fill transparent in ggplot2 in R? - GeeksforGeeks | 30 Jun, 2021
In this article, we will see how to make legend key fill transparent in ggplot2 in R Programming Language.
Note: Here we will be using a line graph, the same can be applied to any other plot.
Let us first draw a regular plot, so that the difference is apparent.
Example:
R
# Load Packagelibrary("ggplot2") ... | [
{
"code": null,
"e": 26597,
"s": 26569,
"text": "\n30 Jun, 2021"
},
{
"code": null,
"e": 26705,
"s": 26597,
"text": "In this article, we will see how to make legend key fill transparent in ggplot2 in R Programming Language. "
},
{
"code": null,
"e": 26790,
"s": 26... |
Minimum height of a triangle with given base and area - GeeksforGeeks | 28 Nov, 2021
Given two integers a and b, find the smallest possible height such that a triangle of atleast area “a” and base “b” can be formed.
Examples :
Input : a = 2, b = 2
Output : Minimum height of triangle is 2
Explanation:
Input : a = 8, b = 4
Output : Minimum height of triangle is 4
Minimum height of Trian... | [
{
"code": null,
"e": 25301,
"s": 25273,
"text": "\n28 Nov, 2021"
},
{
"code": null,
"e": 25433,
"s": 25301,
"text": "Given two integers a and b, find the smallest possible height such that a triangle of atleast area “a” and base “b” can be formed. "
},
{
"code": null,
... |
Print 2D matrix in different lines and without curly braces in C/C++? - GeeksforGeeks | 09 May, 2022
Following is a general way of printing 2D matrix such that every row is printed in separate lines.
C
for (int i = 0; i < m; i++){ for (int j = 0; j < n; j++) { cout << arr[i][j] << " "; } // Newline for new row cout << endl;}
How to print without using any curly braces in for loops? W... | [
{
"code": null,
"e": 25587,
"s": 25559,
"text": "\n09 May, 2022"
},
{
"code": null,
"e": 25687,
"s": 25587,
"text": "Following is a general way of printing 2D matrix such that every row is printed in separate lines. "
},
{
"code": null,
"e": 25689,
"s": 25687,
... |
useradd command in Linux with Examples - GeeksforGeeks | 26 May, 2020
useradd is a command in Linux that is used to add user accounts to your system. It is just a symbolic link to adduser command in Linux and the difference between both of them is that useradd is a native binary compiled with system whereas adduser is a Perl script which uses useradd binary in the background... | [
{
"code": null,
"e": 26326,
"s": 26298,
"text": "\n26 May, 2020"
},
{
"code": null,
"e": 26675,
"s": 26326,
"text": "useradd is a command in Linux that is used to add user accounts to your system. It is just a symbolic link to adduser command in Linux and the difference between b... |
GATE | GATE CS 2020 | Question 45 - GeeksforGeeks | 26 May, 2021
Consider the following five disk five disk access requests of the form (request id, cylinder number) that are present in the disk scheduler queue at a given time.
(P, 155), (Q, 85), (R, 110), (S, 30), (T, 115)
Assume the head is positioned at cylinder 100. The scheduler follows Shortest Seek Time First sc... | [
{
"code": null,
"e": 24075,
"s": 24047,
"text": "\n26 May, 2021"
},
{
"code": null,
"e": 24238,
"s": 24075,
"text": "Consider the following five disk five disk access requests of the form (request id, cylinder number) that are present in the disk scheduler queue at a given time."... |
Find if two rectangles overlap using C++. | We know that a rectangle can be represented using two coordinates, the top left corner, and the bottom right corner. Suppose there are two rectangles, we have to check whether these two overlap or not. There are four coordinate points (l1, r1) and (l2, r2).
l1 is the top-left corner of first rectangle
r1 is the bottom-... | [
{
"code": null,
"e": 1320,
"s": 1062,
"text": "We know that a rectangle can be represented using two coordinates, the top left corner, and the bottom right corner. Suppose there are two rectangles, we have to check whether these two overlap or not. There are four coordinate points (l1, r1) and (l2, ... |
VBScript StrComp Function | The StrComp Function returns an integer value after comparing the two given strings. It can return any of the three values -1, 0 or 1 based on the input strings to be compared.
If String 1 < String 2 then StrComp returns -1
If String 1 < String 2 then StrComp returns -1
If String 1 = String 2 then StrComp returns 0
If ... | [
{
"code": null,
"e": 2257,
"s": 2080,
"text": "The StrComp Function returns an integer value after comparing the two given strings. It can return any of the three values -1, 0 or 1 based on the input strings to be compared."
},
{
"code": null,
"e": 2304,
"s": 2257,
"text": "If St... |
Python | Insert the string at the beginning of all items in a list - GeeksforGeeks | 20 Nov, 2019
Given a list, write a Python program to insert some string at the beginning of all items in that list.
Examples:
Input : list = [1, 2, 3, 4], str = 'Geek'
Output : list = ['Geek1', 'Geek2', 'Geek3', 'Geek4']
Input : list = ['A', 'B', 'C'], str = 'Team'
Output : list = ['TeamA', 'TeamB', 'TeamC']
There ar... | [
{
"code": null,
"e": 24506,
"s": 24478,
"text": "\n20 Nov, 2019"
},
{
"code": null,
"e": 24609,
"s": 24506,
"text": "Given a list, write a Python program to insert some string at the beginning of all items in that list."
},
{
"code": null,
"e": 24619,
"s": 24609,
... |
Add a custom border to certain cells in a Matplotlib / Seaborn plot | To add a custom border to certain cells in a Matplotlib/Seaborn plot.
Set the figure size and adjust the padding between and around the subplots.
Create a dataframe with some columns.
Plot a matrix dataset as a hierarchically-clustered heatmap.
Get heatmap axis as a subplot arrangement.
To add a custom border to certai... | [
{
"code": null,
"e": 1132,
"s": 1062,
"text": "To add a custom border to certain cells in a Matplotlib/Seaborn plot."
},
{
"code": null,
"e": 1208,
"s": 1132,
"text": "Set the figure size and adjust the padding between and around the subplots."
},
{
"code": null,
"e":... |
How can we use SET statement to assign a SELECT result to a MySQL user variable? | For using the SET statement to assign a SELECT result to a user variable we need to write the SELECT statement as a subquery within parentheses. The condition is that the SELECT statement must have to return a single value. To make it understand we are using the data from ‘Tender’ table which is as follows −
mysql> sel... | [
{
"code": null,
"e": 1372,
"s": 1062,
"text": "For using the SET statement to assign a SELECT result to a user variable we need to write the SELECT statement as a subquery within parentheses. The condition is that the SELECT statement must have to return a single value. To make it understand we are ... |
Python String | rpartition() - GeeksforGeeks | 17 Jun, 2021
rpartition() function in Python split the given string into three parts. rpartition() start looking for separator from right side, till the separator is found and return a tuple which contains part of the string before separator, argument of the string and the part after the separator.
Syntax :
string.rpa... | [
{
"code": null,
"e": 25027,
"s": 24999,
"text": "\n17 Jun, 2021"
},
{
"code": null,
"e": 25314,
"s": 25027,
"text": "rpartition() function in Python split the given string into three parts. rpartition() start looking for separator from right side, till the separator is found and ... |
AngularJS | ng-init Directive - GeeksforGeeks | 28 Mar, 2019
The ng-init directive is used to initialize an AngularJS Application data. It defines the initial value for an AngularJS application and assigns values to the variables.The ng-init directive defines initial values and variables for an AngularJS application.
Syntax:
<element ng-init = "expression">
...
<... | [
{
"code": null,
"e": 25670,
"s": 25642,
"text": "\n28 Mar, 2019"
},
{
"code": null,
"e": 25928,
"s": 25670,
"text": "The ng-init directive is used to initialize an AngularJS Application data. It defines the initial value for an AngularJS application and assigns values to the vari... |
Dates in Power BI. Working with Dates | by Peter Hui | Towards Data Science | In Power BI, the highly recommended approach from many experts is to create a date table when working with dates. I’ve worked without it and it’s definitely not a good idea. It gave me a headache and needless suffering.
The date table is important! Here are 3 reasons why.
Date Calculations — DAX needs a date table to m... | [
{
"code": null,
"e": 391,
"s": 171,
"text": "In Power BI, the highly recommended approach from many experts is to create a date table when working with dates. I’ve worked without it and it’s definitely not a good idea. It gave me a headache and needless suffering."
},
{
"code": null,
"e"... |
Hypothesis testing, a simple illustration of the superiority of the Bayesian framework | by Alain Tanguy | Towards Data Science | Usually hypothesis testing is not the first topic that comes to mind when we talk about bayesianism. The current trend is indeed more about incorporating this approach to Machine Learning models, and less about reviewing old-fashion statistics.
Nevertheless, more and more studies1 reveal the extent of the failure of so... | [
{
"code": null,
"e": 417,
"s": 172,
"text": "Usually hypothesis testing is not the first topic that comes to mind when we talk about bayesianism. The current trend is indeed more about incorporating this approach to Machine Learning models, and less about reviewing old-fashion statistics."
},
{
... |
Building Knowledge Graphs from Structured Sources | by Giuseppe Futia | Towards Data Science | Knowledge Graphs (KGs) are labeled and directed multigraphs that encode information in the form of entities and relations relevant to a specific domain or organization. KGs are effective tools for capturing and organizing a large amount of structured and multi-relational data that can be explored employing query mechan... | [
{
"code": null,
"e": 763,
"s": 172,
"text": "Knowledge Graphs (KGs) are labeled and directed multigraphs that encode information in the form of entities and relations relevant to a specific domain or organization. KGs are effective tools for capturing and organizing a large amount of structured and ... |
Bloom Filter in Java with Examples - GeeksforGeeks | 16 Apr, 2020
Bloom filters are for set membership which determines whether an element is present in a set or not. Bloom filter was invented by Burton H. Bloom in 1970 in a paper called Space/Time Trade-offs in Hash Coding with Allowable Errors (1970). Bloom filter is a probabilistic data structure that works on hash-co... | [
{
"code": null,
"e": 24306,
"s": 24278,
"text": "\n16 Apr, 2020"
},
{
"code": null,
"e": 24650,
"s": 24306,
"text": "Bloom filters are for set membership which determines whether an element is present in a set or not. Bloom filter was invented by Burton H. Bloom in 1970 in a pape... |
How to clear the memory completely of all Matplotlib plots? | Using the following methods, we can clear the memory occupied by Matplotlib plots.
plt.figure() - Create a new figure or activate an existing figure.
plt.figure() - Create a new figure or activate an existing figure.
plt.figure().close() - Close a figure window.close() by itself closes the current figureclose(h), wher... | [
{
"code": null,
"e": 1145,
"s": 1062,
"text": "Using the following methods, we can clear the memory occupied by Matplotlib plots."
},
{
"code": null,
"e": 1212,
"s": 1145,
"text": "plt.figure() - Create a new figure or activate an existing figure."
},
{
"code": null,
... |
LiDAR point cloud based 3D object detection implementation with colab{Part 2 of 2} | by Gopalakrishna Adusumilli | Towards Data Science | VoxelNet a point cloud based 3D object detection algorithm is implemented using google colab.
In my previous article, I have explained crucial concepts required to implement the VoxelNet an end-to-end learning model for the 3d object detection you can find here
In continuation with the previous article, we will work ou... | [
{
"code": null,
"e": 266,
"s": 172,
"text": "VoxelNet a point cloud based 3D object detection algorithm is implemented using google colab."
},
{
"code": null,
"e": 434,
"s": 266,
"text": "In my previous article, I have explained crucial concepts required to implement the VoxelNet... |
Apache Kafka - Basic Operations | First let us start implementing single node-single broker configuration and we will then migrate our setup to single node-multiple brokers configuration.
Hopefully you would have installed Java, ZooKeeper and Kafka on your machine by now. Before moving to the Kafka Cluster Setup, first you would need to start your ZooK... | [
{
"code": null,
"e": 2121,
"s": 1967,
"text": "First let us start implementing single node-single broker configuration and we will then migrate our setup to single node-multiple brokers configuration."
},
{
"code": null,
"e": 2331,
"s": 2121,
"text": "Hopefully you would have ins... |
How to create a modal dialog in tkinter? | Dialog Boxes are a very essential component of any application. It is generally used to interact with the user and the application interface. We can create dialog boxes for any tkinter application using the Toplevel window and other widgets. The toplevel window pops up the stuff above all the other windows. Thus, we ca... | [
{
"code": null,
"e": 1449,
"s": 1062,
"text": "Dialog Boxes are a very essential component of any application. It is generally used to interact with the user and the application interface. We can create dialog boxes for any tkinter application using the Toplevel window and other widgets. The topleve... |
Python | Matplotlib.pyplot ticks - GeeksforGeeks | 20 Aug, 2020
Matplotlib is an amazing visualization library in Python for 2D plots of arrays. Matplotlib is a multi-platform data visualization library built on NumPy arrays and designed to work with the broader SciPy stack. It was introduced by John Hunter in the year 2003.One of the greatest benefits of visualization... | [
{
"code": null,
"e": 24961,
"s": 24933,
"text": "\n20 Aug, 2020"
},
{
"code": null,
"e": 25802,
"s": 24961,
"text": "Matplotlib is an amazing visualization library in Python for 2D plots of arrays. Matplotlib is a multi-platform data visualization library built on NumPy arrays an... |
C++ Array Library - get() Function | The C++ function std::array::get(std::array) Returns reference to the Ith element of the array container.
Following is the declaration for std::array::get(std::array) function form std::array header.
template <size_t I, class T, size_t N> T& get (array<T,N>& arr) noexcept;
template <size_t I, class T, size_t N> T&& get... | [
{
"code": null,
"e": 2709,
"s": 2603,
"text": "The C++ function std::array::get(std::array) Returns reference to the Ith element of the array container."
},
{
"code": null,
"e": 2803,
"s": 2709,
"text": "Following is the declaration for std::array::get(std::array) function form s... |
Python - Sorting Algorithms | Sorting refers to arranging data in a particular format. Sorting algorithm specifies the way to arrange data in a particular order. Most common orders are in numerical or lexicographical order.
The importance of sorting lies in the fact that data searching can be optimized to a very high level, if data is stored in a s... | [
{
"code": null,
"e": 2521,
"s": 2327,
"text": "Sorting refers to arranging data in a particular format. Sorting algorithm specifies the way to arrange data in a particular order. Most common orders are in numerical or lexicographical order."
},
{
"code": null,
"e": 2787,
"s": 2521,
... |
Java Program to Convert GIF Images to JPEG - GeeksforGeeks | 25 Nov, 2021
JPEG and GIF both are a type of image format to store images. JPEG uses lossy compression algorithm and the image may lose some of its data whereas GIF uses a lossless compression algorithm and no image data loss is present in GIF format. GIF images support animation and transparency. Sometimes it is requi... | [
{
"code": null,
"e": 23557,
"s": 23529,
"text": "\n25 Nov, 2021"
},
{
"code": null,
"e": 24145,
"s": 23557,
"text": "JPEG and GIF both are a type of image format to store images. JPEG uses lossy compression algorithm and the image may lose some of its data whereas GIF uses a loss... |
Removing whitespaces using C# Regex | Let’s say we want to remove whitespace from the following string str1.
string str1 = "Brad Pitt";
Now, use Regex Replace to replace whitespace with empty. Here, we have used System.Text.RegularExpressions.
string str2 = System.Text.RegularExpressions.Regex.Replace(str1, @"\s+", "");
Let us see the complete example.
Li... | [
{
"code": null,
"e": 1133,
"s": 1062,
"text": "Let’s say we want to remove whitespace from the following string str1."
},
{
"code": null,
"e": 1160,
"s": 1133,
"text": "string str1 = \"Brad Pitt\";"
},
{
"code": null,
"e": 1268,
"s": 1160,
"text": "Now, use Re... |
How to get row index based on a value of an R data frame column? | A row of an R data frame can have multiple ways in columns and these values can be numerical, logical, string etc. It is easy to find the values based on row numbers but finding the row numbers based on a value is different. If we want to find the row number for a particular value in a specific column then we can extra... | [
{
"code": null,
"e": 1512,
"s": 1062,
"text": "A row of an R data frame can have multiple ways in columns and these values can be numerical, logical, string etc. It is easy to find the values based on row numbers but finding the row numbers based on a value is different. If we want to find the row n... |
AWK - String Concatenation Operator | Space is a string concatenation operator that merges two strings. The following example demonstrates this −
[jerry]$ awk 'BEGIN { str1 = "Hello, "; str2 = "World"; str3 = str1 str2; print str3 }'
On executing this code, you get the following result −
Hello, World
Print
Add Notes
Bookmark this page | [
{
"code": null,
"e": 1965,
"s": 1857,
"text": "Space is a string concatenation operator that merges two strings. The following example demonstrates this −"
},
{
"code": null,
"e": 2053,
"s": 1965,
"text": "[jerry]$ awk 'BEGIN { str1 = \"Hello, \"; str2 = \"World\"; str3 = str1 st... |
How can I dynamically set the position of view in android? | This example demonstrates how do I in android.
Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.
Step 2− Add the following code to res/layout/activity_main.xml.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://sch... | [
{
"code": null,
"e": 1109,
"s": 1062,
"text": "This example demonstrates how do I in android."
},
{
"code": null,
"e": 1238,
"s": 1109,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project."
},
... |
Same Tree in C++ | Suppose we have two binary trees; we have to define a function to check whether they are the same or not. We know that the binary trees are considered the same when they are structurally identical and the nodes have the same value.
So, if the input is like [1,2,3],[1,2,3], then the output will be True
To solve this, we... | [
{
"code": null,
"e": 1294,
"s": 1062,
"text": "Suppose we have two binary trees; we have to define a function to check whether they are the same or not. We know that the binary trees are considered the same when they are structurally identical and the nodes have the same value."
},
{
"code":... |
How can we change the data type of the column in MySQL table? | It can be done with the help of ALTER TABLE command of MySQL. Consider the table ‘Student’ in which the data type of ‘RollNo’ column is declared as Integer, can be seen from the following query −
mysql> DESCRIBE Student;
+--------+-------------+------+-----+---------+-------+
| Field | Type | Null | Key | Defau... | [
{
"code": null,
"e": 1258,
"s": 1062,
"text": "It can be done with the help of ALTER TABLE command of MySQL. Consider the table ‘Student’ in which the data type of ‘RollNo’ column is declared as Integer, can be seen from the following query −"
},
{
"code": null,
"e": 1700,
"s": 1258,... |
Feature Selection and Regression On the Airbnb Berlin Dataset | by Somesh Kumar Bhattacharya | Towards Data Science | The multidisciplinary field of data science can extract deep insights and knowledge from structured and unstructured data. It unifies the concepts of statistics, data analytics and machine learning and other related concepts to understand and analyze the actual phenomena with data. Machine learning (ML) equips computer... | [
{
"code": null,
"e": 657,
"s": 172,
"text": "The multidisciplinary field of data science can extract deep insights and knowledge from structured and unstructured data. It unifies the concepts of statistics, data analytics and machine learning and other related concepts to understand and analyze the ... |
How to get current Wi-Fi link speed in android? | This example demonstrates How to get current Wi-Fi link speed in android.
Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.
Step 2 − Add the following code to res/layout/activity_main.xml.
<?xml version = "1.0" encoding = "utf-8"?>
<LinearLa... | [
{
"code": null,
"e": 1136,
"s": 1062,
"text": "This example demonstrates How to get current Wi-Fi link speed in android."
},
{
"code": null,
"e": 1265,
"s": 1136,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to c... |
Ant - Environment Setup | Apache Ant is distributed under the Apache Software License which is a fully-fledged open source license certified by the open source initiative.
The latest Apache Ant version, including its full-source code, class files, and documentation can be found at https://ant.apache.org.
It is assumed that you have already down... | [
{
"code": null,
"e": 2243,
"s": 2097,
"text": "Apache Ant is distributed under the Apache Software License which is a fully-fledged open source license certified by the open source initiative."
},
{
"code": null,
"e": 2377,
"s": 2243,
"text": "The latest Apache Ant version, inclu... |
C# Program to get the smallest and largest element from a list | Set a list.
List<long> list = new List<long> { 150, 300, 400, 350, 450, 550, 600 };
To get the smallest element, use the Min() method.
list.AsQueryable().Min();
To get the largest element, use the Max() method.
list.AsQueryable().Max();
Let us see the complete code −
Live Demo
using System;
using System.Collections.Ge... | [
{
"code": null,
"e": 1074,
"s": 1062,
"text": "Set a list."
},
{
"code": null,
"e": 1146,
"s": 1074,
"text": "List<long> list = new List<long> { 150, 300, 400, 350, 450, 550, 600 };"
},
{
"code": null,
"e": 1197,
"s": 1146,
"text": "To get the smallest element... |
Retrieving array values from a find query in MongoDB? | To retrieve array values, use dot(.) notation. Let us first create a collection with documents −
> db.retrievingArrayDemo.insertOne(
{ "UserDetails" : [
{ "UserName" : "John", "UserAge" : 23 } ],
"UserCountryName" : "AUS",
"UserLoginDate" : new ISODate(),
"UserMessage" : "Hello"
}
);
{
... | [
{
"code": null,
"e": 1159,
"s": 1062,
"text": "To retrieve array values, use dot(.) notation. Let us first create a collection with documents −"
},
{
"code": null,
"e": 1761,
"s": 1159,
"text": "> db.retrievingArrayDemo.insertOne(\n { \"UserDetails\" : [\n { \"UserName\" :... |
Introduction to URLSearchParams API in Node.js | Node is an open source project that is used to create dynamic web applications. The URLSearchParams API is an interface. It defines different utility that is required to work with the query string of the URL.
In this article, we will discuss the four different constructors of URLSearchParams that can be used as per the... | [
{
"code": null,
"e": 1271,
"s": 1062,
"text": "Node is an open source project that is used to create dynamic web applications. The URLSearchParams API is an interface. It defines different utility that is required to work with the query string of the URL."
},
{
"code": null,
"e": 1396,
... |
What does 'show processlist' command do in MySQL? | The ‘SHOW processlist’ command can be used to display the running thread related to only your MySQL account. We can see almost all running threads if we have process privileges. It shows which threads are running.
The following is the query.
mysql> SHOW processlist;
Here is the output.
+----+-----------------+---------... | [
{
"code": null,
"e": 1276,
"s": 1062,
"text": "The ‘SHOW processlist’ command can be used to display the running thread related to only your MySQL account. We can see almost all running threads if we have process privileges. It shows which threads are running."
},
{
"code": null,
"e": 13... |
How to add a list elements within an unordered list element using jQuery ? - GeeksforGeeks | 14 Apr, 2021
Here in this article, we will see that how we can add a list to the Unordered List using jQuery. So the function which we had used to append the items in the list are –
<script>
$(document).ready(function() {
$('.btn').click(function(){
var content = $('#addList').val();
... | [
{
"code": null,
"e": 24877,
"s": 24849,
"text": "\n14 Apr, 2021"
},
{
"code": null,
"e": 25046,
"s": 24877,
"text": "Here in this article, we will see that how we can add a list to the Unordered List using jQuery. So the function which we had used to append the items in the list ... |
Web scraping with Python — A to Z | by Shai Ardazi | Towards Data Science | Written by Shai Ardazi & Eitan Kassuto — February 2019
The act of going through web pages and extracting selected text or images.
An excellent tool for getting new data or enriching your current data.
Usually the first step of a data science project which requires a lot of data.
An alternative to API calls for data ret... | [
{
"code": null,
"e": 226,
"s": 171,
"text": "Written by Shai Ardazi & Eitan Kassuto — February 2019"
},
{
"code": null,
"e": 301,
"s": 226,
"text": "The act of going through web pages and extracting selected text or images."
},
{
"code": null,
"e": 372,
"s": 301,
... |
DB2 Quick Guide | This chapter describes history of DB2, its versions, editions and their respective features.
DB2 is a database product from IBM. It is a Relational Database Management System (RDBMS). DB2 is designed to store, analyze and retrieve the data efficiently. DB2 product is extended with the support of Object-Oriented feature... | [
{
"code": null,
"e": 2021,
"s": 1928,
"text": "This chapter describes history of DB2, its versions, editions and their respective features."
},
{
"code": null,
"e": 2290,
"s": 2021,
"text": "DB2 is a database product from IBM. It is a Relational Database Management System (RDBMS)... |
Reading images using Python? | OpenCV(Open source computer vision) is an open source programming library basically developed for machine learning and computer vision. It provides common infrastructure to work on computer vision applications and to fasten the use of machine learning in commercial products.
With more than 2.5 thousand optimized algori... | [
{
"code": null,
"e": 1338,
"s": 1062,
"text": "OpenCV(Open source computer vision) is an open source programming library basically developed for machine learning and computer vision. It provides common infrastructure to work on computer vision applications and to fasten the use of machine learning i... |
Head Pose Estimation using Python | Towards Data Science | Head pose estimation is one of the computer vision tasks that exist. In this task, we want to know the object’s pose from its translation and rotation.
This task has lots of applications. For example, we can detect whether the driver is paying attention to the road or not. The second example is that we can check whethe... | [
{
"code": null,
"e": 324,
"s": 172,
"text": "Head pose estimation is one of the computer vision tasks that exist. In this task, we want to know the object’s pose from its translation and rotation."
},
{
"code": null,
"e": 606,
"s": 324,
"text": "This task has lots of applications... |
Machine Learning - Confusion Matrix | It is the easiest way to measure the performance of a classification problem where the output can be of two or more type of classes. A confusion matrix is nothing but a table with two dimensions viz. “Actual” and “Predicted” and furthermore, both the dimensions have “True Positives (TP)”, “True Negatives (TN)”, “False ... | [
{
"code": null,
"e": 2681,
"s": 2304,
"text": "It is the easiest way to measure the performance of a classification problem where the output can be of two or more type of classes. A confusion matrix is nothing but a table with two dimensions viz. “Actual” and “Predicted” and furthermore, both the di... |
Convert Row Names into Column of DataFrame in R - GeeksforGeeks | 17 Nov, 2021
In this article, we will discuss how to Convert Row Names into Columns of Dataframe in R Programming Language.
row.name() function is used to set and get the name of the DataFrame. Apply the row.name() function to the copy of the DataFrame and a name to the column which contains the name of the column wit... | [
{
"code": null,
"e": 25242,
"s": 25214,
"text": "\n17 Nov, 2021"
},
{
"code": null,
"e": 25354,
"s": 25242,
"text": "In this article, we will discuss how to Convert Row Names into Columns of Dataframe in R Programming Language. "
},
{
"code": null,
"e": 25575,
"s"... |
Android ListView in Kotlin - GeeksforGeeks | 16 Mar, 2022
Android ListView is a ViewGroup which is used to display the list of items in multiple rows and contains an adapter which automatically inserts the items into the list.
The main purpose of the adapter is to fetch data from an array or database and insert each item that placed into the list for the desired ... | [
{
"code": null,
"e": 23827,
"s": 23799,
"text": "\n16 Mar, 2022"
},
{
"code": null,
"e": 23996,
"s": 23827,
"text": "Android ListView is a ViewGroup which is used to display the list of items in multiple rows and contains an adapter which automatically inserts the items into the ... |
Classification Algorithms - Naà ̄ve Bayes | Naïve Bayes algorithms is a classification technique based on applying Bayes’ theorem with a strong assumption that all the predictors are independent to each other. In simple words, the assumption is that the presence of a feature in a class is independent to the presence of any other feature in the same class. For e... | [
{
"code": null,
"e": 2873,
"s": 2304,
"text": "Naïve Bayes algorithms is a classification technique based on applying Bayes’ theorem with a strong assumption that all the predictors are independent to each other. In simple words, the assumption is that the presence of a feature in a class is indepe... |
Find depth of the deepest odd level leaf node - GeeksforGeeks | 20 Jan, 2022
Write a code to get the depth of the deepest odd level leaf node in a binary tree. Consider that level starts with 1. Depth of a leaf node is number of nodes on the path from root to leaf (including both leaf and root).For example, consider the following tree. The deepest odd level node is the node with va... | [
{
"code": null,
"e": 25366,
"s": 25338,
"text": "\n20 Jan, 2022"
},
{
"code": null,
"e": 25710,
"s": 25366,
"text": "Write a code to get the depth of the deepest odd level leaf node in a binary tree. Consider that level starts with 1. Depth of a leaf node is number of nodes on th... |
Designing Deterministic Finite Automata (Set 3) - GeeksforGeeks | 15 Jun, 2021
Prerequisite: Designing finite automata, Designing Deterministic Finite Automata (Set 2) In this article, we will see some designing of Deterministic Finite Automata (DFA).
Problem-1: Construction of a minimal DFA accepting set of string over {a, b} where each string containing ‘a’ as the substring.
Expl... | [
{
"code": null,
"e": 24454,
"s": 24426,
"text": "\n15 Jun, 2021"
},
{
"code": null,
"e": 24628,
"s": 24454,
"text": "Prerequisite: Designing finite automata, Designing Deterministic Finite Automata (Set 2) In this article, we will see some designing of Deterministic Finite Automa... |
Matplotlib.axis.Axis.axis_date() function in Python - GeeksforGeeks | 05 Jun, 2020
Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. It is an amazing visualization library in Python for 2D plots of arrays and used for working with the broader SciPy stack.
The Axis.axis_date() function in axis module of matplotlib library is used to set up a... | [
{
"code": null,
"e": 24292,
"s": 24264,
"text": "\n05 Jun, 2020"
},
{
"code": null,
"e": 24513,
"s": 24292,
"text": "Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. It is an amazing visualization library in Python for 2D plots of ... |
Python Pillow - Image Sequences | The Python Imaging Library (PIL) contains some basic support for Image sequences (animation formats). FLI/FLC, GIF and a few experimental formats are the supported sequence formats. TIFF files can contain more than one frame as well.
Opening a sequence file, PIL automatically loads the first frame in the sequence. To m... | [
{
"code": null,
"e": 2434,
"s": 2200,
"text": "The Python Imaging Library (PIL) contains some basic support for Image sequences (animation formats). FLI/FLC, GIF and a few experimental formats are the supported sequence formats. TIFF files can contain more than one frame as well."
},
{
"code... |
XAML - ComboBox | A ComboBox represents a selection control that combines a non-editable textbox and a drop-down list box that allows users to select an item from a list. It either displays the current selection or is empty if there is no selected item. The hierarchical inheritance of ComboBox class is as follows −
Background
Gets or se... | [
{
"code": null,
"e": 2222,
"s": 1923,
"text": "A ComboBox represents a selection control that combines a non-editable textbox and a drop-down list box that allows users to select an item from a list. It either displays the current selection or is empty if there is no selected item. The hierarchical ... |
Data Structures | Misc | Question 4 - GeeksforGeeks | 28 Jun, 2021
The best data structure to check whether an arithmetic expression has balanced parentheses is a (GATE CS 2004)
(A) queue(B) stack(C) tree(D) listAnswer: (B)Explanation: There are three types of parentheses [ ] { } (). Below is an arbit c code segment which has parentheses of all three types.
void func(int ... | [
{
"code": null,
"e": 25020,
"s": 24992,
"text": "\n28 Jun, 2021"
},
{
"code": null,
"e": 25131,
"s": 25020,
"text": "The best data structure to check whether an arithmetic expression has balanced parentheses is a (GATE CS 2004)"
},
{
"code": null,
"e": 25313,
"s":... |
How to change MySQL column definition? | To change MySQL column definition, we can use modify or change clause with ALTER command. Let us first create a table with a column as ID, with int data type. We will modify the same column name with varchar data type.
Creating a table.
mysql> create table ModifyColumnDemo
-> (
-> id int
-> );
Query OK, 0 rows... | [
{
"code": null,
"e": 1281,
"s": 1062,
"text": "To change MySQL column definition, we can use modify or change clause with ALTER command. Let us first create a table with a column as ID, with int data type. We will modify the same column name with varchar data type."
},
{
"code": null,
"e... |
How to use AutoCompleteTextView in Android App? | This example demonstrate about How to use AutoCompleteTextView in Android App.
Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.
Step 2 − Add the following code to res/layout/activity_main.java
<? xml version= "1.0" encoding= "utf-8" ?>
<Lin... | [
{
"code": null,
"e": 1141,
"s": 1062,
"text": "This example demonstrate about How to use AutoCompleteTextView in Android App."
},
{
"code": null,
"e": 1270,
"s": 1141,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details... |
How to check whether a form or a control is invalid or not in Angular 10 ? - GeeksforGeeks | 24 May, 2021
In this article, we are going to check whether a form is invalid or not in Angular 10. invalid property is used to report that the control or the form is invalid or not.
Syntax:
form.invalid
Return Value:
boolean: the boolean value to check whether a form is invalid or not.
NgModule: Module used by the in... | [
{
"code": null,
"e": 25109,
"s": 25081,
"text": "\n24 May, 2021"
},
{
"code": null,
"e": 25279,
"s": 25109,
"text": "In this article, we are going to check whether a form is invalid or not in Angular 10. invalid property is used to report that the control or the form is invalid o... |
PyQt5 - QAction - GeeksforGeeks | 29 Aug, 2020
QAction : In PyQt5 applications many common commands can be invoked via menus, toolbar buttons, and keyboard shortcuts, since the user expects each command to be performed in the same way, regardless of the user interface used, QAction is useful to represent each command as an action. Actions can be added ... | [
{
"code": null,
"e": 24826,
"s": 24798,
"text": "\n29 Aug, 2020"
},
{
"code": null,
"e": 25325,
"s": 24826,
"text": "QAction : In PyQt5 applications many common commands can be invoked via menus, toolbar buttons, and keyboard shortcuts, since the user expects each command to be p... |
Big Data Analytics - Data Collection | Data collection plays the most important role in the Big Data cycle. The Internet provides almost unlimited sources of data for a variety of topics. The importance of this area depends on the type of business, but traditional industries can acquire a diverse source of external data and combine those with their transact... | [
{
"code": null,
"e": 2886,
"s": 2554,
"text": "Data collection plays the most important role in the Big Data cycle. The Internet provides almost unlimited sources of data for a variety of topics. The importance of this area depends on the type of business, but traditional industries can acquire a di... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.