title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
Choosing and Customizing Loss Functions for Image Processing | by Martin Isaksson | Towards Data Science | Picture this: you’re standing high up a mountain with limited visibility and your goal is to find your way to the bottom. How would you accomplish this? One possible method would be to look around for paths, rejecting those which go up because they would cost you too much time and energy only to learn that they don’t h... | [
{
"code": null,
"e": 873,
"s": 172,
"text": "Picture this: you’re standing high up a mountain with limited visibility and your goal is to find your way to the bottom. How would you accomplish this? One possible method would be to look around for paths, rejecting those which go up because they would ... |
Linear Regression Algorithm from Scratch in Python: Step by Step | by Rashida Nasrin Sucky | Towards Data Science | The most basic machine learning algorithm has to be the linear regression algorithm with a single variable. Nowadays, there are so many advanced machine learning algorithms, libraries, and techniques available that linear regression may seem to be not important. But It is always a good idea to learn the basics. That wa... | [
{
"code": null,
"e": 613,
"s": 171,
"text": "The most basic machine learning algorithm has to be the linear regression algorithm with a single variable. Nowadays, there are so many advanced machine learning algorithms, libraries, and techniques available that linear regression may seem to be not imp... |
lsof - Unix, Linux Command | lsof: list open files.
lsof [ -?abChlnNOPRtUvVX ] [ -A A ] [ -c c ] [ +c c ] [ +|-d d ] [ +|-D D ] [ +|-e s ] [ +|-f [cfgGn] ] [ -F [f] ] [ -g[s] ] [ -i [i] ]
[ -k k ] [ +|-L [l] ] [ +|-m m ] [ +|-M ][ -o [o] ] [ -p s ] [ +|-r [t[m]] ] [ -s [p:s] ] [ -S [t] ] [ -T [t] ] [ -u s ] [ +|-w ]
[ -x [fl] ] [ -z [z] ] [ -Z [... | [
{
"code": null,
"e": 10734,
"s": 10711,
"text": "lsof: list open files."
},
{
"code": null,
"e": 11052,
"s": 10734,
"text": "lsof [ -?abChlnNOPRtUvVX ] [ -A A ] [ -c c ] [ +c c ] [ +|-d d ] [ +|-D D ] [ +|-e s ] [ +|-f [cfgGn] ] [ -F [f] ] [ -g[s] ] [ -i [i] ] \n[ -k k ] [ +|-L [... |
Arduino - Ultrasonic Sensor | The HC-SR04 ultrasonic sensor uses SONAR to determine the distance of an object just like the bats do. It offers excellent non-contact range detection with high accuracy and stable readings in an easy-to-use package from 2 cm to 400 cm or 1” to 13 feet.
The operation is not affected by sunlight or black material, altho... | [
{
"code": null,
"e": 3258,
"s": 3004,
"text": "The HC-SR04 ultrasonic sensor uses SONAR to determine the distance of an object just like the bats do. It offers excellent non-contact range detection with high accuracy and stable readings in an easy-to-use package from 2 cm to 400 cm or 1” to 13 feet.... |
Insert node into the middle of the linked list | 24 Jun, 2022
Given a linked list containing n nodes. The problem is to insert a new node with data x in the middle of the list. If n is even, then insert the new node after the (n/2)th node, else insert the new node after the (n+1)/2th node.
Examples:
Input : list: 1->2->4->5
x = 3
Output : 1->2->3->4->5
Inpu... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n24 Jun, 2022"
},
{
"code": null,
"e": 282,
"s": 53,
"text": "Given a linked list containing n nodes. The problem is to insert a new node with data x in the middle of the list. If n is even, then insert the new node after the (n/2)th no... |
Select Columns with Specific Data Types in Pandas Dataframe | 02 Dec, 2020
In this article, we will see how to select columns with specific data types from a dataframe. This operation can be performed using the DataFrame.select_dtypes() method in pandas module.
Syntax: DataFrame.select_dtypes(include=None, exclude=None)Parameters : include, exclude : A selection of dtypes or stri... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n02 Dec, 2020"
},
{
"code": null,
"e": 215,
"s": 28,
"text": "In this article, we will see how to select columns with specific data types from a dataframe. This operation can be performed using the DataFrame.select_dtypes() method in pan... |
C# | Getting a subset of the elements from the source ArrayList | 01 Feb, 2019
ArrayList.GetRange(Int32, Int32) Method is used to get an ArrayList which will represent a subset of the elements in the source ArrayList.
Syntax:
public virtual System.Collections.ArrayList GetRange (int index, int count);
Parameters:
index: It is of Int32 type and represents the zero-based ArrayList inde... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n01 Feb, 2019"
},
{
"code": null,
"e": 167,
"s": 28,
"text": "ArrayList.GetRange(Int32, Int32) Method is used to get an ArrayList which will represent a subset of the elements in the source ArrayList."
},
{
"code": null,
"e":... |
Round to next greater multiple of 8 | 04 Jul, 2022
Given an unsigned integer x. Round it up to the next greater multiple of 8 using bitwise operations only.Examples:
Input : 35
Output : 40
Input : 64
Output : 64 (As 64 is already a multiple of 8. So, no modification is done.)
Solution 1: We first add 7 and get a number x + 7, then we use the technique... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n04 Jul, 2022"
},
{
"code": null,
"e": 171,
"s": 54,
"text": "Given an unsigned integer x. Round it up to the next greater multiple of 8 using bitwise operations only.Examples: "
},
{
"code": null,
"e": 283,
"s": 171,
... |
Python IMDbPY – Getting movie ID from searched movies | 22 Apr, 2020
In this article we will see how we can get the movie id from searched movies, movie id is basically unique id given to each movie as movie name can be same but id will be distinct. We use search_movie method to search movies with the same name.
In order to get movie id we use movieID method.
Syntax : movie... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n22 Apr, 2020"
},
{
"code": null,
"e": 273,
"s": 28,
"text": "In this article we will see how we can get the movie id from searched movies, movie id is basically unique id given to each movie as movie name can be same but id will be dist... |
The CSS3 rotate3d() Function | The rotate3d() function in CSS is used to rotate an element in 3D space. Set the amount and angle of rotation as parameter of rotate3d().
Let us see an example −
Live Demo
<!DOCTYPE html>
<html>
<head>
<style>
.demo {
transform: rotate3d(1, 1, 1, 45deg);
}
.skew_img {
transform-origin: left;
transform: skew(-... | [
{
"code": null,
"e": 1325,
"s": 1187,
"text": "The rotate3d() function in CSS is used to rotate an element in 3D space. Set the amount and angle of rotation as parameter of rotate3d()."
},
{
"code": null,
"e": 1349,
"s": 1325,
"text": "Let us see an example −"
},
{
"code"... |
Python | Find position of a character in given string | 28 Apr, 2021
Given a string and a character, your task is to find the first position of the character in the string. These types of problem are very competitive programming where you need to locate the position of the character in a string.Let’s discuss a few methods to solve the problem.Method #1: Using Naive Method ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n28 Apr, 2021"
},
{
"code": null,
"e": 360,
"s": 52,
"text": "Given a string and a character, your task is to find the first position of the character in the string. These types of problem are very competitive programming where you need... |
Difference between Python and JavaScript | 24 Nov, 2021
In this article, we will know about Javascript & Python, the purpose of their usage, along with knowing the difference between them.
Python: Python is a high-level general-purpose programming language that was developed to emphasize code readability and allow them to work quickly and efficiently. Python i... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n24 Nov, 2021"
},
{
"code": null,
"e": 162,
"s": 28,
"text": "In this article, we will know about Javascript & Python, the purpose of their usage, along with knowing the difference between them. "
},
{
"code": null,
"e": 429,... |
What is the correct JSON content type ? | 01 Aug, 2021
Content-Type is an HTTP header that is used to indicate the media type of the resource and in the case of responses, it tells the browser about what actually content type of the returned content is. In case of any POST or PUT requests, the client tells the server about the kind of data sent.To know about t... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n01 Aug, 2021"
},
{
"code": null,
"e": 851,
"s": 28,
"text": "Content-Type is an HTTP header that is used to indicate the media type of the resource and in the case of responses, it tells the browser about what actually content type of t... |
Python BeautifulSoup – find all class | 26 Nov, 2020
Prerequisite:- Requests , BeautifulSoup
The task is to write a program to find all the classes for a given Website URL. In Beautiful Soup there is no in-built method to find all classes.
Module needed:
bs4: Beautiful Soup(bs4) is a Python library for pulling data out of HTML and XML files. This module does... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n26 Nov, 2020"
},
{
"code": null,
"e": 68,
"s": 28,
"text": "Prerequisite:- Requests , BeautifulSoup"
},
{
"code": null,
"e": 215,
"s": 68,
"text": "The task is to write a program to find all the classes for a given W... |
Slicing range() function in Python | 03 Nov, 2021
range() allows users to generate a series of numbers within a given range. Depending on how many arguments the user is passing to the function, the user can decide where that series of numbers will begin and end as well as how big the difference will be between one number and the next.range() takes mainly ... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n03 Nov, 2021"
},
{
"code": null,
"e": 377,
"s": 53,
"text": "range() allows users to generate a series of numbers within a given range. Depending on how many arguments the user is passing to the function, the user can decide where that... |
How to normalize an array in NumPy in Python? | 08 Dec, 2021
In this article, we are going to discuss how to normalize 1D and 2D arrays in Python using NumPy. Normalization refers to scaling values of an array to the desired range.
Suppose, we have an array = [1,2,3] and to normalize it in range [0,1] means that it will convert array [1,2,3] to [0, 0.5, 1] as 1, 2 ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n08 Dec, 2021"
},
{
"code": null,
"e": 224,
"s": 52,
"text": "In this article, we are going to discuss how to normalize 1D and 2D arrays in Python using NumPy. Normalization refers to scaling values of an array to the desired range. "
... |
Count Primes in Ranges | 09 Jun, 2022
Given a range [L, R], we need to find the count of total numbers of prime numbers in the range [L, R] where 0 <= L <= R < 10000. Consider that there are a large number of queries for different ranges.Examples:
Input : Query 1 : L = 1, R = 10
Query 2 : L = 5, R = 10
Output : 4
2
Explanati... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n09 Jun, 2022"
},
{
"code": null,
"e": 266,
"s": 54,
"text": "Given a range [L, R], we need to find the count of total numbers of prime numbers in the range [L, R] where 0 <= L <= R < 10000. Consider that there are a large number of que... |
Mapping messy addresses part 1: getting latitude and longitude | by Mark Ryan | Towards Data Science | My home city of Toronto is blessed with the only major streetcar network in North America that survived the postwar vendetta on street railways. Toronto’s streetcars are an essential part of the overall rapid transit system. However, they have one significant vulnerability — if a streetcar gets blocked it can be imposs... | [
{
"code": null,
"e": 742,
"s": 172,
"text": "My home city of Toronto is blessed with the only major streetcar network in North America that survived the postwar vendetta on street railways. Toronto’s streetcars are an essential part of the overall rapid transit system. However, they have one signifi... |
XML - Tags | Let us learn about one of the most important part of XML, the XML tags. XML tags form the foundation of XML. They define the scope of an element in XML. They can also be used to insert comments, declare settings required for parsing the environment, and to insert special instructions.
We can broadly categorize XML tags... | [
{
"code": null,
"e": 2247,
"s": 1961,
"text": "Let us learn about one of the most important part of XML, the XML tags. XML tags form the foundation of XML. They define the scope of an element in XML. They can also be used to insert comments, declare settings required for parsing the environment, and... |
Building a Fast Web Interface in Django for Data Entry | by Angelica Lo Duca | Towards Data Science | In this article I describe a simple strategy to build a fast Web Interface for data entry in Django. The article covers the following topics:
Overview of Django
Install Django
Create a new Project
Create a New App
Create your Database
Build the Data Entry Web Interface
Django is a Python Web framework designed to build... | [
{
"code": null,
"e": 313,
"s": 171,
"text": "In this article I describe a simple strategy to build a fast Web Interface for data entry in Django. The article covers the following topics:"
},
{
"code": null,
"e": 332,
"s": 313,
"text": "Overview of Django"
},
{
"code": nul... |
Fine tuning a classifier in scikit-learn | by Kevin Arvai | Towards Data Science | It’s easy to understand that many machine learning problems benefit from either precision or recall as their optimal performance metric but implementing the concept requires knowledge of a detailed process. My first few attempts to fine-tune models for recall (sensitivity) were difficult, so I decided to share my exper... | [
{
"code": null,
"e": 374,
"s": 47,
"text": "It’s easy to understand that many machine learning problems benefit from either precision or recall as their optimal performance metric but implementing the concept requires knowledge of a detailed process. My first few attempts to fine-tune models for rec... |
How to Build a Simple Notes App in Android? - GeeksforGeeks | 13 Oct, 2020
Notes app is used for making short text notes, update when you need them, and trash when you are done. It can be used for various functions as you can add your to-do list in this app, some important notes for future reference, etc. The app is very useful in some cases like when you want quick access to the... | [
{
"code": null,
"e": 24429,
"s": 24401,
"text": "\n13 Oct, 2020"
},
{
"code": null,
"e": 25115,
"s": 24429,
"text": "Notes app is used for making short text notes, update when you need them, and trash when you are done. It can be used for various functions as you can add your to-... |
fseek() in C/C++ with example - GeeksforGeeks | 02 Jun, 2017
fseek() is used to move file pointer associated with a given file to a specific position.Syntax:
int fseek(FILE *pointer, long int offset, int position)
pointer: pointer to a FILE object that identifies the stream.
offset: number of bytes to offset from position
position: position from where offset is adde... | [
{
"code": null,
"e": 24470,
"s": 24442,
"text": "\n02 Jun, 2017"
},
{
"code": null,
"e": 24567,
"s": 24470,
"text": "fseek() is used to move file pointer associated with a given file to a specific position.Syntax:"
},
{
"code": null,
"e": 24848,
"s": 24567,
"t... |
Java throw Keyword | ❮ Java Keywords
Throw an exception if age is below 18 (print "Access
denied"). If age is 18 or older, print "Access granted":
public class Main {
static void checkAge(int age) {
if (age < 18) {
throw new ArithmeticException("Access denied - You must be at least 18 years old.");
}
else {
Syst... | [
{
"code": null,
"e": 18,
"s": 0,
"text": "\n❮ Java Keywords\n"
},
{
"code": null,
"e": 129,
"s": 18,
"text": "Throw an exception if age is below 18 (print \"Access \ndenied\"). If age is 18 or older, print \"Access granted\":"
},
{
"code": null,
"e": 496,
"s": 129... |
C++ function call by pointer | The call by pointer method of passing arguments to a function copies the address of an argument into the formal parameter. Inside the function, the address is used to access the actual argument used in the call. This means that changes made to the parameter affect the passed argument.
To pass the value by pointer, argu... | [
{
"code": null,
"e": 2604,
"s": 2318,
"text": "The call by pointer method of passing arguments to a function copies the address of an argument into the formal parameter. Inside the function, the address is used to access the actual argument used in the call. This means that changes made to the param... |
Word2Vec Explained. Explaining the Intuition of Word2Vec &... | by Vatsal | Towards Data Science | Table of Contents
Introduction
What is a Word Embedding?
Word2Vec Architecture- CBOW (Continuous Bag of Words) Model- Continuous Skip-Gram Model
Implementation- Data- Requirements- Import Data- Preprocess Data- Embed- PCA on Embeddings
Concluding Remarks
Resources
Word2Vec is a recent breakthrough in the world of NLP. ... | [
{
"code": null,
"e": 190,
"s": 172,
"text": "Table of Contents"
},
{
"code": null,
"e": 203,
"s": 190,
"text": "Introduction"
},
{
"code": null,
"e": 229,
"s": 203,
"text": "What is a Word Embedding?"
},
{
"code": null,
"e": 317,
"s": 229,
... |
Python | Equidistant element list - GeeksforGeeks | 03 Oct, 2019
Sometimes, while working with Python list we can have a problem in which we need to construct the list in which the range is auto computed using the start, end and length parameters. The solution of this problem can have many applications. Let’s discuss a way in which this task can be performed.
Method : U... | [
{
"code": null,
"e": 23901,
"s": 23873,
"text": "\n03 Oct, 2019"
},
{
"code": null,
"e": 24198,
"s": 23901,
"text": "Sometimes, while working with Python list we can have a problem in which we need to construct the list in which the range is auto computed using the start, end and... |
Jupyter Magics with SQL. Jupyter/IPython notebooks can be used... | by Sayat Satybaldiyev | Towards Data Science | Jupyter/IPython notebooks can be used for an interactive data analysis with SQL on a relational database. This fuses together the advantages of using Jupyter, a well-established platform for data analysis, with the ease of use of SQL and the performance of SQL engines.
Jupyter magic functions allow you to replace a boi... | [
{
"code": null,
"e": 317,
"s": 47,
"text": "Jupyter/IPython notebooks can be used for an interactive data analysis with SQL on a relational database. This fuses together the advantages of using Jupyter, a well-established platform for data analysis, with the ease of use of SQL and the performance of... |
How to dynamically update a plot in a loop in Ipython notebook? | We can iterate a plot using display.clear_output(wait=True), display.display(pl.gcf()) and time.sleep() methods in a loop to get the exact output.
Plot a sample (or samples) from the "standard normal" distribution using pylab.randn().
Plot a sample (or samples) from the "standard normal" distribution using pylab.randn(... | [
{
"code": null,
"e": 1209,
"s": 1062,
"text": "We can iterate a plot using display.clear_output(wait=True), display.display(pl.gcf()) and time.sleep() methods in a loop to get the exact output."
},
{
"code": null,
"e": 1297,
"s": 1209,
"text": "Plot a sample (or samples) from the... |
How to Get the Current Working Directory in Golang? - GeeksforGeeks | 10 May, 2020
Getwd functionis used to get the current working directory in Golang, the function returns the rooted path name and if the current directory can be reached via multiple paths, the function can return any one of them.
Syntax:
func Getwd()(dir string, err error)
The func returns two things the directory and ... | [
{
"code": null,
"e": 24460,
"s": 24432,
"text": "\n10 May, 2020"
},
{
"code": null,
"e": 24677,
"s": 24460,
"text": "Getwd functionis used to get the current working directory in Golang, the function returns the rooted path name and if the current directory can be reached via mul... |
Cosine Similarity Matrix using broadcasting in Python | by Andrea Grianti | Towards Data Science | Learn how to code a (almost) one liner python function to calculate (manually) cosine similarity or correlation matrices used in many data science algorithms using the broadcasting feature of numpy library in Python.
Do you think we can say that a professional MotoGP rider and the kid in the picture have the same passi... | [
{
"code": null,
"e": 388,
"s": 171,
"text": "Learn how to code a (almost) one liner python function to calculate (manually) cosine similarity or correlation matrices used in many data science algorithms using the broadcasting feature of numpy library in Python."
},
{
"code": null,
"e": 6... |
C | Structure & Union | Question 5 - GeeksforGeeks | 28 Jun, 2021
#include<stdio.h> struct st { int x; struct st next; }; int main() { struct st temp; temp.x = 10; temp.next = temp; printf("%d", temp.next.x); return 0; }
(A) Compiler Error(B) 10(C) Runtime Error(D) Garbage ValueAnswer: (A)Explanation: A structure cannot contain a member of... | [
{
"code": null,
"e": 24414,
"s": 24386,
"text": "\n28 Jun, 2021"
},
{
"code": "#include<stdio.h> struct st { int x; struct st next; }; int main() { struct st temp; temp.x = 10; temp.next = temp; printf(\"%d\", temp.next.x); return 0; }",
"e": 24601,
"s... |
Find longest sequence of 1's in binary representation with one flip - GeeksforGeeks | 21 May, 2021
Give an integer n. We can flip exactly one bit. Write code to find the length of the longest sequence of 1 s you could create.
Examples:
Input : 1775
Output : 8
Binary representation of 1775 is 11011101111.
After flipping the highlighted bit, we get
consecutive 8 bits. 11011111111.
Input : 12... | [
{
"code": null,
"e": 25074,
"s": 25046,
"text": "\n21 May, 2021"
},
{
"code": null,
"e": 25202,
"s": 25074,
"text": "Give an integer n. We can flip exactly one bit. Write code to find the length of the longest sequence of 1 s you could create. "
},
{
"code": null,
"e"... |
How to Copy files or Folder without overwriting existing files? | To copy files/folders on the remote path without overwriting the existing files/folders, you can use multiple cmdlets like Copy-Item, Robocoy, and Xcopy, etc. As Copy-Item is a standard cmdlet, we will check if it's supported parameters can prevent overwriting.
If Copy-Item doesn’t work then we will check its alternate... | [
{
"code": null,
"e": 1324,
"s": 1062,
"text": "To copy files/folders on the remote path without overwriting the existing files/folders, you can use multiple cmdlets like Copy-Item, Robocoy, and Xcopy, etc. As Copy-Item is a standard cmdlet, we will check if it's supported parameters can prevent over... |
Removing duplicate elements from an array in PHP | The ‘array_flip’ function can be used, that will reverse the values as indices and keys as values.
Live Demo
<?php
$my_arr = array(45, 65, 67, 99, 81, 90, 99, 45, 68);
echo "The original array contains \n";
print_r($my_arr);
$my_arr = array_flip($my_arr);
$my_arr = array_flip($my_arr);
$my_arr= array... | [
{
"code": null,
"e": 1161,
"s": 1062,
"text": "The ‘array_flip’ function can be used, that will reverse the values as indices and keys as values."
},
{
"code": null,
"e": 1172,
"s": 1161,
"text": " Live Demo"
},
{
"code": null,
"e": 1489,
"s": 1172,
"text": "<... |
JavaScript String - link() Method | This method creates an HTML hypertext link that requests another URL.
The syntax for link() method is as follows −
string.link( hrefname )
hrefname − Any string that specifies the HREF of the A tag; it should be a valid URL.
Returns the string with <a> tag.
Try the following example.
<html>
<head>
<title>Java... | [
{
"code": null,
"e": 2536,
"s": 2466,
"text": "This method creates an HTML hypertext link that requests another URL."
},
{
"code": null,
"e": 2581,
"s": 2536,
"text": "The syntax for link() method is as follows −"
},
{
"code": null,
"e": 2606,
"s": 2581,
"text... |
How to increase the font size of the legend in my Seaborn plot using Matplotlib? | To increase the font size of the legend in a Seaborn plot, we can use the fontsize variable and can use it in legend() method argument.
Create a data frame using Pandas. The keys are number, count, and select.
Create a data frame using Pandas. The keys are number, count, and select.
Plot a bar in Seaborn using barplot(... | [
{
"code": null,
"e": 1198,
"s": 1062,
"text": "To increase the font size of the legend in a Seaborn plot, we can use the fontsize variable and can use it in legend() method argument."
},
{
"code": null,
"e": 1272,
"s": 1198,
"text": "Create a data frame using Pandas. The keys are... |
Uber datasets in BigQuery: Driving times around SF (and your city too) | by Felipe Hoffa | Towards Data Science | First let’s play with the interactive dashboard, and we’ll look into the loading steps and troubleshooting below. Note that you can use these steps to load any other city into BigQuery! Interactive Data Studio dashboard:
We can find data for several cities in Uber Movements’s public data site. Here I’ll download some o... | [
{
"code": null,
"e": 393,
"s": 172,
"text": "First let’s play with the interactive dashboard, and we’ll look into the loading steps and troubleshooting below. Note that you can use these steps to load any other city into BigQuery! Interactive Data Studio dashboard:"
},
{
"code": null,
"e... |
ftp_connect() function in PHP | The ftp_connect() function opens an FTB connection.
ftp_connect(host,port,timeout);
host − The FTP server to connect to
host − The FTP server to connect to
port − The port of the FTP server. The default is 21. The host can be a domain or IP address.
port − The port of the FTP server. The default is 21. The host can be ... | [
{
"code": null,
"e": 1114,
"s": 1062,
"text": "The ftp_connect() function opens an FTB connection."
},
{
"code": null,
"e": 1146,
"s": 1114,
"text": "ftp_connect(host,port,timeout);"
},
{
"code": null,
"e": 1182,
"s": 1146,
"text": "host − The FTP server to co... |
Beginner’s Guide to TensorFlow 2.x for Deep Learning Applications | by Orhan G. Yalçın | Towards Data Science | If you are reading this article, I am sure that we share similar interests and are/will be in similar industries. So let’s connect via Linkedin! Please do not hesitate to send a contact request! Orhan G. Yalçın — Linkedin
If you have recently started learning machine learning, you might have already realized the power... | [
{
"code": null,
"e": 394,
"s": 171,
"text": "If you are reading this article, I am sure that we share similar interests and are/will be in similar industries. So let’s connect via Linkedin! Please do not hesitate to send a contact request! Orhan G. Yalçın — Linkedin"
},
{
"code": null,
... |
Addition of two number using ‘-‘ operator? | Operator overloading is an important concept in C++. It is a type of polymorphism in which an operator is overloaded to give user-defined meaning to it. The overloaded operator is used to perform the operation on the user-defined data type. For example, '+' operator can be overloaded to perform addition on various data... | [
{
"code": null,
"e": 1436,
"s": 1062,
"text": "Operator overloading is an important concept in C++. It is a type of polymorphism in which an operator is overloaded to give user-defined meaning to it. The overloaded operator is used to perform the operation on the user-defined data type. For example,... |
How to add a character to the beginning of every word in a string in JavaScript? | We are required to write a function that takes in two strings, we have to return a new string
which is just the same as the first of the two arguments but have second argument prepended
to its every word.
For example −
Input → ‘hello stranger, how are you’, ‘@@’
Output → ‘@@hello @@stranger, @@how @@are @@you’
If secon... | [
{
"code": null,
"e": 1267,
"s": 1062,
"text": "We are required to write a function that takes in two strings, we have to return a new string\nwhich is just the same as the first of the two arguments but have second argument prepended\nto its every word."
},
{
"code": null,
"e": 1281,
... |
Teradata - SELECT Statement | SELECT statement is used to retrieve records from a table.
Following is the basic syntax of SELECT statement.
SELECT
column 1, column 2, .....
FROM
tablename;
Consider the following employee table.
Following is an example of SELECT statement.
SELECT EmployeeNo,FirstName,LastName
FROM Employee;
When this query is ... | [
{
"code": null,
"e": 2689,
"s": 2630,
"text": "SELECT statement is used to retrieve records from a table."
},
{
"code": null,
"e": 2740,
"s": 2689,
"text": "Following is the basic syntax of SELECT statement."
},
{
"code": null,
"e": 2794,
"s": 2740,
"text": "S... |
Group by function in R using Dplyr - GeeksforGeeks | 31 Aug, 2021
Group_by() function belongs to the dplyr package in the R programming language, which groups the data frames. Group_by() function alone will not give any output. It should be followed by summarise() function with an appropriate action to perform. It works similar to GROUP BY in SQL and pivot table in excel... | [
{
"code": null,
"e": 24592,
"s": 24564,
"text": "\n31 Aug, 2021"
},
{
"code": null,
"e": 24901,
"s": 24592,
"text": "Group_by() function belongs to the dplyr package in the R programming language, which groups the data frames. Group_by() function alone will not give any output. I... |
Find if there is a path between two vertices in a directed graph | Set 2 - GeeksforGeeks | 30 Jun, 2021
Given a Directed Graph and two vertices in it, check whether there is a path from the first given vertex to second.
Example:
Consider the following Graph:
Input : (u, v) = (1, 3) Output: Yes Explanation: There is a path from 1 to 3, 1 -> 2 -> 3
Input : (u, v) = (3, 6) Output: No Explanation: There is no... | [
{
"code": null,
"e": 24871,
"s": 24843,
"text": "\n30 Jun, 2021"
},
{
"code": null,
"e": 24987,
"s": 24871,
"text": "Given a Directed Graph and two vertices in it, check whether there is a path from the first given vertex to second."
},
{
"code": null,
"e": 24997,
... |
How to setup the Python and Spark environment for development, with good software engineering practices | by Bogdan Cojocar | Towards Data Science | In this article we will discuss about how to set up our development environment in order to create good quality python code and how to automate some of the tedious tasks to speed up deployments.
We will go over the following steps:
setup our dependencies in a isolated virtual environment with pipenv
how to setup a proj... | [
{
"code": null,
"e": 367,
"s": 172,
"text": "In this article we will discuss about how to set up our development environment in order to create good quality python code and how to automate some of the tedious tasks to speed up deployments."
},
{
"code": null,
"e": 404,
"s": 367,
... |
Excel Data Analysis - Lookup Functions | You can use Excel functions to −
Find values in a range of data - VLOOKUP and HLOOKUP
Obtain a value or the reference to a value from within a table or range - INDEX
Obtain the relative position of a specified item in a range of cells - MATCH
You can also combine these functions to get the required results based on th... | [
{
"code": null,
"e": 2667,
"s": 2634,
"text": "You can use Excel functions to −"
},
{
"code": null,
"e": 2720,
"s": 2667,
"text": "Find values in a range of data - VLOOKUP and HLOOKUP"
},
{
"code": null,
"e": 2800,
"s": 2720,
"text": "Obtain a value or the ref... |
H2O Driverless AI: End-to-End Machine Learning (for anyone!) | by Rohan Gupta | Towards Data Science | In today’s world, being a Data Scientist is not limited to those without technical knowledge. While it is recommended and sometimes important to know a little bit of code, you can get by with just intuitive knowledge. Especially if you’re on H2O’s Driverless AI platform.
If you haven’t heard of H2O.ai, it is the compan... | [
{
"code": null,
"e": 444,
"s": 172,
"text": "In today’s world, being a Data Scientist is not limited to those without technical knowledge. While it is recommended and sometimes important to know a little bit of code, you can get by with just intuitive knowledge. Especially if you’re on H2O’s Driverl... |
C++ Program for Common Divisors of Two Numbers? | Here we will see how we can get the number of common divisors of two numbers. We are not going to find all common divisors, but we will count how many common divisors are there. If two numbers are like 12 and 24, then common divisors are 1, 2, 3, 4, 6, 12. So there are 6 common divisors, so the answer will be 6.
begin
... | [
{
"code": null,
"e": 1376,
"s": 1062,
"text": "Here we will see how we can get the number of common divisors of two numbers. We are not going to find all common divisors, but we will count how many common divisors are there. If two numbers are like 12 and 24, then common divisors are 1, 2, 3, 4, 6, ... |
ETL Testing â Techniques | It is important that you define the correct ETL Testing technique before starting the testing process. You should take an acceptance from all the stakeholders and ensure that a correct technique is selected to perform ETL testing. This technique should be well known to the testing team and they should be aware of the s... | [
{
"code": null,
"e": 2503,
"s": 2145,
"text": "It is important that you define the correct ETL Testing technique before starting the testing process. You should take an acceptance from all the stakeholders and ensure that a correct technique is selected to perform ETL testing. This technique should ... |
Create date from day, month, year fields in MySQL? | You can use in-built function STR_TO_DATE() from MySQL. The syntax is as follows −
SELECT
STR_TO_DATE(CONCAT(yourYearColumName,'-',LPAD(yourMonthColumName,2,'00'),'-',LPAD(yourDayColumName,2,'00')), '%Y-%m-%d') as anyVariableName from yourTableName;
To understand the above syntax, let us create a table. The query to cr... | [
{
"code": null,
"e": 1145,
"s": 1062,
"text": "You can use in-built function STR_TO_DATE() from MySQL. The syntax is as follows −"
},
{
"code": null,
"e": 1312,
"s": 1145,
"text": "SELECT\nSTR_TO_DATE(CONCAT(yourYearColumName,'-',LPAD(yourMonthColumName,2,'00'),'-',LPAD(yourDayCo... |
Car driving using hand detection in Python - GeeksforGeeks | 11 Dec, 2020
In this project, we are going to demonstrate how one can drive a car by just detecting hand gestures on the steering wheel. Let’s say the requirement is something like this –
If driver wants to start the car then put both of your hands on the steering wheel.
If someone having no hands on a steering wheel t... | [
{
"code": null,
"e": 24352,
"s": 24324,
"text": "\n11 Dec, 2020"
},
{
"code": null,
"e": 24527,
"s": 24352,
"text": "In this project, we are going to demonstrate how one can drive a car by just detecting hand gestures on the steering wheel. Let’s say the requirement is something ... |
Complete Binary Tree | Practice | GeeksforGeeks | Given a Binary Tree, write a function to check whether the given Binary Tree is Complete Binary Tree or not. A complete binary tree is a binary tree in which every level, except possibly the last, is completely filled, and all nodes are as far left as possible.
Example 1:
Input:
1
/ \
2 3
Output:
C... | [
{
"code": null,
"e": 500,
"s": 238,
"text": "Given a Binary Tree, write a function to check whether the given Binary Tree is Complete Binary Tree or not. A complete binary tree is a binary tree in which every level, except possibly the last, is completely filled, and all nodes are as far left as pos... |
How to use NVIDIA GPUs for Machine Learning with the new Data Science PC from Maingear | by Déborah Mesquita | Towards Data Science | Deep Learning enables us to perform many human-like tasks, but if you’re a data scientist and you don’t work in a FAANG company (or if you’re not developing the next AI startup) chances are that you still use good and old (ok, maybe not that old) Machine Learning to perform your daily tasks.
One characteristic of Deep ... | [
{
"code": null,
"e": 465,
"s": 172,
"text": "Deep Learning enables us to perform many human-like tasks, but if you’re a data scientist and you don’t work in a FAANG company (or if you’re not developing the next AI startup) chances are that you still use good and old (ok, maybe not that old) Machine ... |
How to sort a column of a Pandas DataFrame? | To sort a column in a Pandas DataFrame, we can use the sort_values() method.
Create a two-dimensional, size-mutable, potentially heterogeneous tabular data, df.
Create a two-dimensional, size-mutable, potentially heterogeneous tabular data, df.
Print input DataFrame, df.
Print input DataFrame, df.
Initialize a variable... | [
{
"code": null,
"e": 1139,
"s": 1062,
"text": "To sort a column in a Pandas DataFrame, we can use the sort_values() method."
},
{
"code": null,
"e": 1223,
"s": 1139,
"text": "Create a two-dimensional, size-mutable, potentially heterogeneous tabular data, df."
},
{
"code":... |
How to Build a Fake News Detection Web App Using Flask | by Fangyi Yu | Towards Data Science | The spread of fake news is unstoppable with the adoption of different social networks. On Twitter, Facebook, Reddit, people take advantage of fake news to spread rumours, win political benefits and click rates.
Detecting fake news is critical for a healthy society, and there are multiple different approaches to detect ... | [
{
"code": null,
"e": 382,
"s": 171,
"text": "The spread of fake news is unstoppable with the adoption of different social networks. On Twitter, Facebook, Reddit, people take advantage of fake news to spread rumours, win political benefits and click rates."
},
{
"code": null,
"e": 709,
... |
Write a power (pow) function using C++ | The power function is used to find the power given two numbers that are the base and exponent. The result is the base raised to the power of the exponent.
An example that demonstrates this is as follows −
Base = 2
Exponent = 5
2^5 = 32
Hence, 2 raised to the power 5 is 32.
A program that demonstrates the power functi... | [
{
"code": null,
"e": 1217,
"s": 1062,
"text": "The power function is used to find the power given two numbers that are the base and exponent. The result is the base raised to the power of the exponent."
},
{
"code": null,
"e": 1267,
"s": 1217,
"text": "An example that demonstrate... |
jsoup - Working with URLs | Following example will showcase methods which can provide relative as well as absolute URLs present in the html page.
String url = "http://www.tutorialspoint.com/";
Document document = Jsoup.connect(url).get();
Element link = document.select("a").first();
System.out.println("Relative Link: " + link.attr("href... | [
{
"code": null,
"e": 2148,
"s": 2030,
"text": "Following example will showcase methods which can provide relative as well as absolute URLs present in the html page."
},
{
"code": null,
"e": 2480,
"s": 2148,
"text": "String url = \"http://www.tutorialspoint.com/\";\nDocument docum... |
HTML | <textarea> name Attribute - GeeksforGeeks | 27 May, 2019
The HTML <textarea> name Attribute is used to specify a name of the <Textarea> Element. It is used to reference the form-data after submitting the form or to reference the element in a JavaScript.
Syntax:
<Textarea name="text">
Attribute Values: It contains the value i.e name which specify the name for th... | [
{
"code": null,
"e": 24503,
"s": 24475,
"text": "\n27 May, 2019"
},
{
"code": null,
"e": 24700,
"s": 24503,
"text": "The HTML <textarea> name Attribute is used to specify a name of the <Textarea> Element. It is used to reference the form-data after submitting the form or to refer... |
Multilevel inheritance in Java | Multilevel inheritance - A class inherits properties from a class which again has inherits properties.
Live Demo
class Shape {
public void display() {
System.out.println("Inside display");
}
}
class Rectangle extends Shape {
public void area() {
System.out.println("Inside area");
}
}
class Cube... | [
{
"code": null,
"e": 1165,
"s": 1062,
"text": "Multilevel inheritance - A class inherits properties from a class which again has inherits properties."
},
{
"code": null,
"e": 1176,
"s": 1165,
"text": " Live Demo"
},
{
"code": null,
"e": 1649,
"s": 1176,
"text"... |
Difference between PX, EM and Percent | The px unit defines a measurement in screen pixels. The following is an example −
div {
padding: 40px;
}
The em unit is a relative measurement for the height of a font in em spaces. Because an em unit is equivalent to the size of a given font, if you assign a font to 12pt, each "em" unit would be 12pt; thus, 2em wou... | [
{
"code": null,
"e": 1144,
"s": 1062,
"text": "The px unit defines a measurement in screen pixels. The following is an example −"
},
{
"code": null,
"e": 1170,
"s": 1144,
"text": "div {\n padding: 40px;\n}"
},
{
"code": null,
"e": 1394,
"s": 1170,
"text": "T... |
Apriori Algorithm Tutorial. Data mining and association rules over... | by François St-Amant | Towards Data Science | The main goal of association rules is to identify relations between products or variables in a dataset. The idea is to determine which products often come together. It is widely used in market basket analysis for instance, where the analyst, starting from a database containing all transactions, will try to determine wh... | [
{
"code": null,
"e": 546,
"s": 172,
"text": "The main goal of association rules is to identify relations between products or variables in a dataset. The idea is to determine which products often come together. It is widely used in market basket analysis for instance, where the analyst, starting from... |
Linux Admin - Backup and Recovery | Before exploring methods particular to CentOS for deploying a standard backup plan, let's first discuss typical considerations for a standard level backup policy. The first thing we want to get accustomed to is the 3-2-1 backup rule.
Throughout the industry, you'll often hear the term 3-2-1 backup model. This is a very... | [
{
"code": null,
"e": 2491,
"s": 2257,
"text": "Before exploring methods particular to CentOS for deploying a standard backup plan, let's first discuss typical considerations for a standard level backup policy. The first thing we want to get accustomed to is the 3-2-1 backup rule."
},
{
"code... |
Add new field to every document in a MongoDB collection? | To add new field to every document in a MongoDB collection, you can use $set operator. The syntax is as follows:
db.yourCollectionName.update({}, { $set: {"yourFieldName": yourValue} }, false, true);
To understand the above syntax, let us create a collection with some documents. The query to create a collection with do... | [
{
"code": null,
"e": 1175,
"s": 1062,
"text": "To add new field to every document in a MongoDB collection, you can use $set operator. The syntax is as follows:"
},
{
"code": null,
"e": 1262,
"s": 1175,
"text": "db.yourCollectionName.update({}, { $set: {\"yourFieldName\": yourValu... |
Check if a large number is divisible by 9 or not - GeeksforGeeks | 09 Apr, 2021
Given a number, the task is to find if the number is divisible by 9 or not. The input number may be large and it may not be possible to store even if we use long long int.
Examples:
Input : n = 69354
Output : Yes
Input : n = 234567876799333
Output : No
Input : n = 3635883959606670431112222
Output : N... | [
{
"code": null,
"e": 26610,
"s": 26582,
"text": "\n09 Apr, 2021"
},
{
"code": null,
"e": 26782,
"s": 26610,
"text": "Given a number, the task is to find if the number is divisible by 9 or not. The input number may be large and it may not be possible to store even if we use long l... |
Count total number of digits from 1 to n - GeeksforGeeks | 22 May, 2021
Given a number n, count the total number of digits required to write all numbers from 1 to n.
Examples:
Input : 13
Output : 17
Numbers from 1 to 13 are 1, 2, 3, 4, 5,
6, 7, 8, 9, 10, 11, 12, 13.
So 1 - 9 require 9 digits and 10 - 13 require 8
digits. Hence 9 + 8 = 17 digits are required.
Input : 4
Outp... | [
{
"code": null,
"e": 26345,
"s": 26317,
"text": "\n22 May, 2021"
},
{
"code": null,
"e": 26439,
"s": 26345,
"text": "Given a number n, count the total number of digits required to write all numbers from 1 to n."
},
{
"code": null,
"e": 26450,
"s": 26439,
"text... |
Python Program for Comb Sort - GeeksforGeeks | 27 Jan, 2022
Comb Sort is mainly an improvement over Bubble Sort. Bubble sort always compares adjacent values. So all inversions are removed one by one. Comb Sort improves on Bubble Sort by using gap of size more than 1. The gap starts with a large value and shrinks by a factor of 1.3 in every iteration until it reache... | [
{
"code": null,
"e": 26097,
"s": 26069,
"text": "\n27 Jan, 2022"
},
{
"code": null,
"e": 26727,
"s": 26097,
"text": "Comb Sort is mainly an improvement over Bubble Sort. Bubble sort always compares adjacent values. So all inversions are removed one by one. Comb Sort improves on B... |
jQWidgets - GeeksforGeeks | 13 Dec, 2021
jQWidgets is a JavaScript framework for making web-based applications for PC and mobile devices. It is a very powerful and optimized framework, platform-independent, and widely supported. It has more than 60 UI widget that helps to create attractive UI design.
Download and Installation:
Download jQWidget f... | [
{
"code": null,
"e": 89901,
"s": 89873,
"text": "\n13 Dec, 2021"
},
{
"code": null,
"e": 90162,
"s": 89901,
"text": "jQWidgets is a JavaScript framework for making web-based applications for PC and mobile devices. It is a very powerful and optimized framework, platform-independen... |
Multimethods in Python - GeeksforGeeks | 21 Apr, 2020
Multimethod basically means a function that has multiple versions, distinguished by the type of the arguments. For better understanding consider the below example.
@multimethod
def sum(x: int, y: int):
return x + y
@multimethod
def sum(x: str, y: str):
return x+" "+y
The above example is similar ... | [
{
"code": null,
"e": 25563,
"s": 25535,
"text": "\n21 Apr, 2020"
},
{
"code": null,
"e": 25727,
"s": 25563,
"text": "Multimethod basically means a function that has multiple versions, distinguished by the type of the arguments. For better understanding consider the below example.... |
Python | Pandas Series.hasnans - GeeksforGeeks | 28 Jan, 2019
Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes importing and analyzing data much easier.
Pandas series is a One-dimensional ndarray with axis labels. The labels need not be unique bu... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n28 Jan, 2019"
},
{
"code": null,
"e": 25751,
"s": 25537,
"text": "Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages a... |
Angular10 NgFor Directive - GeeksforGeeks | 03 Jun, 2021
In this article, we are going to see what is NgFor in Angular 10 and how to use it.
NgFor is used as a structural directive that renders each element for the given collection each element can be displayed on the page.
Syntax:
<li *ngFor='condition'></li>
NgModule: Module used by NgForOf is:
CommonModule
... | [
{
"code": null,
"e": 25895,
"s": 25867,
"text": "\n03 Jun, 2021"
},
{
"code": null,
"e": 25979,
"s": 25895,
"text": "In this article, we are going to see what is NgFor in Angular 10 and how to use it."
},
{
"code": null,
"e": 26113,
"s": 25979,
"text": "NgFor ... |
Matching of patterns in a String in R Programming - agrep() Function - GeeksforGeeks | 14 Apr, 2021
agrep() function in R Language is used to search for approximate matches to pattern within each element of the given string.
Syntax: agrep(pattern, x, ignore.case=FALSE, value=FALSE)Parameters:pattern: Specified pattern which is going to be matched with given elements of the string. x: Specified string ve... | [
{
"code": null,
"e": 26487,
"s": 26459,
"text": "\n14 Apr, 2021"
},
{
"code": null,
"e": 26613,
"s": 26487,
"text": "agrep() function in R Language is used to search for approximate matches to pattern within each element of the given string. "
},
{
"code": null,
"e": ... |
Difference Between C Structures and C++ Structures - GeeksforGeeks | 02 Mar, 2022
Let’s discuss what are the differences between structures in C and structures in C++? In C++, structures are similar to classes.
C Structures
C++ Structures
Similarities Between the C and C++ Structures
Both in C and C++, members of the structure have public visibility by default.
Lets discuss some of the ... | [
{
"code": null,
"e": 25661,
"s": 25633,
"text": "\n02 Mar, 2022"
},
{
"code": null,
"e": 25790,
"s": 25661,
"text": "Let’s discuss what are the differences between structures in C and structures in C++? In C++, structures are similar to classes."
},
{
"code": null,
"e... |
Python - Split in Nested tuples - GeeksforGeeks | 03 Jul, 2020
Sometimes, while working with Python tuples, we can have a problem in which we need to perform split of elements in nested tuple, by a certain delimiter. This kind of problem can have application in different data domains. Let’s discuss certain ways in which this task can be performed.
Input : test_list = ... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n03 Jul, 2020"
},
{
"code": null,
"e": 25824,
"s": 25537,
"text": "Sometimes, while working with Python tuples, we can have a problem in which we need to perform split of elements in nested tuple, by a certain delimiter. This kind... |
AngularJS $location Service - GeeksforGeeks | 11 Jun, 2021
The $location in AngularJS basically uses window.location service. The $location is used to read or change the URL in the browser and it is used to reflect that URL on our page. Any change made in the URL is stored in the $location service in the AngularJS. There are various methods in the $location servic... | [
{
"code": null,
"e": 26354,
"s": 26326,
"text": "\n11 Jun, 2021"
},
{
"code": null,
"e": 26901,
"s": 26354,
"text": "The $location in AngularJS basically uses window.location service. The $location is used to read or change the URL in the browser and it is used to reflect that UR... |
Domino and Tromino tiling problem - GeeksforGeeks | 05 Aug, 2021
Given a positive integer N, the task is to find the number of ways to fill the board of dimension 2*N with a tile of dimensions 2 × 1, 1 × 2, (also known as domino) and an ‘L‘ shaped tile(also know as tromino) show below that can be rotated by 90 degrees.
The L shape tile:
XX
X
After rotating L shape tile... | [
{
"code": null,
"e": 25941,
"s": 25913,
"text": "\n05 Aug, 2021"
},
{
"code": null,
"e": 26197,
"s": 25941,
"text": "Given a positive integer N, the task is to find the number of ways to fill the board of dimension 2*N with a tile of dimensions 2 × 1, 1 × 2, (also known as domino... |
How to wrap setTimeout() method in a promise ? - GeeksforGeeks | 22 Nov, 2019
To wrap setTimeout in a promise returned by a future. We can wrap setTimeout in a promise by using the then() method to return a Promise. The then() method takes upto two arguments that are callback functions for the success and failure conditions of the Promise. This function returns a promise. There can ... | [
{
"code": null,
"e": 25578,
"s": 25550,
"text": "\n22 Nov, 2019"
},
{
"code": null,
"e": 26044,
"s": 25578,
"text": "To wrap setTimeout in a promise returned by a future. We can wrap setTimeout in a promise by using the then() method to return a Promise. The then() method takes u... |
Math.Exp() Method in C# | The Math.Exp() method in C# is used to return e raised to the specified power.
public static double Exp (double val);
Here, Val is the power.
If Val equals NaN or PositiveInfinity, that value is returned. However, if d equals NegativeInfinity, 0 is returned.
Let us now see an example to implement Math.Exp() method −
us... | [
{
"code": null,
"e": 1141,
"s": 1062,
"text": "The Math.Exp() method in C# is used to return e raised to the specified power."
},
{
"code": null,
"e": 1180,
"s": 1141,
"text": "public static double Exp (double val);"
},
{
"code": null,
"e": 1204,
"s": 1180,
"t... |
Goldfeld-Quandt Test - GeeksforGeeks | 29 Sep, 2021
Goldfeld-Quandt Test – This test is used to test the presence of Heteroscedasticity in the given data. The test was given by Stephen M Goldfeld and Richard E Quandt.
This test can be used if the error variance is positively related to one of the explanatory variables( Xi ). Mathematically it is given as ... | [
{
"code": null,
"e": 24025,
"s": 23994,
"text": " \n29 Sep, 2021\n"
},
{
"code": null,
"e": 24192,
"s": 24025,
"text": "Goldfeld-Quandt Test – This test is used to test the presence of Heteroscedasticity in the given data. The test was given by Stephen M Goldfeld and Richard E Qu... |
Tryit Editor v3.7 | Tryit: HTML headings | [] |
Index Of an Extra Element | Practice | GeeksforGeeks | Given two sorted arrays of distinct elements. There is only 1 difference between the arrays. First array has one element extra added in between. Find the index of the extra element.
Example 1:
Input:
N = 7
A[] = {2,4,6,8,9,10,12}
B[] = {2,4,6,8,10,12}
Output: 4
Explanation: In the second array, 9 is
missing and it's in... | [
{
"code": null,
"e": 420,
"s": 238,
"text": "Given two sorted arrays of distinct elements. There is only 1 difference between the arrays. First array has one element extra added in between. Find the index of the extra element."
},
{
"code": null,
"e": 431,
"s": 420,
"text": "Exam... |
Seaborn Visualizations Tutorial. A walkthrough of many Seaborn tools... | by Andrew Cole | Towards Data Science | By Andrew Cole
If you’re like me, a world without sports is basically no world at all. However, enter 2020 and the time of COVID-19, and here we are, watching replays of the 2003 NCAA Tournament’s second round pretending that we are just as invested as if it were the 2020 tournament (which should be happening as I type... | [
{
"code": null,
"e": 187,
"s": 172,
"text": "By Andrew Cole"
},
{
"code": null,
"e": 801,
"s": 187,
"text": "If you’re like me, a world without sports is basically no world at all. However, enter 2020 and the time of COVID-19, and here we are, watching replays of the 2003 NCAA To... |
Multiplicative Cipher | While using Caesar cipher technique, encrypting and decrypting symbols involves converting the values into numbers with a simple basic procedure of addition or subtraction.
If multiplication is used to convert to cipher text, it is called a wrap-around situation. Consider the letters and the associated numbers to be us... | [
{
"code": null,
"e": 2465,
"s": 2292,
"text": "While using Caesar cipher technique, encrypting and decrypting symbols involves converting the values into numbers with a simple basic procedure of addition or subtraction."
},
{
"code": null,
"e": 2632,
"s": 2465,
"text": "If multip... |
Highlighted line chart with Plotly.Express | by Vaclav Dekanovsky | Towards Data Science | Creating interactive graphs with python’s Plotly.Express from a data frame works like a charm. With a single line of code, you can explore the basic characteristics of your dataset. Adding a few more code-lines you can conjure up a really fancy but very narrative chart.
In this exercise, I’ll walk you through the proce... | [
{
"code": null,
"e": 443,
"s": 172,
"text": "Creating interactive graphs with python’s Plotly.Express from a data frame works like a charm. With a single line of code, you can explore the basic characteristics of your dataset. Adding a few more code-lines you can conjure up a really fancy but very n... |
Look and Say Pattern | Practice | GeeksforGeeks | Given an integer n. Return the nth row of the following look-and-say pattern.
1
11
21
1211
111221
Look-and-Say Pattern:
To generate a member of the sequence from the previous member, read off the digits of the previous member, counting the number of digits in groups of the same digit. For example:
1 is read off as "one... | [
{
"code": null,
"e": 358,
"s": 238,
"text": "Given an integer n. Return the nth row of the following look-and-say pattern.\n1\n11\n21\n1211\n111221\nLook-and-Say Pattern:"
},
{
"code": null,
"e": 537,
"s": 358,
"text": "To generate a member of the sequence from the previous membe... |
one to one mapping in hibernate | one to one relationship | foreign | 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
One to one is a relationship in relational da... | [
{
"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,
... |
How to upload multiple files and store them in a folder with PHP? | Below are the steps to upload multiple files and store them in a folder −
Input name must be defined as an array i.e. name="inputName[]"
Input element should have multiple="multiple" or just multiple
In the PHP file, use the syntax "$_FILES['inputName']['param'][index]"
Empty file names and paths have to be checked for... | [
{
"code": null,
"e": 1136,
"s": 1062,
"text": "Below are the steps to upload multiple files and store them in a folder −"
},
{
"code": null,
"e": 1199,
"s": 1136,
"text": "Input name must be defined as an array i.e. name=\"inputName[]\""
},
{
"code": null,
"e": 1262,
... |
Semi-Supervised Classification of Unlabeled Data (PU Learning) | by Alon Agmon | Towards Data Science | Suppose you have a dataset of payment transactions. Some of the transactions are labeled as fraud and the rest are labeled as authentic, and you are required to design a model that will distinguish between fraudulent and authentic transactions. Assuming you have enough data and good features, this seems like a straight... | [
{
"code": null,
"e": 810,
"s": 46,
"text": "Suppose you have a dataset of payment transactions. Some of the transactions are labeled as fraud and the rest are labeled as authentic, and you are required to design a model that will distinguish between fraudulent and authentic transactions. Assuming yo... |
Explain the insertion sort by using C language. | Sorting is the process of arranging the elements either in ascending (or) descending order.
C language provides five sorting techniques, which are as follows −
Bubble sort (or) Exchange Sort
Selection sort
Insertion sort(or) Linear sort
Quick sort (or) Partition exchange sort
Merge Sort (or) External sort
The logic use... | [
{
"code": null,
"e": 1154,
"s": 1062,
"text": "Sorting is the process of arranging the elements either in ascending (or) descending order."
},
{
"code": null,
"e": 1222,
"s": 1154,
"text": "C language provides five sorting techniques, which are as follows −"
},
{
"code": ... |
Print all combinations of balanced parentheses in C++ | In this problem, we are given an integer n. Our task is to print all possible pairs of n balanced parentheses.
Balanced parentheses are parentheses pairs that have a closing symbol for every corresponding opening symbol. Also, pairs should be properly nested.
Let’s take an example to understand the problem,
Input: n = ... | [
{
"code": null,
"e": 1173,
"s": 1062,
"text": "In this problem, we are given an integer n. Our task is to print all possible pairs of n balanced parentheses."
},
{
"code": null,
"e": 1322,
"s": 1173,
"text": "Balanced parentheses are parentheses pairs that have a closing symbol f... |
Feature Extraction Techniques. An end to end guide on how to reduce a... | by Pier Paolo Ippolito | Towards Data Science | 1
2
3
4
5
6
7
8
9
10
Powered by Play.ht
Create audio with Play.ht
Create Audio Narrations with Play.ht
It is nowadays becoming quite common to be working with datasets of hundreds (or even thousands) of features. If the number of features becomes similar (or even bigger!) than the number of observations stored in a dat... | [
{
"code": null,
"e": 174,
"s": 172,
"text": "1"
},
{
"code": null,
"e": 176,
"s": 174,
"text": "2"
},
{
"code": null,
"e": 178,
"s": 176,
"text": "3"
},
{
"code": null,
"e": 180,
"s": 178,
"text": "4"
},
{
"code": null,
"e": 182... |
Python | Decimal exp() method - GeeksforGeeks | 05 Sep, 2019
Decimal#exp() : exp() is a Decimal class method which returns the value of the (natural) exponential function e**x at the given number
Syntax: Decimal.exp()
Parameter: Decimal values
Return: the value of the (natural) exponential function e**x at the given number
Code #1 : Example for exp() method
# Python... | [
{
"code": null,
"e": 26175,
"s": 26147,
"text": "\n05 Sep, 2019"
},
{
"code": null,
"e": 26310,
"s": 26175,
"text": "Decimal#exp() : exp() is a Decimal class method which returns the value of the (natural) exponential function e**x at the given number"
},
{
"code": null,
... |
How to Plot Histogram from List of Data in Matplotlib? - GeeksforGeeks | 11 Feb, 2022
In this article, we are going to see how to Plot a Histogram from a List of Data in Matplotlib in Python.
The histogram helps us to plot bar-graph with specified bins and can be created using the hist() function.
Syntax: hist( dataVariable, bins=x, edgecolor=’anyColor’ )
Parameters:
dataVariable- Any varia... | [
{
"code": null,
"e": 25647,
"s": 25619,
"text": "\n11 Feb, 2022"
},
{
"code": null,
"e": 25753,
"s": 25647,
"text": "In this article, we are going to see how to Plot a Histogram from a List of Data in Matplotlib in Python."
},
{
"code": null,
"e": 25860,
"s": 2575... |
AngularJS | ng-checked Directive - GeeksforGeeks | 26 Mar, 2019
The ng-checked Directive in AngularJS is used to read the checked or unchecked state of the checkbox or radiobutton to true or false. If the expression inside the ng-checked attribute returns true then the checkbox/radiobutton will be checked otherwise it will be unchecked.
Syntax:
<input type="checkbox|ra... | [
{
"code": null,
"e": 29626,
"s": 29598,
"text": "\n26 Mar, 2019"
},
{
"code": null,
"e": 29901,
"s": 29626,
"text": "The ng-checked Directive in AngularJS is used to read the checked or unchecked state of the checkbox or radiobutton to true or false. If the expression inside the ... |
Can we declare the method of an Interface final in java? | An interface in Java is a specification of method prototypes. Whenever you need to guide the programmer or, make a contract specifying how the methods and fields of a type should be you can define an interface.
By default, all the methods of an interface are public and abstract. For example, In the following Java progr... | [
{
"code": null,
"e": 1273,
"s": 1062,
"text": "An interface in Java is a specification of method prototypes. Whenever you need to guide the programmer or, make a contract specifying how the methods and fields of a type should be you can define an interface."
},
{
"code": null,
"e": 1437,... |
ByteBuffer putChar() methods in Java with Examples - GeeksforGeeks | 24 Jun, 2019
The putChar(char value) method of java.nio.ByteBuffer Class is used to write two bytes containing the given char value, in the current byte order, into this buffer at the current position, and then increments the position by two.
Syntax:
public abstract ByteBuffer putChar(char value)
Parameters: This metho... | [
{
"code": null,
"e": 23868,
"s": 23840,
"text": "\n24 Jun, 2019"
},
{
"code": null,
"e": 24098,
"s": 23868,
"text": "The putChar(char value) method of java.nio.ByteBuffer Class is used to write two bytes containing the given char value, in the current byte order, into this buffer... |
Check if the characters of a given string are in alphabetical order - GeeksforGeeks | 13 May, 2021
Given a string ‘s’, the task is to find if the characters of the string are in alphabetical order. The string contains only lowercase characters.
Examples:
Input: Str = "aabbbcc"
Output: In alphabetical order
Input: Str = "aabbbcca"
Output: Not in alphabetical order
A simple approach:
Store the string... | [
{
"code": null,
"e": 24579,
"s": 24551,
"text": "\n13 May, 2021"
},
{
"code": null,
"e": 24727,
"s": 24579,
"text": "Given a string ‘s’, the task is to find if the characters of the string are in alphabetical order. The string contains only lowercase characters. "
},
{
"... |
How to create our own/custom functional interface in Java?
| The functional interface is a simple interface with only one abstract method. A lambda expression can be used through a functional interface in Java 8. We can declare our own/custom
functional interface by defining the Single Abstract Method (SAM) in an interface.
interface CustomInterface {
// abtstact method
}
@Fu... | [
{
"code": null,
"e": 1327,
"s": 1062,
"text": "The functional interface is a simple interface with only one abstract method. A lambda expression can be used through a functional interface in Java 8. We can declare our own/custom\nfunctional interface by defining the Single Abstract Method (SAM) in a... |
C++ Program to Check if a Binary Tree is a BST | Binary Search Tree is a binary tree data structure in which we have 3 properties −
The left subtree of a binary search tree of a node contains only nodes with keys lesser than the node’s key.
The left subtree of a binary search tree of a node contains only nodes with keys lesser than the node’s key.
The right subtree o... | [
{
"code": null,
"e": 1145,
"s": 1062,
"text": "Binary Search Tree is a binary tree data structure in which we have 3 properties −"
},
{
"code": null,
"e": 1254,
"s": 1145,
"text": "The left subtree of a binary search tree of a node contains only nodes with keys lesser than the no... |
Tryit Editor v3.6 - Show React | import React from 'react';
import ReactDOM from 'react-dom/client';
const myElement = <h1>React is {5 + 5} times better with JSX</h1>;
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(myElement);
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="v... | [
{
"code": null,
"e": 231,
"s": 0,
"text": "\nimport React from 'react';\nimport ReactDOM from 'react-dom/client';\n\nconst myElement = <h1>React is {5 + 5} times better with JSX</h1>;\n\nconst root = ReactDOM.createRoot(document.getElementById('root'));\nroot.render(myElement);\n\n"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.