title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
How to return the data type of variable in JavaScript ? - GeeksforGeeks | 09 Apr, 2021
In JavaScript, unlike many other programming languages, we do not specify the type of a variable while declaring it, rather the variable’s type is automatically inferred based on the value it holds. In other words, JavaScript is a “dynamically typed” programming language. In such languages, the type of a v... | [
{
"code": null,
"e": 26545,
"s": 26517,
"text": "\n09 Apr, 2021"
},
{
"code": null,
"e": 26895,
"s": 26545,
"text": "In JavaScript, unlike many other programming languages, we do not specify the type of a variable while declaring it, rather the variable’s type is automatically in... |
How To Make Histogram with Median Line using Altair in Python? - GeeksforGeeks | 26 Nov, 2020
In this article, we will learn about how to make the histogram with the median line using Altair in python. This article is also a great example of Altair’s grammar of graphics.
Altair is one of the latest interactive data visualizations library in python. Altair is based on vega and vegalite- A grammar o... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n26 Nov, 2020"
},
{
"code": null,
"e": 25716,
"s": 25537,
"text": "In this article, we will learn about how to make the histogram with the median line using Altair in python. This article is also a great example of Altair’s gramma... |
Python Number fabs() Method | Python number method fabs() returns the absolute value of x.
Following is the syntax for fabs() method −
import math
math.fabs( x )
Note − This function is not accessible directly, so we need to import math module and then we need to call this function using math static object.
x − This is a numeric value.
x − This i... | [
{
"code": null,
"e": 2306,
"s": 2244,
"text": "Python number method fabs() returns the absolute value of x."
},
{
"code": null,
"e": 2350,
"s": 2306,
"text": "Following is the syntax for fabs() method −"
},
{
"code": null,
"e": 2378,
"s": 2350,
"text": "impor... |
Create Dataset for Sentiment Analysis by Scraping Google Play App Reviews using Python | by Venelin Valkov | Towards Data Science | TL;DR Learn how to create a dataset for Sentiment Analysis by scraping user reviews for Android apps. You’ll convert the app and review information into Data Frames and save that to CSV files.
Run the notebook in your browser (Google Colab)
Complete project on GitHub
leanpub.com
You’ll learn how to:
Set a goal and incl... | [
{
"code": null,
"e": 364,
"s": 171,
"text": "TL;DR Learn how to create a dataset for Sentiment Analysis by scraping user reviews for Android apps. You’ll convert the app and review information into Data Frames and save that to CSV files."
},
{
"code": null,
"e": 412,
"s": 364,
"t... |
PPC - Introduction | We have the Internet that provides a huge platform for advertising products and services online. Advertisers around the world have shown a keen interest in making good use of the Internet that is omnipresent these days to market various products and speed up their business activities by reaching out to numerous users.
... | [
{
"code": null,
"e": 1774,
"s": 1454,
"text": "We have the Internet that provides a huge platform for advertising products and services online. Advertisers around the world have shown a keen interest in making good use of the Internet that is omnipresent these days to market various products and spe... |
The tale of missing values in Python | by HAFEEZ JIMOH | Towards Data Science | Imagine buying a chocolate box with 60 chocolate samples where there are 15 different unique shapes of chocolates. Unfortunately, on opening the chocolate box, you find two empty segments of chocolate. Can you accurately find a way out off handling the missing chocolate segments. Should one just pretend as if the missi... | [
{
"code": null,
"e": 831,
"s": 171,
"text": "Imagine buying a chocolate box with 60 chocolate samples where there are 15 different unique shapes of chocolates. Unfortunately, on opening the chocolate box, you find two empty segments of chocolate. Can you accurately find a way out off handling the mi... |
Quick Recommendation-Based Data Exploration with Lux | by Cornellius Yudha Wijaya | Towards Data Science | As a Data Scientist, data exploration, or EDA, is our everyday work and the thing we get paid to do. There is no other skill more important to a data scientist than the data exploration skill (in my opinion). While it is important, we know that the process is a hassle and sometimes a time-exhauster. Moreover, a lot of ... | [
{
"code": null,
"e": 548,
"s": 171,
"text": "As a Data Scientist, data exploration, or EDA, is our everyday work and the thing we get paid to do. There is no other skill more important to a data scientist than the data exploration skill (in my opinion). While it is important, we know that the proces... |
Bit Stuffing error detection technique using Java - GeeksforGeeks | 07 Oct, 2021
Prerequisites:1. Socket programming in Java2. Bit Stuffing3. Framing in data Link Layer
Data is encapsulated in frames in the data link layer and sent over the network. Bit Stuffing is a error detection technique.
The idea used is very simple. Each frame begins and ends with a special bit pattern “01111110... | [
{
"code": null,
"e": 24119,
"s": 24091,
"text": "\n07 Oct, 2021"
},
{
"code": null,
"e": 24207,
"s": 24119,
"text": "Prerequisites:1. Socket programming in Java2. Bit Stuffing3. Framing in data Link Layer"
},
{
"code": null,
"e": 24333,
"s": 24207,
"text": "Da... |
How to create text-reveal effect using HTML and CSS ? - GeeksforGeeks | 02 Nov, 2021
Text-reveal is a type of effect in which all the alphabets of the text are revealed one by one in some animated way. There are uncountable ways to animate text for this effect. It up to your creativity that how you want the text to reveal. We will look at a basic and easy way to get started.Approach: The a... | [
{
"code": null,
"e": 24275,
"s": 24247,
"text": "\n02 Nov, 2021"
},
{
"code": null,
"e": 24737,
"s": 24275,
"text": "Text-reveal is a type of effect in which all the alphabets of the text are revealed one by one in some animated way. There are uncountable ways to animate text for... |
How to set dialog to show with full screen in Android? | This example demonstrates how do I set the dialog to show with full screen 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"?>
... | [
{
"code": null,
"e": 1149,
"s": 1062,
"text": "This example demonstrates how do I set the dialog to show with full screen in android."
},
{
"code": null,
"e": 1278,
"s": 1149,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required... |
Bollinger Bands Statistics in Trading | by Atilla Yurtseven | Towards Data Science | There are lots of traders use Bollinger Bands. I love Bollinger Bands as well. It uses and brings statistics into the trading world. But how accurate is it? Is it a correct way to use standard deviation in time-series? Let’s find out together!
There is no leading indicators
As traders, most of us use OHLC candle/bar ch... | [
{
"code": null,
"e": 415,
"s": 171,
"text": "There are lots of traders use Bollinger Bands. I love Bollinger Bands as well. It uses and brings statistics into the trading world. But how accurate is it? Is it a correct way to use standard deviation in time-series? Let’s find out together!"
},
{
... |
Deep Learning in Healthcare — X-Ray Imaging (Part 3-Analyzing images using Python) | by Arjun Sarkar | Towards Data Science | Now that we have seen how difficult it is for an untrained professional to interpret X-ray images, lets’ look at a few techniques to view and analyze the images, their histograms, and a technique to add images and labels together, using Python programming.
The image dataset (Chest X-Rays) was obtained from Kaggle. Data... | [
{
"code": null,
"e": 428,
"s": 171,
"text": "Now that we have seen how difficult it is for an untrained professional to interpret X-ray images, lets’ look at a few techniques to view and analyze the images, their histograms, and a technique to add images and labels together, using Python programming... |
How to programmatically empty browser cache with HTML? | You can tell your browser not to cache your page by using the following meta tags −
<metahttp-equiv = 'cache-control' content = 'no-cache'>
<metahttp-equiv = 'expires' content = '0'>
<metahttp-equiv = 'pragma' content = 'no-cache'>
In addition, try the following: Append a parameter/string to the filename in the script... | [
{
"code": null,
"e": 1146,
"s": 1062,
"text": "You can tell your browser not to cache your page by using the following meta tags −"
},
{
"code": null,
"e": 1294,
"s": 1146,
"text": "<metahttp-equiv = 'cache-control' content = 'no-cache'>\n<metahttp-equiv = 'expires' content = '0'... |
Analyzing multigraphs in Neo4j Graph data science library | by Tomaz Bratanic | Towards Data Science | When times are tough, I think it is essential to focus on our relationships. Some of us concentrate more on social interactions. Others like to play around with neurons, while some just want to look at cute animals. No matter your network preference, I would like to help you reflect on those relationships and find more... | [
{
"code": null,
"e": 803,
"s": 172,
"text": "When times are tough, I think it is essential to focus on our relationships. Some of us concentrate more on social interactions. Others like to play around with neurons, while some just want to look at cute animals. No matter your network preference, I wo... |
Adding one to number represented as array of digits - GeeksforGeeks | 05 Jan, 2022
Given a non-negative number represented as an array of digits, add 1 to the number ( increment the number represented by the digits ). The digits are stored such that the most significant digit is the first element of the array.
Examples :
Input : [1, 2, 4]
Output : [1, 2, 5]
Input : [9, 9, 9]
Output : [... | [
{
"code": null,
"e": 24685,
"s": 24657,
"text": "\n05 Jan, 2022"
},
{
"code": null,
"e": 24914,
"s": 24685,
"text": "Given a non-negative number represented as an array of digits, add 1 to the number ( increment the number represented by the digits ). The digits are stored such t... |
How to click on a link in Selenium with python? | We can click on a link on page with the help of locators available in Selenium. Link text and partial link text are the locators generally used for clicking links. Both these locators work with the text available inside the anchor tags.
Link Text – The text within the anchor tag is matched with the element to be identi... | [
{
"code": null,
"e": 1299,
"s": 1062,
"text": "We can click on a link on page with the help of locators available in Selenium. Link text and partial link text are the locators generally used for clicking links. Both these locators work with the text available inside the anchor tags."
},
{
"c... |
How to match underscore in a MySQL String? | To match underscore in a MySQL string, you can use the below syntax −
select *from yourTableName where yourColumnName LIKE '%\_%';
Let us first create a table −
mysql> create table DemoTable
(
ClientId varchar(200)
);
Query OK, 0 rows affected (0.79 sec)
Insert some records in the table using insert command −
mysql>... | [
{
"code": null,
"e": 1132,
"s": 1062,
"text": "To match underscore in a MySQL string, you can use the below syntax −"
},
{
"code": null,
"e": 1193,
"s": 1132,
"text": "select *from yourTableName where yourColumnName LIKE '%\\_%';"
},
{
"code": null,
"e": 1223,
"s"... |
Apache HttpClient - Multipart Upload | Using HttpClient, we can perform Multipart upload, i.e., we can upload larger objects in
smaller parts. In this chapter, we demonstrate the multipart upload in HTTP client by uploading a simple text file.
In general, any multipart upload contains three parts.
Initiation of the upload
Initiation of the upload
Uploading ... | [
{
"code": null,
"e": 2032,
"s": 1827,
"text": "Using HttpClient, we can perform Multipart upload, i.e., we can upload larger objects in\nsmaller parts. In this chapter, we demonstrate the multipart upload in HTTP client by uploading a simple text file."
},
{
"code": null,
"e": 2087,
... |
Easy Stylish Chip Button in Bottom Navigation Bar in Android - GeeksforGeeks | 18 Feb, 2021
We all have come across apps that have a Bottom Navigation Bar. Some popular examples include Instagram, Snapchat, etc. In this article, let’s learn how to implement an easy stylish functional Bottom Navigation Bar in the Android app. For Creating a Basic Bottom Navigation bar refer to Bottom Navigation Ba... | [
{
"code": null,
"e": 24749,
"s": 24721,
"text": "\n18 Feb, 2021"
},
{
"code": null,
"e": 25235,
"s": 24749,
"text": "We all have come across apps that have a Bottom Navigation Bar. Some popular examples include Instagram, Snapchat, etc. In this article, let’s learn how to impleme... |
Ngx-Bootstrap - Pagination | ngx-bootstrap pagination component provides pagination links or a pager component to your site or component.
pagination
pagination
align − boolean, if true aligns each link to the sides of pager
align − boolean, if true aligns each link to the sides of pager
boundaryLinks − boolean, if false first and last buttons will... | [
{
"code": null,
"e": 2209,
"s": 2100,
"text": "ngx-bootstrap pagination component provides pagination links or a pager component to your site or component."
},
{
"code": null,
"e": 2220,
"s": 2209,
"text": "pagination"
},
{
"code": null,
"e": 2231,
"s": 2220,
... |
Send mail from your Gmail account using Python | In this article, we will see how we can send email with attachments using Python. To send mail, we do not need any external library. There is a module called SMTPlib, which comes with Python. It uses SMTP (Simple Mail Transfer Protocol) to send the mail. It creates SMTP client session objects for mailing.
SMTP needs va... | [
{
"code": null,
"e": 1369,
"s": 1062,
"text": "In this article, we will see how we can send email with attachments using Python. To send mail, we do not need any external library. There is a module called SMTPlib, which comes with Python. It uses SMTP (Simple Mail Transfer Protocol) to send the mail... |
How to create Tab Layout in an Android App using Kotlin? | This example demonstrates how to create Tab Layout in an Android App using Kotlin.
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"?>
<Rela... | [
{
"code": null,
"e": 1145,
"s": 1062,
"text": "This example demonstrates how to create Tab Layout in an Android App using Kotlin."
},
{
"code": null,
"e": 1273,
"s": 1145,
"text": "Step 1 − Create a new project in Android Studio, go to File? New Project and fill all required deta... |
Increase the font size of a paragraph with Bootstrap | Use the .lead class in Bootstrap to increase the font size of a paragraph.
You can try to run the following code to implement lead class −
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>Bootstrap Example</title>
<link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet">
<script src = "/scr... | [
{
"code": null,
"e": 1137,
"s": 1062,
"text": "Use the .lead class in Bootstrap to increase the font size of a paragraph."
},
{
"code": null,
"e": 1201,
"s": 1137,
"text": "You can try to run the following code to implement lead class −"
},
{
"code": null,
"e": 1211,
... |
Bootstrap 4 - Typography | The typography feature creates headings, paragraphs, lists and other inline elements. It specifies how text elements should be rendered on the web page.
Let see each one of the feature of typography in the following sections.
Bootstrap 4 provides HTML headings from h1 to h6 as shown in the below example −
<html lang = ... | [
{
"code": null,
"e": 1969,
"s": 1816,
"text": "The typography feature creates headings, paragraphs, lists and other inline elements. It specifies how text elements should be rendered on the web page."
},
{
"code": null,
"e": 2042,
"s": 1969,
"text": "Let see each one of the featu... |
Find the length of the Largest subset such that all elements are Pairwise Coprime - GeeksforGeeks | 31 Aug, 2021
Given an array A of size N, our task is to find the length of the largest subset such that all elements in the subset are pairwise coprime that is for any two elements x and y where x and y are not the same, the gcd(x, y) is equal to 1.Note: All array elements are <= 50.
Examples:
Input: A = [2, 5, 2, 5, 2... | [
{
"code": null,
"e": 24275,
"s": 24247,
"text": "\n31 Aug, 2021"
},
{
"code": null,
"e": 24547,
"s": 24275,
"text": "Given an array A of size N, our task is to find the length of the largest subset such that all elements in the subset are pairwise coprime that is for any two elem... |
Exploring Classifiers with Python Scikit-learn — Iris Dataset | by Dehao Zhang | Towards Data Science | For a moment, imagine that you are not a flower expert (if you are an expert, good for you!). Can you distinguish between three different species of iris — setosa, versicolor, and virginica?
I know I can’t...
BUT what if we have a dataset that contains instances of these species, with measurements of their sepals and p... | [
{
"code": null,
"e": 363,
"s": 172,
"text": "For a moment, imagine that you are not a flower expert (if you are an expert, good for you!). Can you distinguish between three different species of iris — setosa, versicolor, and virginica?"
},
{
"code": null,
"e": 381,
"s": 363,
"tex... |
Descending order in Map and Multimap of C++ STL | Generally, the default behavior of map and multimap map is to store elements is in ascending order. But we can store element in descending order by using the greater function.
The map in descending order:
m::find() – Returns an iterator to the element with key value ‘b’ in the map if found, else returns the iterator to... | [
{
"code": null,
"e": 1238,
"s": 1062,
"text": "Generally, the default behavior of map and multimap map is to store elements is in ascending order. But we can store element in descending order by using the greater function."
},
{
"code": null,
"e": 1267,
"s": 1238,
"text": "The ma... |
Bye-bye PowerPoint. Hello Marp!. Could this free Markdown-based tool... | by Dario Radečić | Towards Data Science | Do you find PowerPoint annoying? Me too. It can be laggy at times and has an overwhelming number of options. If you’re in the market for something simpler, today’s your lucky day. Marp might be the right tool to save you time and nerves.
It’s a Visual Studio Code extension based on Markdown, and lets you create present... | [
{
"code": null,
"e": 409,
"s": 171,
"text": "Do you find PowerPoint annoying? Me too. It can be laggy at times and has an overwhelming number of options. If you’re in the market for something simpler, today’s your lucky day. Marp might be the right tool to save you time and nerves."
},
{
"co... |
Python 3 - File readline() Method | The method readline()reads one entire line from the file. A trailing newline character is kept in the string. If the size argument is present and non-negative, it is a maximum byte count including the trailing newline and an incomplete line may be returned.
An empty string is returned only when EOF is encountered immed... | [
{
"code": null,
"e": 2598,
"s": 2340,
"text": "The method readline()reads one entire line from the file. A trailing newline character is kept in the string. If the size argument is present and non-negative, it is a maximum byte count including the trailing newline and an incomplete line may be retur... |
Line Generation Algorithm | A line connects two points. It is a basic element in graphics. To draw a line, you need two points between which you can draw a line. In the following three algorithms, we refer the one point of line as X0,Y0 and the second point of line as X1,Y1.
Digital Differential Analyzer DDA algorithm is the simple line generatio... | [
{
"code": null,
"e": 2167,
"s": 1919,
"text": "A line connects two points. It is a basic element in graphics. To draw a line, you need two points between which you can draw a line. In the following three algorithms, we refer the one point of line as X0,Y0 and the second point of line as X1,Y1."
},... |
Logging in Node.js | 01 Apr, 2021
Node.js is a JavaScript runtime that’s built on Chrome’s V8 JavaScript engine and its run-time environment includes everything which we’d like to execute a program written in JavaScript. Logging is an essential part of understanding the complete application life cycle of the Node.js program. From starting ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n01 Apr, 2021"
},
{
"code": null,
"e": 690,
"s": 28,
"text": "Node.js is a JavaScript runtime that’s built on Chrome’s V8 JavaScript engine and its run-time environment includes everything which we’d like to execute a program written in ... |
Python program to capitalize the first and last character of each word in a string | 01 Jun, 2022
Given the string, the task is to capitalise the first and last character of each word in a string. Examples:
Input: hello world
Output: HellO WorlD
Input: welcome to geeksforgeeks
Output: WelcomE TO GeeksforgeekS
Approach:
Access the last element using indexing.
Capitalize the first word using title() me... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n01 Jun, 2022"
},
{
"code": null,
"e": 163,
"s": 54,
"text": "Given the string, the task is to capitalise the first and last character of each word in a string. Examples:"
},
{
"code": null,
"e": 269,
"s": 163,
"text... |
Introduction of Embedded Systems | Set-1 | 09 Jun, 2022
Before going to the overview of Embedded System, Let’s first know the two basic things i.e embedded and system, and what actually do they mean.
What is a System?
In simple, a system is a set of interrelated parts/components which are designed/developed to perform a common tasks or to do some specific wor... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n09 Jun, 2022"
},
{
"code": null,
"e": 197,
"s": 52,
"text": "Before going to the overview of Embedded System, Let’s first know the two basic things i.e embedded and system, and what actually do they mean. "
},
{
"code": null,
... |
How to draw a circle with gradient border using CSS ? | 13 May, 2020
CSS is used to create various shapes and styles with different colors or gradient. In this article, we will learn how to draw a circle with a gradient border.
Approach: We are going to create two div one is outer div with class outer_circle and another is inner div with class inner_circle. Outer div contai... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n13 May, 2020"
},
{
"code": null,
"e": 187,
"s": 28,
"text": "CSS is used to create various shapes and styles with different colors or gradient. In this article, we will learn how to draw a circle with a gradient border."
},
{
"c... |
Scala | Try-Catch Exceptions | 12 Apr, 2019
The Try-Catch construct is different in Scala than in Java, Try-Catch in Scala is an expression. the Scala make use of pattern matching in the catch clause. Suppose, we have to implement a series of code which can throw an exception and if we want to control that exception then we should utilize the Try-Ca... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n12 Apr, 2019"
},
{
"code": null,
"e": 553,
"s": 28,
"text": "The Try-Catch construct is different in Scala than in Java, Try-Catch in Scala is an expression. the Scala make use of pattern matching in the catch clause. Suppose, we have t... |
How To Make Barplots with Error bars in ggplot2 in R? | 12 Nov, 2021
In this article, we will discuss how to make a barplot with an error bar using ggplot2 in the R programming language.
Error Bars helps us to visualize the distribution of the data. Error Bars can be applied to any type of plot, to provide an additional layer of detail on the presented data. Often there ma... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n12 Nov, 2021"
},
{
"code": null,
"e": 147,
"s": 28,
"text": "In this article, we will discuss how to make a barplot with an error bar using ggplot2 in the R programming language. "
},
{
"code": null,
"e": 536,
"s": 147,
... |
What is the use of EXIST and EXIST NOT operator with MySQL subqueries? | The EXIST operator test for the existence of rows in the result set of the subquery. If a subquery row value is found then EXISTS subquery is TRUE and NOT EXISTS subquery if FALSE. To illustrate it we are using the tables ‘Cars’, ‘Customers’ and ‘Reservations’ having the following data −
mysql> Select * from Cars;
+---... | [
{
"code": null,
"e": 1351,
"s": 1062,
"text": "The EXIST operator test for the existence of rows in the result set of the subquery. If a subquery row value is found then EXISTS subquery is TRUE and NOT EXISTS subquery if FALSE. To illustrate it we are using the tables ‘Cars’, ‘Customers’ and ‘Reserv... |
SQLAlchemy ORM - Building Relationship | This session describes creation of another table which is related to already existing one in our database. The customers table contains master data of customers. We now need to create invoices table which may have any number of invoices belonging to a customer. This is a case of one to many relationships.
Using declara... | [
{
"code": null,
"e": 2647,
"s": 2340,
"text": "This session describes creation of another table which is related to already existing one in our database. The customers table contains master data of customers. We now need to create invoices table which may have any number of invoices belonging to a c... |
Stack.Peek Method in C# - GeeksforGeeks | 04 Feb, 2019
This method(comes under System.Collections namespace) is used to return the object at the top of the Stack without removing it. This method is similar to the Pop method, but Peek does not modify the Stack.
Syntax:
public virtual object Peek ();
Return Value: It returns the Object at the top of the Stack.
... | [
{
"code": null,
"e": 23288,
"s": 23260,
"text": "\n04 Feb, 2019"
},
{
"code": null,
"e": 23494,
"s": 23288,
"text": "This method(comes under System.Collections namespace) is used to return the object at the top of the Stack without removing it. This method is similar to the Pop m... |
Convert from String to long in Java | To convert String to long, the following are the two methods.
The following is an example wherein we use parseLong() method.
Live Demo
public class Demo {
public static void main(String[] args) {
String myStr = "5";
Long myLong = Long.parseLong(myStr);
System.out.println("Long: "+myLong);
}
}
L... | [
{
"code": null,
"e": 1124,
"s": 1062,
"text": "To convert String to long, the following are the two methods."
},
{
"code": null,
"e": 1187,
"s": 1124,
"text": "The following is an example wherein we use parseLong() method."
},
{
"code": null,
"e": 1198,
"s": 1187,... |
Area Under the Curve and Beyond with Integrated Discrimination Improvement and Net Reclassification | by lambert leong | Towards Data Science | AUC is a good starting metric when comparing the performance of two models but it does not always tell the whole story
NRI looks at the new models ability to correctly reclassify cancers and benigns and should be used alongside AUC
IDI quantifies improvement of the slopes of the discrimination curves and plotting it ca... | [
{
"code": null,
"e": 291,
"s": 172,
"text": "AUC is a good starting metric when comparing the performance of two models but it does not always tell the whole story"
},
{
"code": null,
"e": 404,
"s": 291,
"text": "NRI looks at the new models ability to correctly reclassify cancers... |
Using Classes for Machine Learning | by Sadrach Pierre, Ph.D. | Towards Data Science | Classes provide a useful way of combining data and functionality. The modularity of classes enables effective troubleshooting, code reuse, and problem-solving. For example, if your code breaks, you will be able to point to a specific class or class method without having to sift through much else code. Because of these ... | [
{
"code": null,
"e": 584,
"s": 172,
"text": "Classes provide a useful way of combining data and functionality. The modularity of classes enables effective troubleshooting, code reuse, and problem-solving. For example, if your code breaks, you will be able to point to a specific class or class method... |
Implement Logistic Regression with L2 Regularization from scratch in Python | by Tulrose Deori | Towards Data Science | Table of contents:
IntroductionPre-requisitesMathematics behind the scenesRegularizationCodeResults and DemoFuture Works and ConclusionsReferences
Introduction
Pre-requisites
Mathematics behind the scenes
Regularization
Code
Results and Demo
Future Works and Conclusions
References
Logistic Regression is one of the most... | [
{
"code": null,
"e": 191,
"s": 172,
"text": "Table of contents:"
},
{
"code": null,
"e": 319,
"s": 191,
"text": "IntroductionPre-requisitesMathematics behind the scenesRegularizationCodeResults and DemoFuture Works and ConclusionsReferences"
},
{
"code": null,
"e": 33... |
How to use equals () in Android textview? | This example demonstrate about How to use equals () in Android textview.
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 − Add the following code to res/layout/activity_main.xml.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout x... | [
{
"code": null,
"e": 1135,
"s": 1062,
"text": "This example demonstrate about How to use equals () in Android textview."
},
{
"code": null,
"e": 1264,
"s": 1135,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to cr... |
Check if two people starting from different points ever meet - GeeksforGeeks | 05 Jul, 2021
There are two people that start from two different positions, let’s say x1 and x2. Both can jump v1 and v2 meters ahead respectively. We have to find if both will ever meet given that the number of jumps taken by both has to be same.Print ‘Yes’ if they will meet, print ‘No’ they will not.
Examples :
Input ... | [
{
"code": null,
"e": 26066,
"s": 26038,
"text": "\n05 Jul, 2021"
},
{
"code": null,
"e": 26356,
"s": 26066,
"text": "There are two people that start from two different positions, let’s say x1 and x2. Both can jump v1 and v2 meters ahead respectively. We have to find if both will ... |
p5.js | pointLight() Function - GeeksforGeeks | 27 Apr, 2020
The pointLight() function in p5.js is used to create a point lights with the specified color and position in the scene. A scene can have a maximum of 5 active point lights at a time.
Syntax:
pointLight( v1, v2, v3, x, y, z )
OR
pointLight( v1, v2, v3, position )
OR
pointLight( color, x, y, z )
OR
pointLigh... | [
{
"code": null,
"e": 44937,
"s": 44909,
"text": "\n27 Apr, 2020"
},
{
"code": null,
"e": 45120,
"s": 44937,
"text": "The pointLight() function in p5.js is used to create a point lights with the specified color and position in the scene. A scene can have a maximum of 5 active poin... |
How to use Container Component in ReactJS? - GeeksforGeeks | 18 Jan, 2021
The container centers your content horizontally. It’s the most basic layout element. Material UI for React has this component available for us and it is very easy to integrate. We can the Container component in ReactJS using the following approach.
Creating React Application And Installing Module:
Step 1: ... | [
{
"code": null,
"e": 26557,
"s": 26529,
"text": "\n18 Jan, 2021"
},
{
"code": null,
"e": 26806,
"s": 26557,
"text": "The container centers your content horizontally. It’s the most basic layout element. Material UI for React has this component available for us and it is very easy ... |
How to add image before optgroup label using Bootstrap ? - GeeksforGeeks | 05 May, 2022
What is optgroup label?
It is an HTML tag that is used to group the options given in <select> tag. This combines the options in different groups having different labels.
Syntax:
HTML
<optgroup label="text"> <option value="One">One</option> <option value="Two">Two</option></optgroup>
If we need to ad... | [
{
"code": null,
"e": 29661,
"s": 29633,
"text": "\n05 May, 2022"
},
{
"code": null,
"e": 29685,
"s": 29661,
"text": "What is optgroup label?"
},
{
"code": null,
"e": 29831,
"s": 29685,
"text": "It is an HTML tag that is used to group the options given in <sele... |
Difference between Public and Private in C++ with Example - GeeksforGeeks | 15 Oct, 2019
Public
All the class members declared under public will be available to everyone. The data members and member functions declared public can be accessed by other classes too. The public members of a class can be accessed from anywhere in the program using the direct member access operator (.) with the objec... | [
{
"code": null,
"e": 25797,
"s": 25769,
"text": "\n15 Oct, 2019"
},
{
"code": null,
"e": 25804,
"s": 25797,
"text": "Public"
},
{
"code": null,
"e": 26121,
"s": 25804,
"text": "All the class members declared under public will be available to everyone. The data... |
Print Function in C, C++, and Python - GeeksforGeeks | 08 Mar, 2021
In this article, the task is to observe the behavior of the print function in C, C++, and Python. Print function is used to display content on the screen.
Approach:
Some characters are stored in integer value inside printf function.
Printing the value as well as the count of the characters.
Illustrating t... | [
{
"code": null,
"e": 25453,
"s": 25425,
"text": "\n08 Mar, 2021"
},
{
"code": null,
"e": 25608,
"s": 25453,
"text": "In this article, the task is to observe the behavior of the print function in C, C++, and Python. Print function is used to display content on the screen."
},
... |
basic_istream::seekg() in C++ with Examples - GeeksforGeeks | 28 May, 2020
The basic_stream::seekg() method is used to set position of the next character to be extracted from the input stream. This function is present in the iostream header file. Below is the syntax for the same:
Header File:
#include<iostream>
Syntax:
basic_istream& seekg (pos_type pos);
Parameter:
pos: It rep... | [
{
"code": null,
"e": 25343,
"s": 25315,
"text": "\n28 May, 2020"
},
{
"code": null,
"e": 25549,
"s": 25343,
"text": "The basic_stream::seekg() method is used to set position of the next character to be extracted from the input stream. This function is present in the iostream head... |
Python IMDbPY – Getting top 250 movies - GeeksforGeeks | 22 Apr, 2020
In this article we will see how we can retrieve the information of top 250 movies in IMDb database, IMDb sets ratings to all the movies.
In order to get the top 250 movies by IMDb we will use get_top250_movies method.
Syntax : imdb_object.get_top250_movies()
Argument : It takes no argument
Return : It retu... | [
{
"code": null,
"e": 25853,
"s": 25825,
"text": "\n22 Apr, 2020"
},
{
"code": null,
"e": 25990,
"s": 25853,
"text": "In this article we will see how we can retrieve the information of top 250 movies in IMDb database, IMDb sets ratings to all the movies."
},
{
"code": null... |
Installing and Using Exiftool on Linux - GeeksforGeeks | 11 Feb, 2021
EXIF tool is a widely used meta-data information recorder built on Perl by Phil Harvey. It is one of a kind open-source tool which works on a variety of file types. EXIF stands for Exchangeable Image File Format, and it is mainly used for including metadata in various file types like txt, png, jpeg, pdf, H... | [
{
"code": null,
"e": 25651,
"s": 25623,
"text": "\n11 Feb, 2021"
},
{
"code": null,
"e": 26059,
"s": 25651,
"text": "EXIF tool is a widely used meta-data information recorder built on Perl by Phil Harvey. It is one of a kind open-source tool which works on a variety of file types... |
C# | Default Constructor - GeeksforGeeks | 23 Jan, 2019
If you don’t provide a constructor for your class, C# creates one by default that instantiates the object and sets member variables to the default values as listed in the Default Values Table. Constructor without any parameters is called a default constructor. In other words, this type of constructor does ... | [
{
"code": null,
"e": 25547,
"s": 25519,
"text": "\n23 Jan, 2019"
},
{
"code": null,
"e": 26073,
"s": 25547,
"text": "If you don’t provide a constructor for your class, C# creates one by default that instantiates the object and sets member variables to the default values as listed... |
Tumor Detection using classification - Machine Learning and Python - GeeksforGeeks | 15 Sep, 2021
In this article, we will be making a project through Python language which will be using some Machine Learning Algorithms too. It will be an exciting one as after this project you will understand the concepts of using AI & ML with a scripting language. The following libraries/packages will be used in this... | [
{
"code": null,
"e": 25613,
"s": 25585,
"text": "\n15 Sep, 2021"
},
{
"code": null,
"e": 25930,
"s": 25613,
"text": "In this article, we will be making a project through Python language which will be using some Machine Learning Algorithms too. It will be an exciting one as after ... |
Compressing and Decompressing files in Java - GeeksforGeeks | 10 Dec, 2016
DeflaterOutputStream and InflaterInputStream classes are provided in Java to compress and decompress the file contents. These classes provide useful methods that can be used for compressing the file content.
Compressing a File using DeflaterOutputStream
This class implements an output stream filter for c... | [
{
"code": null,
"e": 25619,
"s": 25591,
"text": "\n10 Dec, 2016"
},
{
"code": null,
"e": 25829,
"s": 25619,
"text": "DeflaterOutputStream and InflaterInputStream classes are provided in Java to compress and decompress the file contents. These classes provide useful methods that ... |
Parallel Coordinates Plot using Plotly in Python - GeeksforGeeks | 01 Oct, 2020
A Plotly is a Python library that is used to design graphs, especially interactive graphs. It can plot various graphs and charts like histogram, barplot, boxplot, spreadplot, and many more. It is mainly used in data analysis as well as financial analysis. Plotly is an interactive visualization library.
Par... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n01 Oct, 2020"
},
{
"code": null,
"e": 25841,
"s": 25537,
"text": "A Plotly is a Python library that is used to design graphs, especially interactive graphs. It can plot various graphs and charts like histogram, barplot, boxplot, ... |
HTTP headers | Content-Encoding - GeeksforGeeks | 23 Oct, 2019
The HTTP headers Content-encoding is used to compress the media type. It informers the server which encoding the user will supported. It sends the information to the Accept-encoding. The server selects any one of the proposals, uses it and informs the client of its choice with the Content-Encoding response... | [
{
"code": null,
"e": 25927,
"s": 25899,
"text": "\n23 Oct, 2019"
},
{
"code": null,
"e": 26250,
"s": 25927,
"text": "The HTTP headers Content-encoding is used to compress the media type. It informers the server which encoding the user will supported. It sends the information to t... |
SQUARE() Function in SQL Server - GeeksforGeeks | 28 Dec, 2020
SQUARE() function :This function in SQL Server is used to return the square of a specified number. For example, if the specified number is 9, this function will return 81 as output.
Features :
This function is used to square a given number.
This function accepts both that is positive and negative numbers.
... | [
{
"code": null,
"e": 25513,
"s": 25485,
"text": "\n28 Dec, 2020"
},
{
"code": null,
"e": 25695,
"s": 25513,
"text": "SQUARE() function :This function in SQL Server is used to return the square of a specified number. For example, if the specified number is 9, this function will re... |
MATLAB Syntax - GeeksforGeeks | 05 Oct, 2021
Writing code in the MATLAB environment is quite simple. We do not need to include any libraries/header files, we can directly start writing commands in the command window of the Editor. Usually, we write small and easily executable programs in the Command Window and larger programs with multiple lines and ... | [
{
"code": null,
"e": 25885,
"s": 25857,
"text": "\n05 Oct, 2021"
},
{
"code": null,
"e": 26217,
"s": 25885,
"text": "Writing code in the MATLAB environment is quite simple. We do not need to include any libraries/header files, we can directly start writing commands in the command... |
Insert multiple rows in a single MySQL query | Let us first create a table −
mysql> create table DemoTable1384
-> (
-> StudentId int NOT NULL AUTO_INCREMENT PRIMARY KEY,
-> StudentName varchar(20),
-> StudentAge int
-> );
Query OK, 0 rows affected (0.63 sec)
Insert some records in the table using insert command. Here, we are inserting multiple rows i... | [
{
"code": null,
"e": 1092,
"s": 1062,
"text": "Let us first create a table −"
},
{
"code": null,
"e": 1289,
"s": 1092,
"text": "mysql> create table DemoTable1384\n -> (\n -> StudentId int NOT NULL AUTO_INCREMENT PRIMARY KEY,\n -> StudentName varchar(20),\n -> StudentAge i... |
Decomposing Signal Using Empirical Mode Decomposition — Algorithm Explanation for Dummy | by Muhammad Ryan | Towards Data Science | What kind of ‘beast’ is Empirical Mode Decomposition (EMD) is? It’s an algorithm to decompose signals. And when I say signal, what I mean is a time-series data. We inputting a signal to the EMD and we will get some decomposed signal a.k.a ‘basic ingredient’ of our signal input. It’s similar to the Fast Fourier Transfor... | [
{
"code": null,
"e": 673,
"s": 171,
"text": "What kind of ‘beast’ is Empirical Mode Decomposition (EMD) is? It’s an algorithm to decompose signals. And when I say signal, what I mean is a time-series data. We inputting a signal to the EMD and we will get some decomposed signal a.k.a ‘basic ingredien... |
Event-Driven Programming | Event-driven programming focuses on events. Eventually, the flow of program depends upon events. Until now, we were dealing with either sequential or parallel execution model but the model having the concept of event-driven programming is called asynchronous model. Event-driven programming depends upon an event loop th... | [
{
"code": null,
"e": 2497,
"s": 1922,
"text": "Event-driven programming focuses on events. Eventually, the flow of program depends upon events. Until now, we were dealing with either sequential or parallel execution model but the model having the concept of event-driven programming is called asynchr... |
Ordinary Differential Equation (ODE) in Python | by Guangyuan(Frank) Li | Towards Data Science | Ordinary Differential Equation (ODE) can be used to describe a dynamic system. To some extent, we are living in a dynamic system, the weather outside of the window changes from dawn to dusk, the metabolism occurs in our body is also a dynamic system because thousands of reactions and molecules got synthesized and degra... | [
{
"code": null,
"e": 509,
"s": 171,
"text": "Ordinary Differential Equation (ODE) can be used to describe a dynamic system. To some extent, we are living in a dynamic system, the weather outside of the window changes from dawn to dusk, the metabolism occurs in our body is also a dynamic system becau... |
How to Get Hired by Google? | Towards Data Science | Recently, while searching a keyword “headless chrome” on Google I got an unusual pop-up on my window, with a message:
Curious developers are known to seek interesting problems. Solve one from Google?
I was surprised to see Google sending me a challenge to solve and I accepted it immediately! Clicking on “I want to play... | [
{
"code": null,
"e": 290,
"s": 172,
"text": "Recently, while searching a keyword “headless chrome” on Google I got an unusual pop-up on my window, with a message:"
},
{
"code": null,
"e": 372,
"s": 290,
"text": "Curious developers are known to seek interesting problems. Solve one... |
QTP - Error Handling | There are various ways of handling errors in QTP. There are three possible types of errors, one would encounter, while working with QTP. They are −
Syntax Errors
Logical Errors
Run Time Errors
Syntax errors are the typos or a piece of the code that does not confirm with the VBscripting language grammar. Syntax errors o... | [
{
"code": null,
"e": 2270,
"s": 2122,
"text": "There are various ways of handling errors in QTP. There are three possible types of errors, one would encounter, while working with QTP. They are −"
},
{
"code": null,
"e": 2284,
"s": 2270,
"text": "Syntax Errors"
},
{
"code"... |
Batch Script - Appending to Files | Content writing to files is also done with the help of the double redirection filter >>. This filter can be used to append any output to a file. Following is a simple example of how to create a file using the redirection command to append data to files.
@echo off
echo "This is the directory listing of C:\ Drive">C:\new... | [
{
"code": null,
"e": 2423,
"s": 2169,
"text": "Content writing to files is also done with the help of the double redirection filter >>. This filter can be used to append any output to a file. Following is a simple example of how to create a file using the redirection command to append data to files.... |
PHP switch Statement | If a program needs a series of if statements that perform different process for vaarying value of an expression, it may get very clumsy with each if statement having its own set of curly brackets. This is where using swtich-case construct can make the program compact and readable. With switch construct, it is possible ... | [
{
"code": null,
"e": 1532,
"s": 1062,
"text": "If a program needs a series of if statements that perform different process for vaarying value of an expression, it may get very clumsy with each if statement having its own set of curly brackets. This is where using swtich-case construct can make the p... |
How to Write a Jupyter Notebook Extension | by Will Koehrsen | Towards Data Science | Jupyter Notebook Extensions are simple add-ons which can significantly improve your productivity in the notebook environment. They automate tedious tasks such as formatting code or add features like creating a table of contents. While there are numerous existing extensions, we can also write our own extension to do ext... | [
{
"code": null,
"e": 525,
"s": 171,
"text": "Jupyter Notebook Extensions are simple add-ons which can significantly improve your productivity in the notebook environment. They automate tedious tasks such as formatting code or add features like creating a table of contents. While there are numerous e... |
Isolation Forest: A Tree-based Algorithm for Anomaly Detection | by Mahbubul Alam | Towards Data Science | This is the 10th in a series of small, bite-sized articles I am writing about algorithms that are commonly used in anomaly detection (I’ll put links to all other articles towards the end). In today’s article, I’ll focus on a tree-based machine learning algorithm — Isolation Forest — that can efficiently isolate outlier... | [
{
"code": null,
"e": 528,
"s": 172,
"text": "This is the 10th in a series of small, bite-sized articles I am writing about algorithms that are commonly used in anomaly detection (I’ll put links to all other articles towards the end). In today’s article, I’ll focus on a tree-based machine learning al... |
Python Pandas - Sparse Data | Sparse objects are “compressed” when any data matching a specific value (NaN / missing value, though any value can be chosen) is omitted. A special SparseIndex object tracks where data has been “sparsified”. This will make much more sense in an example. All of the standard Pandas data structures apply the to_sparse met... | [
{
"code": null,
"e": 2769,
"s": 2443,
"text": "Sparse objects are “compressed” when any data matching a specific value (NaN / missing value, though any value can be chosen) is omitted. A special SparseIndex object tracks where data has been “sparsified”. This will make much more sense in an example.... |
Change of Basis. If you think it’s easy, you’re probably... | by Jeremy Cowles | Towards Data Science | I’ve recently been working the USD Unity SDK and one topic that has come up a few times is basis conversion from right-handed systems (like OpenGL/USD) to left-handed systems (like Unity/DirectX). If you need to convert a matrix or vector from a left handed coordinate system to a right handed coordinate system, you kno... | [
{
"code": null,
"e": 692,
"s": 172,
"text": "I’ve recently been working the USD Unity SDK and one topic that has come up a few times is basis conversion from right-handed systems (like OpenGL/USD) to left-handed systems (like Unity/DirectX). If you need to convert a matrix or vector from a left hand... |
Collections in Java - GeeksforGeeks | 09 Dec, 2021
Any group of individual objects which are represented as a single unit is known as the collection of the objects. In Java, a separate framework named the “Collection Framework” has been defined in JDK 1.2 which holds all the collection classes and interface in it.
The Collection interface (java.util.Colle... | [
{
"code": null,
"e": 28950,
"s": 28922,
"text": "\n09 Dec, 2021"
},
{
"code": null,
"e": 29216,
"s": 28950,
"text": "Any group of individual objects which are represented as a single unit is known as the collection of the objects. In Java, a separate framework named the “Collecti... |
How to remove rows from a Numpy array based on multiple conditions ? - GeeksforGeeks | 03 Jul, 2021
In this article, we will learn how to remove rows from a NumPy array based on multiple conditions. For doing our task, we will need some inbuilt methods provided by the NumPy module which are as follows:
np.delete(ndarray, index, axis): Delete items of rows or columns from the NumPy array based on given in... | [
{
"code": null,
"e": 24318,
"s": 24290,
"text": "\n03 Jul, 2021"
},
{
"code": null,
"e": 24522,
"s": 24318,
"text": "In this article, we will learn how to remove rows from a NumPy array based on multiple conditions. For doing our task, we will need some inbuilt methods provided b... |
Understanding Dynamic Programming | by Aniruddha Karajgi | Towards Data Science | Dynamic programming, or DP, is an optimization technique. It is used in several fields, though this article focuses on its applications in the field of algorithms and computer programming. Its a topic often asked in algorithmic interviews.
Since DP isn’t very intuitive, most people (myself included!) often find it tric... | [
{
"code": null,
"e": 411,
"s": 171,
"text": "Dynamic programming, or DP, is an optimization technique. It is used in several fields, though this article focuses on its applications in the field of algorithms and computer programming. Its a topic often asked in algorithmic interviews."
},
{
"... |
Data Augmentation library for text | by Edward Ma | Towards Data Science | In the previous story, you understand different approaches to generate more training data for your NLP task model. In this story, we will learn how can you do it with just a few line codes.
In natural language processing (NLP) field, it is hard to augmenting text due to high complexity of language. Not every word we ca... | [
{
"code": null,
"e": 237,
"s": 47,
"text": "In the previous story, you understand different approaches to generate more training data for your NLP task model. In this story, we will learn how can you do it with just a few line codes."
},
{
"code": null,
"e": 689,
"s": 237,
"text"... |
How to Adjust Number of Ticks in Seaborn Plots? - GeeksforGeeks | 19 Dec, 2021
In this article, we will discuss how to adjust the number of ticks in Seaborn Plots. Ticks are the values that are used to show some specific points on the X-Y coordinate, It can be a string or a number. We will see how we can choose an optimal or expand the number of ticks to display on both the x-axis an... | [
{
"code": null,
"e": 23901,
"s": 23873,
"text": "\n19 Dec, 2021"
},
{
"code": null,
"e": 24218,
"s": 23901,
"text": "In this article, we will discuss how to adjust the number of ticks in Seaborn Plots. Ticks are the values that are used to show some specific points on the X-Y coo... |
PHP – Get the string length using mb_strlen() | In PHP, multibyte string length (mb_strlen) function is used to get the total string length of a specified string. This function is supported in PHP 4.6.0 or higher versions.
int mb_strlen(str $string, str $encoding)
mb_strlen() accepts two parameters: $string and $encoding.
$string− It is used to check the string leng... | [
{
"code": null,
"e": 1237,
"s": 1062,
"text": "In PHP, multibyte string length (mb_strlen) function is used to get the total string length of a specified string. This function is supported in PHP 4.6.0 or higher versions."
},
{
"code": null,
"e": 1279,
"s": 1237,
"text": "int mb_... |
accept() - Unix, Linux System Call | Unix - Home
Unix - Getting Started
Unix - File Management
Unix - Directories
Unix - File Permission
Unix - Environment
Unix - Basic Utilities
Unix - Pipes & Filters
Unix - Processes
Unix - Communication
Unix - The vi Editor
Unix - What is Shell?
Unix - Using Variables
Unix - Special Variables
Unix - Using Arrays
Unix -... | [
{
"code": null,
"e": 1466,
"s": 1454,
"text": "Unix - Home"
},
{
"code": null,
"e": 1489,
"s": 1466,
"text": "Unix - Getting Started"
},
{
"code": null,
"e": 1512,
"s": 1489,
"text": "Unix - File Management"
},
{
"code": null,
"e": 1531,
"s": 1... |
Using Python To Compile Julia Code Natively | by Emmett Boudreau | Towards Data Science | I frequently discuss the benefits of using Julia, as there are many of them. Julia is a scalable, high-performance, and high-level language that is easy to learn and can get nearly any job done. This is especially true for Data Scientists, as Julia’s center of mass is statistical computing and functional program. At th... | [
{
"code": null,
"e": 649,
"s": 171,
"text": "I frequently discuss the benefits of using Julia, as there are many of them. Julia is a scalable, high-performance, and high-level language that is easy to learn and can get nearly any job done. This is especially true for Data Scientists, as Julia’s cent... |
Getting the list of keys of a SortedList object in C# | To get the list of keys of a SortedList object, the code is as follows −
Live Demo
using System;
using System.Collections;
public class Demo {
public static void Main(String[] args) {
SortedList list1 = new SortedList();
list1.Add("One", 1);
list1.Add("Two ", 2);
list1.Add("Three ", 3);
... | [
{
"code": null,
"e": 1135,
"s": 1062,
"text": "To get the list of keys of a SortedList object, the code is as follows −"
},
{
"code": null,
"e": 1146,
"s": 1135,
"text": " Live Demo"
},
{
"code": null,
"e": 2410,
"s": 1146,
"text": "using System;\nusing System... |
How to Make Oblique Lines with CSS / Bootstrap 3 ? - GeeksforGeeks | 16 Nov, 2020
In order to make oblique lines with CSS, there are two main approaches. The first approach involves the clip-path property of CSS and in the second approach, we use transform property with skew() of CSS.
Approach 1: Using clip-path property: The clip-path property is generally used to clip an element to a ... | [
{
"code": null,
"e": 25596,
"s": 25568,
"text": "\n16 Nov, 2020"
},
{
"code": null,
"e": 25800,
"s": 25596,
"text": "In order to make oblique lines with CSS, there are two main approaches. The first approach involves the clip-path property of CSS and in the second approach, we us... |
Shell Script to Enhance the Calendar to Accept MM, MMM, YYYY - GeeksforGeeks | 20 Sep, 2021
We are going to write a shell script to enhance the calendar to accept any month as MM or MMM or only year as YYYY or both month and year. Our shell script will accept at least one argument which will be either month or year. Maximum 2 arguments will be used which will be month and year. An enhanced calen... | [
{
"code": null,
"e": 24041,
"s": 24013,
"text": "\n20 Sep, 2021"
},
{
"code": null,
"e": 24477,
"s": 24041,
"text": " We are going to write a shell script to enhance the calendar to accept any month as MM or MMM or only year as YYYY or both month and year. Our shell script will a... |
C++ program to find union and intersection of two unsorted arrays | In this article, we will be discussing a program to find the union and intersection of two given unsorted arrays.
Let us denote the two arrays with ‘A’ and ‘B’. Then union of those arrays is denoted by A ∪ B which is basically an array of all the elements in both the given arrays; provided that each element repeats onl... | [
{
"code": null,
"e": 1176,
"s": 1062,
"text": "In this article, we will be discussing a program to find the union and intersection of two given unsorted arrays."
},
{
"code": null,
"e": 1390,
"s": 1176,
"text": "Let us denote the two arrays with ‘A’ and ‘B’. Then union of those a... |
Data Visualization using Python for Machine Learning and Data science : | by Sanat | Towards Data Science | Good day Folks,
Myself is Sanat currently working in IBM and I’m basically a Data Scientist, who loves to make my hand dirty on playing with a huge amount of data. Let me cut short my boring intro here :P and move towards the topic of the day “Data Visualization”.
Note : This blog was made keeping in mind that the pers... | [
{
"code": null,
"e": 188,
"s": 172,
"text": "Good day Folks,"
},
{
"code": null,
"e": 437,
"s": 188,
"text": "Myself is Sanat currently working in IBM and I’m basically a Data Scientist, who loves to make my hand dirty on playing with a huge amount of data. Let me cut short my bo... |
AngularJS - Scopes | Scope is a special JavaScript object that connects controller with views. Scope contains model data. In controllers, model data is accessed via $scope object.
<script>
var mainApp = angular.module("mainApp", []);
mainApp.controller("shapeController", function($scope) {
$scope.message = "In shape control... | [
{
"code": null,
"e": 2858,
"s": 2699,
"text": "Scope is a special JavaScript object that connects controller with views. Scope contains model data. In controllers, model data is accessed via $scope object."
},
{
"code": null,
"e": 3071,
"s": 2858,
"text": "<script>\n var mainAp... |
How to Crack PDF Files in Python? | Python has a rich collection of libraries that are used for multiple purposes like
creating and developing applications, web development, scientific computation, software testing, machine learning, and many more. Python is also used for testing and developing system applications in terms of information security. There ... | [
{
"code": null,
"e": 1598,
"s": 1062,
"text": "Python has a rich collection of libraries that are used for multiple purposes like\ncreating and developing applications, web development, scientific computation, software testing, machine learning, and many more. Python is also used for testing and dev... |
VBScript DateDiff Function | It is a function that returns the difference between two specified time intervals.
DateDiff(interval, date1, date2 [,firstdayofweek[, firstweekofyear]])
Interval, a Required Parameter. It can take the following values −
d − day of the year.
m − month of the year
y − year of the year
yyyy − year
w − weekday
ww − week... | [
{
"code": null,
"e": 2163,
"s": 2080,
"text": "It is a function that returns the difference between two specified time intervals."
},
{
"code": null,
"e": 2235,
"s": 2163,
"text": "DateDiff(interval, date1, date2 [,firstdayofweek[, firstweekofyear]]) \n"
},
{
"code": null... |
Calculate the sum of all columns in a 2D NumPy array - GeeksforGeeks | 21 Jul, 2021
Let us see how to calculate the sum of all the columns in a 2D NumPy array.Method 1 : Using a nested loop to access the array elements column-wise and then storing their sum in a variable and then printing it.Example 1:
Python3
# importing required librariesimport numpy # explicit function to compute col... | [
{
"code": null,
"e": 25681,
"s": 25653,
"text": "\n21 Jul, 2021"
},
{
"code": null,
"e": 25903,
"s": 25681,
"text": "Let us see how to calculate the sum of all the columns in a 2D NumPy array.Method 1 : Using a nested loop to access the array elements column-wise and then storing... |
Explain the significance of <head> and <body> tag in HTML - GeeksforGeeks | 01 Sep, 2021
The HTML <head> and <body> tags are the two most commonly used tags in HTML. It is very rare to find an industry-level website that does not use the <head> and <body> tag in its pages. In this article, we are going to learn the significance of these two tags in an HTML document.
Significance of HTML <head>... | [
{
"code": null,
"e": 26139,
"s": 26111,
"text": "\n01 Sep, 2021"
},
{
"code": null,
"e": 26419,
"s": 26139,
"text": "The HTML <head> and <body> tags are the two most commonly used tags in HTML. It is very rare to find an industry-level website that does not use the <head> and <bo... |
Arithmetic Aptitude 4 - GeeksforGeeks | 16 May, 2019
The required numbers are 27, 36, 45......450.
This is an A.P. with a = 27 and d = 9
Let it has n terms.
Then Tn = 450 = 27 + (n-1) x9
∴ 450 = 27+ 9n - 9
∴ 9n = 432
∴ n = 48
3, 9, 27, 81..............531441 form a G.P.
with a = 3 and r = 9/3 = 3
Let the number of terms be n
Then 3 x 3n-1 = 531441
∴ 3... | [
{
"code": null,
"e": 28965,
"s": 28937,
"text": "\n16 May, 2019"
},
{
"code": null,
"e": 29144,
"s": 28965,
"text": "The required numbers are 27, 36, 45......450.\n\nThis is an A.P. with a = 27 and d = 9\n\nLet it has n terms.\n\nThen Tn = 450 = 27 + (n-1) x9\n\n∴ 450 = 27+ 9n - ... |
Count the specific value in a given vector in R - GeeksforGeeks | 07 Apr, 2021
In this article, we will discuss how to find the specific value in a given vector in R Programming Language. For finding the frequency of a given value two approaches can be employed and both of them are discussed below.
We can iterate over the vector in R using a for loop and then check if the element is ... | [
{
"code": null,
"e": 26173,
"s": 26145,
"text": "\n07 Apr, 2021"
},
{
"code": null,
"e": 26394,
"s": 26173,
"text": "In this article, we will discuss how to find the specific value in a given vector in R Programming Language. For finding the frequency of a given value two approac... |
Virtual vs Sealed vs New vs Abstract in C# | The virtual keyword allows a class to be overridden. For overriding a parent class method in the child class, declare the parent class method as virtual.
When a class is declared sealed, it cannot be inherited, abstract classes cannot be declared sealed.
To prevent being overridden, use the sealed in C#. When you use s... | [
{
"code": null,
"e": 1216,
"s": 1062,
"text": "The virtual keyword allows a class to be overridden. For overriding a parent class method in the child class, declare the parent class method as virtual."
},
{
"code": null,
"e": 1317,
"s": 1216,
"text": "When a class is declared sea... |
How to evaluate my Classification Model results | by Songhao Wu | Towards Data Science | Confusion Matrix, ROC-AUC, F1 Score, Log Loss
Different from the Regression model, when we assess classification model results, we should not only focus on prediction results but also need to consider the prediction probability and prediction ability of each class.
There are plenty of articles online about classificati... | [
{
"code": null,
"e": 218,
"s": 172,
"text": "Confusion Matrix, ROC-AUC, F1 Score, Log Loss"
},
{
"code": null,
"e": 438,
"s": 218,
"text": "Different from the Regression model, when we assess classification model results, we should not only focus on prediction results but also ne... |
How to access and modify the values of a Tensor in PyTorch? | We use Indexing and Slicing to access the values of a tensor.Indexing is used to access the value of a single element of the tensor, whereasSlicing is used to access the values of a sequence of elements.
We use the assignment operator to modify the values of a tensor. Assigning new value/s using the assignment operator... | [
{
"code": null,
"e": 1266,
"s": 1062,
"text": "We use Indexing and Slicing to access the values of a tensor.Indexing is used to access the value of a single element of the tensor, whereasSlicing is used to access the values of a sequence of elements."
},
{
"code": null,
"e": 1424,
"s... |
Python SQLite - Drop Table | You can remove an entire table using the DROP TABLE statement. You just need to specify the name of the table you need to delete.
Following is the syntax of the DROP TABLE statement in PostgreSQL −
DROP TABLE table_name;
Assume we have created two tables with name CRICKETERS and EMPLOYEES using the following queries −... | [
{
"code": null,
"e": 3335,
"s": 3205,
"text": "You can remove an entire table using the DROP TABLE statement. You just need to specify the name of the table you need to delete."
},
{
"code": null,
"e": 3403,
"s": 3335,
"text": "Following is the syntax of the DROP TABLE statement ... |
Matcher group(String) method in Java with Examples - GeeksforGeeks | 26 Nov, 2018
The group(String string) method of Matcher Class is used to get the group of the match result already done, from the specified string.
Syntax:
public String group(String string)
Parameters: This method takes a parameter string which is the String from which the group index of the matched pattern is requir... | [
{
"code": null,
"e": 23557,
"s": 23529,
"text": "\n26 Nov, 2018"
},
{
"code": null,
"e": 23692,
"s": 23557,
"text": "The group(String string) method of Matcher Class is used to get the group of the match result already done, from the specified string."
},
{
"code": null,
... |
Linking External Style Sheets in CSS | CSS allows us to link external style sheets to our files. This helps us make changes to CSS separately and improves the page load time. External files are specified in <link> tag inside <head> of the document.
The syntax for including external CSS is as follows.
<link rel="stylesheet" href="#location">
The following ex... | [
{
"code": null,
"e": 1272,
"s": 1062,
"text": "CSS allows us to link external style sheets to our files. This helps us make changes to CSS separately and improves the page load time. External files are specified in <link> tag inside <head> of the document."
},
{
"code": null,
"e": 1325,
... |
Word Embeddings for NLP. Understanding word embeddings and their... | by Renu Khandelwal | Towards Data Science | In this article, we will understand how to process text for usage in machine learning algorithms. What are embeddings and why are they used for text processing?
Natural Language Processing(NLP) refers to computer systems designed to understand human language. Human language, like English or Hindi consists of words and ... | [
{
"code": null,
"e": 333,
"s": 172,
"text": "In this article, we will understand how to process text for usage in machine learning algorithms. What are embeddings and why are they used for text processing?"
},
{
"code": null,
"e": 565,
"s": 333,
"text": "Natural Language Processi... |
ES7 - New Features | This chapter provides knowledge about the new features in ES7.
ES7 introduces a new mathematical operator called exponentiation operator. This operator is similar to using Math.pow() method. Exponentiation operator is represented by a double asterisk **. The operator can be used only with numeric values. The syntax for... | [
{
"code": null,
"e": 2340,
"s": 2277,
"text": "This chapter provides knowledge about the new features in ES7."
},
{
"code": null,
"e": 2649,
"s": 2340,
"text": "ES7 introduces a new mathematical operator called exponentiation operator. This operator is similar to using Math.pow()... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.