title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
Java Examples - Fill colors using Applet? | How to fill colors in shapes using Applet?
Following example demonstrates how to create an applet which will have fill color in a rectangle using setColor(), fillRect() methods of Graphics class to fill color in a Rectangle.
import java.applet.*;
import java.awt.*;
public class fillColor extends Applet {
public voi... | [
{
"code": null,
"e": 2111,
"s": 2068,
"text": "How to fill colors in shapes using Applet?"
},
{
"code": null,
"e": 2293,
"s": 2111,
"text": "Following example demonstrates how to create an applet which will have fill color in a rectangle using setColor(), fillRect() methods of Gr... |
k-NN on Iris Dataset. k-Nearest Neighbor(k-NN) is an... | by Ishita Kapur | Towards Data Science | The class of an unknown instance is computed using the following steps:
The distance between the unknown instance and all other training instances is computed.The k nearest neighbors are identified.The class labels of the k nearest neighbors are used to determine the class label of the unknown instance by using techniq... | [
{
"code": null,
"e": 244,
"s": 172,
"text": "The class of an unknown instance is computed using the following steps:"
},
{
"code": null,
"e": 518,
"s": 244,
"text": "The distance between the unknown instance and all other training instances is computed.The k nearest neighbors are... |
C++ Program to Search for an Element in a Binary Search Tree | In this program we need to. Implement binary search to find the existence of a search sequence in a binary search tree. The worst case time complexity of Binary search is O(n) but for the average case O(log(n)).
Begin
Construct binary search tree for the given unsorted data array by inserting data into tree one by o... | [
{
"code": null,
"e": 1274,
"s": 1062,
"text": "In this program we need to. Implement binary search to find the existence of a search sequence in a binary search tree. The worst case time complexity of Binary search is O(n) but for the average case O(log(n))."
},
{
"code": null,
"e": 1760... |
Android Table Layout | Android TableLayout going to be arranged groups of views into rows and columns. You will use the <TableRow> element to build a row in the table. Each row has zero or more cells; each cell can hold one View object.
TableLayout containers do not display border lines for their rows, columns, or cells.
Following are the im... | [
{
"code": null,
"e": 3821,
"s": 3607,
"text": "Android TableLayout going to be arranged groups of views into rows and columns. You will use the <TableRow> element to build a row in the table. Each row has zero or more cells; each cell can hold one View object."
},
{
"code": null,
"e": 39... |
AWS Lambda â Function in NODEJS | Nodejs is one of the languages that AWS Lambda function supports. The version supported with nodejs are v6.10 and v8.10. In this chapter, we will learn about various functionalities of AWS Lambda function in NODEJS in detail.
To writeAWS Lambda function in nodejs, we should first declare a handler first. The handler in... | [
{
"code": null,
"e": 2632,
"s": 2406,
"text": "Nodejs is one of the languages that AWS Lambda function supports. The version supported with nodejs are v6.10 and v8.10. In this chapter, we will learn about various functionalities of AWS Lambda function in NODEJS in detail."
},
{
"code": null,... |
CatBoost regression in 6 minutes. A brief hands-on introduction to... | by Simon Thiesen | Towards Data Science | This article aims to provide a hands-on tutorial using the CatBoost Regressor on the Boston Housing dataset from the Sci-Kit Learn library.
Introduction to CatBoostApplicationFinal notes
Introduction to CatBoost
Application
Final notes
CatBoost is a relatively new open-source machine learning algorithm, developed in 20... | [
{
"code": null,
"e": 312,
"s": 172,
"text": "This article aims to provide a hands-on tutorial using the CatBoost Regressor on the Boston Housing dataset from the Sci-Kit Learn library."
},
{
"code": null,
"e": 359,
"s": 312,
"text": "Introduction to CatBoostApplicationFinal notes... |
Functional Dependency and Attribute Closure - GeeksforGeeks | 06 Jan, 2022
Functional Dependency
A functional dependency A->B in a relation holds if two tuples having same value of attribute A also have same value for attribute B. For Example, in relation STUDENT shown in table 1, Functional Dependencies
STUD_NO->STUD_NAME, STUD_NO->STUD_PHONE hold
but
STUD_NAME->STUD_ADDR do... | [
{
"code": null,
"e": 29235,
"s": 29207,
"text": "\n06 Jan, 2022"
},
{
"code": null,
"e": 29257,
"s": 29235,
"text": "Functional Dependency"
},
{
"code": null,
"e": 29468,
"s": 29257,
"text": "A functional dependency A->B in a relation holds if two tuples havin... |
Java Program to Print Quotation Marks in a String - GeeksforGeeks | 26 Jul, 2021
Double quotes are mainly used to indicate a string. When we print any string, the double quotes are not printed but only the value inside them is printed.
Methods:
Double quotes can be inserted using the following ways in java as listed below:
Using Escape Sequence character Using charUsing Unicode Charact... | [
{
"code": null,
"e": 23868,
"s": 23840,
"text": "\n26 Jul, 2021"
},
{
"code": null,
"e": 24023,
"s": 23868,
"text": "Double quotes are mainly used to indicate a string. When we print any string, the double quotes are not printed but only the value inside them is printed."
},
... |
How to give manual input from user while running Selenium IDE script? | We can give manual input from the user while running Selenium IDE script. This can be done with the help of the Command, Target and Value steps given below −
Command −
execute script
Target −
return prompt("Subject","");
Value −
Input
Command −
echo
Target −
${Input}
Click on Run current test as highlighted in the belo... | [
{
"code": null,
"e": 1220,
"s": 1062,
"text": "We can give manual input from the user while running Selenium IDE script. This can be done with the help of the Command, Target and Value steps given below −"
},
{
"code": null,
"e": 1230,
"s": 1220,
"text": "Command −"
},
{
... |
jQuery | stop() with Examples - GeeksforGeeks | 13 Sep, 2021
The stop() method is an inbuilt method in jQuery which is used to stop the currently running animations for the selected element.
Syntax:
$(selector).stop(stopAll, goToEnd);
Parameters: This method accepts two parameters as mentioned above and described below:
stopAll: It is optional parameter and the valu... | [
{
"code": null,
"e": 24970,
"s": 24942,
"text": "\n13 Sep, 2021"
},
{
"code": null,
"e": 25100,
"s": 24970,
"text": "The stop() method is an inbuilt method in jQuery which is used to stop the currently running animations for the selected element."
},
{
"code": null,
"... |
How to center a <div> using Flexbox property of CSS ? | 25 Jun, 2021
In this article, we will learn to center an HTML div element using flexbox property of CSS.
Please refer this article to know more about flexbox.
Approach: To center the <div> element horizontally using flexbox.
We use the property of display set to flex i.e. display: flex;
Align items to center using ali... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n25 Jun, 2021"
},
{
"code": null,
"e": 146,
"s": 53,
"text": "In this article, we will learn to center an HTML div element using flexbox property of CSS. "
},
{
"code": null,
"e": 200,
"s": 146,
"text": "Please refer... |
Open a File in Python | 13 Jun, 2022
Python provides inbuilt functions for creating, writing, and reading files. There are two types of files that can be handled in Python, normal text files and binary files (written in binary language, 0s, and 1s).
Text files: In this type of file, each line of text is terminated with a special character cal... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n13 Jun, 2022"
},
{
"code": null,
"e": 265,
"s": 52,
"text": "Python provides inbuilt functions for creating, writing, and reading files. There are two types of files that can be handled in Python, normal text files and binary files (wr... |
Getting the Total Number of Days in a Month Using If-else and Switch Statements in C# | 28 May, 2020
Given a number N, the task is to write a C# program to print the number of days in the Month N.
Examples:
Input: N = 12Output: 31
Input: N = 2Output: 28/29
This task can be done using the following approaches:
1. Using if else statement : Appropriate month number is checked and then number of days in a mon... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n28 May, 2020"
},
{
"code": null,
"e": 124,
"s": 28,
"text": "Given a number N, the task is to write a C# program to print the number of days in the Month N."
},
{
"code": null,
"e": 134,
"s": 124,
"text": "Examples:"... |
How to set div width to fit content using CSS ? | 10 May, 2022
There are three ways to solve this problem which are listed below:
By default caseUsing inline-block propertyUsing fit-content property in width and height
By default case
Using inline-block property
Using fit-content property in width and height
Default Case: HTML div is by default fit to content inside i... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n10 May, 2022"
},
{
"code": null,
"e": 120,
"s": 53,
"text": "There are three ways to solve this problem which are listed below:"
},
{
"code": null,
"e": 209,
"s": 120,
"text": "By default caseUsing inline-block prop... |
How to change text color depending on background color using JavaScript? | 06 Sep, 2019
The task is to set the foreground color based on the background color so that it will become visible. Here few of the important techniques are discussed. We are going to use JavaScript.
Approach:
First select the random Background color(by selecting random RGB values) or a specific one.
Use the YIQ formula... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n06 Sep, 2019"
},
{
"code": null,
"e": 214,
"s": 28,
"text": "The task is to set the foreground color based on the background color so that it will become visible. Here few of the important techniques are discussed. We are going to use J... |
Types of API functions in Node.js | 04 Mar, 2021
API stands for Application Programming Interface. It consists of various communication protocols and subroutines that can be used by programs for inter-communication. There are various types of APIs available such as WEB APIs, LOCAL APIs, PROGRAM APIs, etcetera. They are one of the most efficient and relia... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n04 Mar, 2021"
},
{
"code": null,
"e": 389,
"s": 54,
"text": "API stands for Application Programming Interface. It consists of various communication protocols and subroutines that can be used by programs for inter-communication. There a... |
Python | Pandas tseries.offsets.CustomBusinessDay | 23 Apr, 2019
Dateoffsets are a standard kind of date increment used for a date range in Pandas. It works exactly like relativedelta in terms of the keyword args we pass in. DateOffets work as follows, each offset specify a set of dates that conform to the DateOffset. For example, Bday defines this set to be the set of ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n23 Apr, 2019"
},
{
"code": null,
"e": 366,
"s": 28,
"text": "Dateoffsets are a standard kind of date increment used for a date range in Pandas. It works exactly like relativedelta in terms of the keyword args we pass in. DateOffets work... |
Node.js Process Signal Events | 25 Oct, 2021
Signals are a POSIX (The Portable Operating System Interface) intercommunication system. These events will be emitted when Node receives signal events. In order to notify that an event has occurred, a notification is sent.
The signal handler will receive the signal’s name and the signal name is uppercase b... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n25 Oct, 2021"
},
{
"code": null,
"e": 251,
"s": 28,
"text": "Signals are a POSIX (The Portable Operating System Interface) intercommunication system. These events will be emitted when Node receives signal events. In order to notify that... |
Restrict EditText Input to Some Special Characters in Android | 09 Dec, 2021
In some of the other applications, most of us must have witnessed that while typing in some field, we get a warning or a flash message that certain characters are not allowed or are not accepted as valid input. For example, sometimes, while renaming a file or a folder in Windows, if we simply type in ‘?’, ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n09 Dec, 2021"
},
{
"code": null,
"e": 989,
"s": 28,
"text": "In some of the other applications, most of us must have witnessed that while typing in some field, we get a warning or a flash message that certain characters are not allowed ... |
Python - Displaying real time FPS at which webcam/video file is processed using OpenCV - GeeksforGeeks | 24 Jun, 2021
We will be displaying the real-time processing FPS of the video file or webcam depending upon our choice.FPS or frame per second or frame rate can be defined as number of frames displayed per second. A video can be assumed as a collection of images or we can say frames which are displayed at some rate to p... | [
{
"code": null,
"e": 25803,
"s": 25775,
"text": "\n24 Jun, 2021"
},
{
"code": null,
"e": 26489,
"s": 25803,
"text": "We will be displaying the real-time processing FPS of the video file or webcam depending upon our choice.FPS or frame per second or frame rate can be defined as nu... |
What is "network ID" and "host ID" in IP Addresses? - GeeksforGeeks | 24 Nov, 2021
IP addresses are divided into 5 classes namely, Class A, Class B, Class C, Class D, Class E. This concept came in around the 1980s. Where,
Class A is generally used for big networks such as the ISP networks.
Class B is used for medium to large networks like some big organizations.
Class C addresses are gen... | [
{
"code": null,
"e": 25755,
"s": 25727,
"text": "\n24 Nov, 2021"
},
{
"code": null,
"e": 25894,
"s": 25755,
"text": "IP addresses are divided into 5 classes namely, Class A, Class B, Class C, Class D, Class E. This concept came in around the 1980s. Where,"
},
{
"code": nu... |
Matplotlib.axes.Axes.set_axes_locator() in Python - GeeksforGeeks | 19 Apr, 2020
Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. The Axes Class contains most of the figure elements: Axis, Tick, Line2D, Text, Polygon, etc., and sets the coordinate system. And the instances of Axes supports callbacks through a callbacks attribute.
The Axe... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n19 Apr, 2020"
},
{
"code": null,
"e": 25837,
"s": 25537,
"text": "Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. The Axes Class contains most of the figure elements: Axis, Tick, ... |
How to find the number of arguments in a Python function? - GeeksforGeeks | 16 Aug, 2021
In this article, we are going to see how to count the number of arguments of a function in Python. We will use the special syntax called *args that is used in the function definition of python. Syntax *args allow us to pass a variable number of arguments to a function. We will use len() function or method ... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n16 Aug, 2021"
},
{
"code": null,
"e": 25933,
"s": 25537,
"text": "In this article, we are going to see how to count the number of arguments of a function in Python. We will use the special syntax called *args that is used in the ... |
What is Secure Multiparty Computation? - GeeksforGeeks | 20 Jul, 2021
In the last few decades, data privacy and security has become the primary concern to everyone. Due to the rise in technological advancements and the internet, it has been a challenging task to provide data security and data privacy of the data, when data is distributed over large distributed networks. As e... | [
{
"code": null,
"e": 25517,
"s": 25489,
"text": "\n20 Jul, 2021"
},
{
"code": null,
"e": 26272,
"s": 25517,
"text": "In the last few decades, data privacy and security has become the primary concern to everyone. Due to the rise in technological advancements and the internet, it h... |
How to design full width dropdown Navbar using Bootstrap ? - GeeksforGeeks | 30 Dec, 2019
In Bootstrap 4, NavBar is an essential component for menu purposes. NavBar contains so many items like text, link text, disable the link, dropdown buttons, forms, etc. To make dropdown sub-items to full-width can be carried by using either CSS properties or by using default utilities of Bootstrap 4. The fo... | [
{
"code": null,
"e": 26865,
"s": 26837,
"text": "\n30 Dec, 2019"
},
{
"code": null,
"e": 27213,
"s": 26865,
"text": "In Bootstrap 4, NavBar is an essential component for menu purposes. NavBar contains so many items like text, link text, disable the link, dropdown buttons, forms, ... |
How to add target="_blank" to a link using jQuery ? - GeeksforGeeks | 13 Dec, 2021
Given an anchor tag inside a DIV element and the task is to add target=”_blank” to the anchor element. There are two methods discussed below to solve this problem:
Approach 1:
Select the outer DIV element of anchor element.
Use .attr() method to set the target property to “_blank” of the anchor element.
Ho... | [
{
"code": null,
"e": 26397,
"s": 26369,
"text": "\n13 Dec, 2021"
},
{
"code": null,
"e": 26561,
"s": 26397,
"text": "Given an anchor tag inside a DIV element and the task is to add target=”_blank” to the anchor element. There are two methods discussed below to solve this problem:... |
Pandas - Merge two dataframes with different columns - GeeksforGeeks | 29 Oct, 2021
Pandas support three kinds of data structures. They are Series, Data Frame, and Panel. A Data frame is a two-dimensional data structure, Here data is stored in a tabular format which is in rows and columns. We can create a data frame in many ways.
Here we are creating a data frame using a list data struct... | [
{
"code": null,
"e": 26133,
"s": 26105,
"text": "\n29 Oct, 2021"
},
{
"code": null,
"e": 26382,
"s": 26133,
"text": "Pandas support three kinds of data structures. They are Series, Data Frame, and Panel. A Data frame is a two-dimensional data structure, Here data is stored in a t... |
Python - API.followers_ids() in Tweepy - GeeksforGeeks | 08 Jun, 2020
Twitter is a popular social network where users share messages called tweets. Twitter allows us to mine the data of any user using Twitter API or Tweepy. The data will be tweets extracted from the user. The first thing to do is get the consumer key, consumer secret, access key and access secret from twitte... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n08 Jun, 2020"
},
{
"code": null,
"e": 25937,
"s": 25537,
"text": "Twitter is a popular social network where users share messages called tweets. Twitter allows us to mine the data of any user using Twitter API or Tweepy. The data ... |
How to include inline JavaScript in HAML ? - GeeksforGeeks | 03 Jun, 2020
There are mainly two ways to include JavaScript in HTML:
Internal/Inline: By using “script” element in the “head” or “body” section.
External: By using an external JavaScript file.
We will be extending the below example for HTML and see how it could be implemented similarly for HAML. To include inline Java... | [
{
"code": null,
"e": 26139,
"s": 26111,
"text": "\n03 Jun, 2020"
},
{
"code": null,
"e": 26196,
"s": 26139,
"text": "There are mainly two ways to include JavaScript in HTML:"
},
{
"code": null,
"e": 26272,
"s": 26196,
"text": "Internal/Inline: By using “script... |
Python | Numpy ndarray.tolist() - GeeksforGeeks | 27 Mar, 2019
With the help of numpy.ndarray.tolist() method, we can have the list of data elements which is converted from an ndarray using ndarray.tolist() method.
Syntax: ndarray.tolist()
Parameters: none
Returns: The possibly nested list of array elements.
Example #1 :In this example, we can see that by using ndarra... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n27 Mar, 2019"
},
{
"code": null,
"e": 25689,
"s": 25537,
"text": "With the help of numpy.ndarray.tolist() method, we can have the list of data elements which is converted from an ndarray using ndarray.tolist() method."
},
{
... |
How to get the path of current script using Node.js ? - GeeksforGeeks | 31 Jan, 2020
We can get the path of the present script in node.js by using __dirname and __filename module scope variables.
__dirname: It returns the directory name of the current module in which the current script is located.
__filename: It returns the file name of the current module. This is the current module file’s... | [
{
"code": null,
"e": 25861,
"s": 25833,
"text": "\n31 Jan, 2020"
},
{
"code": null,
"e": 25972,
"s": 25861,
"text": "We can get the path of the present script in node.js by using __dirname and __filename module scope variables."
},
{
"code": null,
"e": 26075,
"s":... |
Implementation of Artificial Neural Network for XOR Logic Gate with 2-bit Binary Input - GeeksforGeeks | 21 Sep, 2021
Artificial Neural Network (ANN) is a computational model based on the biological neural networks of animal brains. ANN is modeled with three types of layers: an input layer, hidden layers (one or more), and an output layer. Each layer comprises nodes (like biological neurons) are called Artificial Neurons.... | [
{
"code": null,
"e": 26863,
"s": 26835,
"text": "\n21 Sep, 2021"
},
{
"code": null,
"e": 27652,
"s": 26863,
"text": "Artificial Neural Network (ANN) is a computational model based on the biological neural networks of animal brains. ANN is modeled with three types of layers: an in... |
Generate a combination of minimum coins that sums to a given value - GeeksforGeeks | 26 May, 2021
Given an array arr[] of size N representing the available denominations and an integer X. The task is to find any combination of the minimum number of coins of the available denominations such that the sum of the coins is X. If the given sum cannot be obtained by the available denominations, print -1.
Exam... | [
{
"code": null,
"e": 26233,
"s": 26205,
"text": "\n26 May, 2021"
},
{
"code": null,
"e": 26536,
"s": 26233,
"text": "Given an array arr[] of size N representing the available denominations and an integer X. The task is to find any combination of the minimum number of coins of the... |
Sentiment Analysis of Tweets using Multinomial Naive Bayes | by Sergey Smetanin | Towards Data Science | The popularization of Web 2.0 significantly increased online communications. As a consequence, it provoked the rapid development research in the field of natural language processing in general and sentiment analysis in particular. Information overload and the growing volume of reviews and messages facilitated the need ... | [
{
"code": null,
"e": 542,
"s": 171,
"text": "The popularization of Web 2.0 significantly increased online communications. As a consequence, it provoked the rapid development research in the field of natural language processing in general and sentiment analysis in particular. Information overload and... |
How do I redraw an image using Python's Matplotlib? | To redraw an image using python's Matplotlib, we can take the following steps −
Set the figure size and adjust the padding between and around the subplots.
Create a new figure or activate an existing figure.
Get the current axis using gca() method.
Show the current figure.
Iterate in the range of 20 and redraw the plot... | [
{
"code": null,
"e": 1142,
"s": 1062,
"text": "To redraw an image using python's Matplotlib, we can take the following steps −"
},
{
"code": null,
"e": 1218,
"s": 1142,
"text": "Set the figure size and adjust the padding between and around the subplots."
},
{
"code": null... |
Find the second last node of a linked list in single traversal in C++ | Now we will see how to get the second last element in the linked list. Suppose there are few elements like [10, 52, 41, 32, 69, 58, 41], second last element is 58.
To solve this problem, we will use two pointers one will point to current node, and another will point to previous node of the current position, then we wil... | [
{
"code": null,
"e": 1226,
"s": 1062,
"text": "Now we will see how to get the second last element in the linked list. Suppose there are few elements like [10, 52, 41, 32, 69, 58, 41], second last element is 58."
},
{
"code": null,
"e": 1462,
"s": 1226,
"text": "To solve this prob... |
Value equal to index value | Practice | GeeksforGeeks | Given an array Arr of N positive integers. Your task is to find the elements whose value is equal to that of its index value ( Consider 1-based indexing ).
Example 1:
Input:
N = 5
Arr[] = {15, 2, 45, 12, 7}
Output: 2
Explanation: Only Arr[2] = 2 exists here.
Example 2:
Input:
N = 1
Arr[] = {1}
Output: 1
Explanation:... | [
{
"code": null,
"e": 394,
"s": 238,
"text": "Given an array Arr of N positive integers. Your task is to find the elements whose value is equal to that of its index value ( Consider 1-based indexing )."
},
{
"code": null,
"e": 405,
"s": 394,
"text": "Example 1:"
},
{
"code... |
Introduction to Google’s Compact Language Detector v3 in Python | by Ng Wai Foong | Towards Data Science | By reading this piece, you will learn to use the Python-bindings of Google’s CLD3 to detect and identify the languages used in a text. For your information, Compact Language Detector v3 (CLD3) is a language identification package released by Google. At the time of this writing, it has enormous support for most of the c... | [
{
"code": null,
"e": 563,
"s": 172,
"text": "By reading this piece, you will learn to use the Python-bindings of Google’s CLD3 to detect and identify the languages used in a text. For your information, Compact Language Detector v3 (CLD3) is a language identification package released by Google. At th... |
Draw a border around an undecorated JFrame in Java | At first, set an undecorated frame −
setUndecorated(true);
Now draw a border −
getRootPane().setBorder (.createMatteBorder(3, 3, 3, 3, Color.ORANGE));
The following is an example to draw a border around an undecorated JFrame −
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import javax.... | [
{
"code": null,
"e": 1099,
"s": 1062,
"text": "At first, set an undecorated frame −"
},
{
"code": null,
"e": 1121,
"s": 1099,
"text": "setUndecorated(true);"
},
{
"code": null,
"e": 1141,
"s": 1121,
"text": "Now draw a border −"
},
{
"code": null,
... |
Role-playing dimensions in Power BI | by Nikola Ilic | Towards Data Science | After explaining how you can reduce your Power BI data model size by 90%, by simply adhering to some simple rules, and understanding how your data model is being optimized by the VertiPaq engine in the background, it’s the right moment to learn one of the core concepts of dimensional modeling.
The role-playing dimensio... | [
{
"code": null,
"e": 467,
"s": 172,
"text": "After explaining how you can reduce your Power BI data model size by 90%, by simply adhering to some simple rules, and understanding how your data model is being optimized by the VertiPaq engine in the background, it’s the right moment to learn one of the... |
Version Control ML Model. Machine Learning operations (let’s call... | by Tianchen Wu | Towards Data Science | Machine Learning operations (let’s call it mlOps under the current buzzword pattern xxOps) are quite different from traditional software development operations (devOps). One of the reasons is that ML experiments demand large dataset and model artifact besides code (small plain file).
This post presents a solution to ve... | [
{
"code": null,
"e": 457,
"s": 172,
"text": "Machine Learning operations (let’s call it mlOps under the current buzzword pattern xxOps) are quite different from traditional software development operations (devOps). One of the reasons is that ML experiments demand large dataset and model artifact bes... |
C++ Program to Emulate N Dice Roller | Here is the code to emulate N dice roller. This can be done by generating random number between 1-6.
Begin
Declare n
Read n
For i = 0 to n-1 do
Generate sequence with rand() mod 6 + 1
Print the sequence
Done
End
#include <iostream>
using namespace std;
int main(int argc, char **argv) {
cout <... | [
{
"code": null,
"e": 1163,
"s": 1062,
"text": "Here is the code to emulate N dice roller. This can be done by generating random number between 1-6."
},
{
"code": null,
"e": 1298,
"s": 1163,
"text": "Begin\n Declare n\n Read n\n For i = 0 to n-1 do\n Generate sequence w... |
Meteor - First Application | In this chapter, we will learn how to create your first Meteor application.
To create the app, we will run the meteor create command from the command prompt window. The apps name will be meteorApp.
C:\Users\username\Desktop\Meteor>meteor create meteorApp
We can run the app by typing the meteor command.
C:\Users\userna... | [
{
"code": null,
"e": 2197,
"s": 2121,
"text": "In this chapter, we will learn how to create your first Meteor application."
},
{
"code": null,
"e": 2319,
"s": 2197,
"text": "To create the app, we will run the meteor create command from the command prompt window. The apps name wil... |
Diameter of a Binary Tree - GeeksforGeeks | 30 Mar, 2022
The diameter of a tree (sometimes called the width) is the number of nodes on the longest path between two end nodes. The diagram below shows two trees each with diameter nine, the leaves that form the ends of the longest path are shaded (note that there is more than one path in each tree of length nine, b... | [
{
"code": null,
"e": 25088,
"s": 25060,
"text": "\n30 Mar, 2022"
},
{
"code": null,
"e": 25432,
"s": 25088,
"text": "The diameter of a tree (sometimes called the width) is the number of nodes on the longest path between two end nodes. The diagram below shows two trees each with d... |
Framework7 - Default Swiper with Pagination | The swiper slider is the most powerful and modern touch slider and it swipes horizontally, by default.
The following example demonstrates the use of default swiper with pagination in Framework7 −
<!DOCTYPE html>
<html>
<head>
<meta name = "viewport" content = "width = device-width, initial-scale = 1,
... | [
{
"code": null,
"e": 2754,
"s": 2651,
"text": "The swiper slider is the most powerful and modern touch slider and it swipes horizontally, by default."
},
{
"code": null,
"e": 2847,
"s": 2754,
"text": "The following example demonstrates the use of default swiper with pagination in... |
A Simple Introduction to TensorFlow | by Marlon Somwaru | Towards Data Science | In my experience, learning to anything useful in computer science has fallen at the strange intersection of theory and practice. It’s pretty easy to ignore the amount of depth that the lies under some of the things we code. Machine learning takes that to an extreme, and everyone wants to be a Machine Learning Engineer ... | [
{
"code": null,
"e": 523,
"s": 172,
"text": "In my experience, learning to anything useful in computer science has fallen at the strange intersection of theory and practice. It’s pretty easy to ignore the amount of depth that the lies under some of the things we code. Machine learning takes that to ... |
Xgboost with AWS Sagemaker 2.20 ‘Debugger’ | by Philippe Bouaziz,Data Scientist at Africa4Data,PhD | Towards Data Science | Article Co-author with : @bonnefoypy , CEO at Olexya.
Due to the high quantity of data, finding tricks for faster analysis using automatizations library is a key advantage for becoming a unicorn data scientist. AWS sagemaker offers various tools for developing machine and deep learning models in few lines of code. The ... | [
{
"code": null,
"e": 225,
"s": 171,
"text": "Article Co-author with : @bonnefoypy , CEO at Olexya."
},
{
"code": null,
"e": 980,
"s": 225,
"text": "Due to the high quantity of data, finding tricks for faster analysis using automatizations library is a key advantage for becoming a... |
How to parse a string into a nullable int in C#? | C# provides a special data types, the nullable types, to which you can assign normal range of values as well as null values.
C# 2.0 introduced nullable types that allow you to assign null to value type variables. You can declare nullable types using Nullable where T is a type.
Nullable types can only be used with value... | [
{
"code": null,
"e": 1187,
"s": 1062,
"text": "C# provides a special data types, the nullable types, to which you can assign normal range of values as well as null values."
},
{
"code": null,
"e": 1340,
"s": 1187,
"text": "C# 2.0 introduced nullable types that allow you to assign... |
DOMException Failed to load because no supported source was found | It can be a Cross-Origin Resource Sharing (CORS) issue.
video.crossOrigin = 'anonymous';
To enable cross-origin resource sharing, use the following. It allows the images to pass the HTTP header with an image response.
Access-Control-Allow-Origin: *
You can also use the HTML() method −
$('#audio').html('<audio autoplay>... | [
{
"code": null,
"e": 1118,
"s": 1062,
"text": "It can be a Cross-Origin Resource Sharing (CORS) issue."
},
{
"code": null,
"e": 1151,
"s": 1118,
"text": "video.crossOrigin = 'anonymous';"
},
{
"code": null,
"e": 1280,
"s": 1151,
"text": "To enable cross-origin... |
Java Program to convert String to Boolean | To convert String to Boolean, use the parseBoolean() method in Java. The parseBoolean() parses the string argument as a boolean. The boolean returned represents the value true if the string argument is not null and is equal, ignoring case, to the string "true".
Firstly, declare a string.
String str = "false";
Now, use ... | [
{
"code": null,
"e": 1324,
"s": 1062,
"text": "To convert String to Boolean, use the parseBoolean() method in Java. The parseBoolean() parses the string argument as a boolean. The boolean returned represents the value true if the string argument is not null and is equal, ignoring case, to the string... |
Python 3 - os.remove() Method | The method remove() removes the file path. If the path is a directory, OSError is raised.
Following is the syntax for remove() method −
os.remove(path)
path − This is the path, which is to be removed.
This method does not return any value.
The following example shows the usage of remove() method.
# !/usr/bin/python3
i... | [
{
"code": null,
"e": 2430,
"s": 2340,
"text": "The method remove() removes the file path. If the path is a directory, OSError is raised."
},
{
"code": null,
"e": 2476,
"s": 2430,
"text": "Following is the syntax for remove() method −"
},
{
"code": null,
"e": 2493,
... |
How to run multiple async tasks and waiting for them all to complete in C#? | The Task.WaitAll blocks the current thread until all other tasks have completed execution.
The Task.WhenAll method is used to create a task that will complete if and only if all the other tasks have complete. In the 1st example, we could see that when using Task.WhenAll the task complete is executed before the other ta... | [
{
"code": null,
"e": 1153,
"s": 1062,
"text": "The Task.WaitAll blocks the current thread until all other tasks have completed execution."
},
{
"code": null,
"e": 1651,
"s": 1153,
"text": "The Task.WhenAll method is used to create a task that will complete if and only if all the ... |
reference_wrapper in C++ | In C++ the reference_wrapper is a class template that helps by wrapping a reference in a copy constructible and copy assignable object of type T. The instances of std::reference_wrapper are basically objects, but they can be converted into T&. So we can use as argument with the functions that take the underlying type b... | [
{
"code": null,
"e": 1395,
"s": 1062,
"text": "In C++ the reference_wrapper is a class template that helps by wrapping a reference in a copy constructible and copy assignable object of type T. The instances of std::reference_wrapper are basically objects, but they can be converted into T&. So we can... |
Transformers | Fine-tuning RoBERTa with PyTorch to predict reading ease | Towards Data Science | Transformers, what are they actually? They are not the devices used in power transmission of electric energy, nor the fictional living autonomous robots Optimus Prime or Bumblebee who can transform into other objects like vehicles. Transformers in our context here is referring to BERT, ALBERT, RoBERTa, and the like, wh... | [
{
"code": null,
"e": 842,
"s": 172,
"text": "Transformers, what are they actually? They are not the devices used in power transmission of electric energy, nor the fictional living autonomous robots Optimus Prime or Bumblebee who can transform into other objects like vehicles. Transformers in our con... |
How to generate custom visuals in Power BI using R | by Moumi Panja | Towards Data Science | Did you ever want to display your own custom visuals through Power BI? If the answer is yes, then this article will help you quickly understand how you can import custom visuals created in R and use them in your regular Power BI reports.
Installing R and R Studio: Assuming that Power BI desktop application is already i... | [
{
"code": null,
"e": 410,
"s": 172,
"text": "Did you ever want to display your own custom visuals through Power BI? If the answer is yes, then this article will help you quickly understand how you can import custom visuals created in R and use them in your regular Power BI reports."
},
{
"co... |
JavaScript | Cursor property - GeeksforGeeks | 19 Feb, 2019
Style.cursor specifies the mouse cursor to be displayed when pointing over an element.Some of the mouse pointers are as follows:
wait
help
move
pointer
crosshair
cell
noneSyntax:object.style.cursor = "nameOfCursor";
JavaScript codes which show the different mouse pointer:Code #1:<html> <body> <p id="Cu... | [
{
"code": null,
"e": 24999,
"s": 24971,
"text": "\n19 Feb, 2019"
},
{
"code": null,
"e": 25128,
"s": 24999,
"text": "Style.cursor specifies the mouse cursor to be displayed when pointing over an element.Some of the mouse pointers are as follows:"
},
{
"code": null,
"e... |
Binary Classification of Disaster Tweets | by Sohail Hosseini | Towards Data Science | In recent years, social media has gotten lots of attention for their potential use in spatial and temporal events. Twitter is one of them that has become an important communication channel in different situations, for instance, in times of emergency. The smartphones enable people to announce an emergency they see in re... | [
{
"code": null,
"e": 758,
"s": 172,
"text": "In recent years, social media has gotten lots of attention for their potential use in spatial and temporal events. Twitter is one of them that has become an important communication channel in different situations, for instance, in times of emergency. The ... |
Automated Feature Engineering Using Neural Networks | by Michael Malin | Towards Data Science | Few will deny that feature engineering is one of the most important steps for producing accurate models. Some people love it, but I am definitely not one of them. I find this step very tedious and it is my firm belief that anything tedious can be automated. While my solution doesn’t entirely eliminate the need for manu... | [
{
"code": null,
"e": 654,
"s": 172,
"text": "Few will deny that feature engineering is one of the most important steps for producing accurate models. Some people love it, but I am definitely not one of them. I find this step very tedious and it is my firm belief that anything tedious can be automate... |
Throw and throws in Java | Whenever an exception occurs in a method you need to handle it by wrapping the code that caused exception within the try-catch block or, you can throw/postpone it using to the calling method using the throws keyword. Then you need to handle the exception at the calling method.
Live Demo
import java.io.File;
import jav... | [
{
"code": null,
"e": 1340,
"s": 1062,
"text": "Whenever an exception occurs in a method you need to handle it by wrapping the code that caused exception within the try-catch block or, you can throw/postpone it using to the calling method using the throws keyword. Then you need to handle the exceptio... |
How to Count Variable Numbers of Arguments in C? | In this section we will see how to count number of arguments in case of variable number of arguments in C.
The C supports ellipsis. This is used to take variable number of arguments to a function. User can count the arguments by using one of the three different ways.
By passing the first argument as count of the parame... | [
{
"code": null,
"e": 1169,
"s": 1062,
"text": "In this section we will see how to count number of arguments in case of variable number of arguments in C."
},
{
"code": null,
"e": 1330,
"s": 1169,
"text": "The C supports ellipsis. This is used to take variable number of arguments ... |
SQL - FULL JOINS | The SQL FULL JOIN combines the results of both left and right outer joins.
The joined table will contain all records from both the tables and fill in NULLs for missing matches on either side.
The basic syntax of a FULL JOIN is as follows −
SELECT table1.column1, table2.column2...
FROM table1
FULL JOIN table2
ON table1.... | [
{
"code": null,
"e": 2528,
"s": 2453,
"text": "The SQL FULL JOIN combines the results of both left and right outer joins."
},
{
"code": null,
"e": 2645,
"s": 2528,
"text": "The joined table will contain all records from both the tables and fill in NULLs for missing matches on eit... |
Powershell - Backtick | Backtick (`) operator is also called word-wrap operator. It allows a command to be written in multiple lines. It can be used for new line (`n) or tab (`t) in sentences as well. See the examples below −
Get-Service * | Sort-Object ServiceType `
| Format-Table Name, ServiceType, Status -AutoSize
It will become
Get-Servi... | [
{
"code": null,
"e": 2236,
"s": 2034,
"text": "Backtick (`) operator is also called word-wrap operator. It allows a command to be written in multiple lines. It can be used for new line (`n) or tab (`t) in sentences as well. See the examples below −"
},
{
"code": null,
"e": 2329,
"s":... |
Hyperparameter Tuning with KerasTuner and TensorFlow | by Luke Newman | Towards Data Science | Building machine learning models is an iterative process that involves optimizing the model’s performance and compute resources. The settings that you adjust during each iteration are called hyperparameters. They govern the training process and are held constant during training.
The process of searching for optimal hyp... | [
{
"code": null,
"e": 452,
"s": 172,
"text": "Building machine learning models is an iterative process that involves optimizing the model’s performance and compute resources. The settings that you adjust during each iteration are called hyperparameters. They govern the training process and are held c... |
C++ Program for Shortest Job First (SJF) scheduling(non-preemptive) | Given process, the burst time of a process respectively and a quantum limit; the task is to find and print the waiting time, turnaround time and their respective average time using Shortest Job First Scheduling non-preemptive method.
What is the shortest job first scheduling?
Shortest job first scheduling is the job or... | [
{
"code": null,
"e": 1296,
"s": 1062,
"text": "Given process, the burst time of a process respectively and a quantum limit; the task is to find and print the waiting time, turnaround time and their respective average time using Shortest Job First Scheduling non-preemptive method."
},
{
"code... |
Unix Socket - Ports and Services | When a client process wants to a connect a server, the client must have a way of identifying the server that it wants to connect. If the client knows the 32-bit Internet address of the host on which the server resides, it can contact that host. But how does the client identify the particular server process running on t... | [
{
"code": null,
"e": 2333,
"s": 2003,
"text": "When a client process wants to a connect a server, the client must have a way of identifying the server that it wants to connect. If the client knows the 32-bit Internet address of the host on which the server resides, it can contact that host. But how ... |
C++ Program to Perform String Matching Using String Library | Here we will see how the string library functions can be used to match strings in C++. Here we are using the find() operation to get the occurrences of the substring into the main string. This find() method returns the first location where the string is found. Here we are using this find() function multiple times to ge... | [
{
"code": null,
"e": 1404,
"s": 1062,
"text": "Here we will see how the string library functions can be used to match strings in C++. Here we are using the find() operation to get the occurrences of the substring into the main string. This find() method returns the first location where the string is... |
Parsing incoming requests in express.js | To receive some data in http request , lets add a form on url path ‘/add-username’:
app.use('/add-username', (req, res,next)=>{
res.send('<form action="/post-username" method="POST"> <input type="text" name="username"> <button type="submit"> Send </button> </form>');
});
For parsing the http request, we requires ... | [
{
"code": null,
"e": 1146,
"s": 1062,
"text": "To receive some data in http request , lets add a form on url path ‘/add-username’:"
},
{
"code": null,
"e": 1340,
"s": 1146,
"text": "app.use('/add-username', (req, res,next)=>{\n res.send('<form action=\"/post-username\" method=\... |
Ternary Operator in Python? | Many programming languages support ternary operator, which basically define a conditional expression.
Similarly the ternary operator in python is used to return a value based on the result of a binary condition. It takes binary value(condition) as an input, so it looks similar to an “if-else” condition block. However, ... | [
{
"code": null,
"e": 1164,
"s": 1062,
"text": "Many programming languages support ternary operator, which basically define a conditional expression."
},
{
"code": null,
"e": 1441,
"s": 1164,
"text": "Similarly the ternary operator in python is used to return a value based on the ... |
How to retrieve a specific number of lines from files in PowerShell? | To retrieve the specific number of lines from the beginning or the end of the file, you first need to get the content of the file using Get-Content and then need to pipeline the -First for retrieving the number of files from the beginning and -Last to retrieve the number of lines from the bottom.
Check the below exampl... | [
{
"code": null,
"e": 1360,
"s": 1062,
"text": "To retrieve the specific number of lines from the beginning or the end of the file, you first need to get the content of the file using Get-Content and then need to pipeline the -First for retrieving the number of files from the beginning and -Last to r... |
PHP | Type Casting and Conversion of an Object to an Object of other class - GeeksforGeeks | 09 Jan, 2019
Given a PHP class object and the task is to convert or cast this object into object of another class.
Approach 1: Objects which are instances of a standard pre-defined class can be converted into object of another standard class.
Example:
<?php// PHP program to show // standard type casting $a = 1;var_dum... | [
{
"code": null,
"e": 31040,
"s": 31012,
"text": "\n09 Jan, 2019"
},
{
"code": null,
"e": 31142,
"s": 31040,
"text": "Given a PHP class object and the task is to convert or cast this object into object of another class."
},
{
"code": null,
"e": 31270,
"s": 31142,
... |
How to validate data using Cerberus in python | The Cerberus module in python provides powerful yet lightweight data validation functions. It is designed in such a way that you can extend it to various applications and custom validations.
We first define a schema and then validate the data against the scheme and check if it matches the provided conditions or not. If... | [
{
"code": null,
"e": 1253,
"s": 1062,
"text": "The Cerberus module in python provides powerful yet lightweight data validation functions. It is designed in such a way that you can extend it to various applications and custom validations."
},
{
"code": null,
"e": 1447,
"s": 1253,
... |
jQuery - clone( ) Method | The clone( ) method clones matched DOM Elements and select the clones.
This is useful for moving copies of the elements to another location in the DOM.
Here is the simple syntax to use this method −
selector.clone( )
Here is the description of all the parameters used by this method −
NA
NA
Following is a simple exampl... | [
{
"code": null,
"e": 2393,
"s": 2322,
"text": "The clone( ) method clones matched DOM Elements and select the clones."
},
{
"code": null,
"e": 2474,
"s": 2393,
"text": "This is useful for moving copies of the elements to another location in the DOM."
},
{
"code": null,
... |
Express.js req.route Property - GeeksforGeeks | 08 Jul, 2020
The req.route property contains the currently-matched route which is a string.
Syntax:
req.route
Parameter: No parameters.
Return Value: Object
Installation of express module:
You can visit the link to Install express module. You can install this package by using this command.npm install expressAfter insta... | [
{
"code": null,
"e": 24325,
"s": 24297,
"text": "\n08 Jul, 2020"
},
{
"code": null,
"e": 24404,
"s": 24325,
"text": "The req.route property contains the currently-matched route which is a string."
},
{
"code": null,
"e": 24412,
"s": 24404,
"text": "Syntax:"
... |
Impute Dates in a Pandas DataFrame with Lambdas | by Justin Chae | Towards Data Science | The easy choice is to drop missing or erroneous data, but at what cost?
Dealing with missing, null, or erroneous values is one of the most painful and common exercises that we encounter in data science and in machine learning. In some cases, it is acceptable or even preferred to drop such records — algorithms are fragi... | [
{
"code": null,
"e": 244,
"s": 172,
"text": "The easy choice is to drop missing or erroneous data, but at what cost?"
},
{
"code": null,
"e": 684,
"s": 244,
"text": "Dealing with missing, null, or erroneous values is one of the most painful and common exercises that we encounter ... |
How to use View Stub in android? | Before getting into example, we should know what is view stub in android. It is a zero-sized lazy inflate view. it going to inflate at runtime. Using inflate() method, it going to inflate at runtime and append to window manager or view group. using setVisibility(int). we can show and hide view stub in android.
This exa... | [
{
"code": null,
"e": 1374,
"s": 1062,
"text": "Before getting into example, we should know what is view stub in android. It is a zero-sized lazy inflate view. it going to inflate at runtime. Using inflate() method, it going to inflate at runtime and append to window manager or view group. using setV... |
How to Compute Sentence Similarity Using BERT and Word2Vec | Towards Data Science | We often need to encode text data, including words, sentences, or documents into high-dimensional vectors. The sentence embedding is an important step in various NLP tasks such as sentiment analysis and extractive summarization. A flexible sentence embedding library is needed to prototype fast and to tune for various c... | [
{
"code": null,
"e": 500,
"s": 171,
"text": "We often need to encode text data, including words, sentences, or documents into high-dimensional vectors. The sentence embedding is an important step in various NLP tasks such as sentiment analysis and extractive summarization. A flexible sentence embedd... |
Cucumber - Hooks | Cucumber hook allows us to better manage the code workflow and helps us to reduce the code redundancy. We can say that it is an unseen step, which allows us to perform our scenarios or tests.
To understand this notion better, let’s take an example of a feature file and a step definition file.
The highlighted portion in... | [
{
"code": null,
"e": 2154,
"s": 1962,
"text": "Cucumber hook allows us to better manage the code workflow and helps us to reduce the code redundancy. We can say that it is an unseen step, which allows us to perform our scenarios or tests."
},
{
"code": null,
"e": 2256,
"s": 2154,
... |
How to list all users who are currently logged into the Linux system?
| To check information about users who are currently logged into the system, we use the who command in the Linux system.
The who command is used to display the users logged into the system. The who command related to the w command that is used to display information about the users currently on the machine and their proc... | [
{
"code": null,
"e": 1181,
"s": 1062,
"text": "To check information about users who are currently logged into the system, we use the who command in the Linux system."
},
{
"code": null,
"e": 1389,
"s": 1181,
"text": "The who command is used to display the users logged into the sy... |
Swing Examples - Sorting Table By Headers | Following example showcase how to create a sortable table by headers in a Java Swing application.
We are using the following APIs.
JTable(Object[][] data, String[] columnNames) − To create a table.
JTable(Object[][] data, String[] columnNames) − To create a table.
JTable().setAutoCreateRowSorter(true) − To add a defaul... | [
{
"code": null,
"e": 2137,
"s": 2039,
"text": "Following example showcase how to create a sortable table by headers in a Java Swing application."
},
{
"code": null,
"e": 2170,
"s": 2137,
"text": "We are using the following APIs."
},
{
"code": null,
"e": 2237,
"s":... |
How to reverse the bars of a bar plot a using ggplot2 in R? | The bars of a bar plot are generally vertical from bottom to top but we can reverse them as well. Although, this is not a normal practice but we can do it if we want to. For this purpose, we will have to reverse the values on the Y-axis, as a result the bars will be reversed. It can be achieved by using scale_y_continu... | [
{
"code": null,
"e": 1387,
"s": 1062,
"text": "The bars of a bar plot are generally vertical from bottom to top but we can reverse them as well. Although, this is not a normal practice but we can do it if we want to. For this purpose, we will have to reverse the values on the Y-axis, as a result the... |
Java Program to set JComboBox in JOptionPane | Let us first crate a ComboBox and add items to it −
Object[] sports = { "Football", "Cricket", "Squash", "Baseball", "Fencing", "Volleyball", "Basketball" };
JComboBox comboBox = new JComboBox(sports);
Now, add the combo box to the JOptionPane −
JOptionPane.showMessageDialog(null, comboBox, "Fav Sports", JOptionPane.QU... | [
{
"code": null,
"e": 1114,
"s": 1062,
"text": "Let us first crate a ComboBox and add items to it −"
},
{
"code": null,
"e": 1264,
"s": 1114,
"text": "Object[] sports = { \"Football\", \"Cricket\", \"Squash\", \"Baseball\", \"Fencing\", \"Volleyball\", \"Basketball\" };\nJComboBox... |
C# | Copying the SortedList elements to an Array Object - GeeksforGeeks | 01 Feb, 2019
SortedList.CopyTo(Array, Int32) Method is used to copy SortedList elements to a one-dimensional Array object, starting at the specified index in the array.
Syntax:
public virtual void CopyTo (Array array, int arrayIndex);
Parameters:
array: It is the one-dimensional Array object that is the destination of ... | [
{
"code": null,
"e": 24117,
"s": 24089,
"text": "\n01 Feb, 2019"
},
{
"code": null,
"e": 24273,
"s": 24117,
"text": "SortedList.CopyTo(Array, Int32) Method is used to copy SortedList elements to a one-dimensional Array object, starting at the specified index in the array."
},
... |
Creating Presentations with Python | by Eser Saygın | Towards Data Science | Time is the most precious treasure Data Scientists have and it must be used efficiently. If you frequently prepare a presentation then it means you are consuming your time with busywork. But why should you do something like grunt work if you can automate it?
This is my second article about the automation of time-consum... | [
{
"code": null,
"e": 431,
"s": 172,
"text": "Time is the most precious treasure Data Scientists have and it must be used efficiently. If you frequently prepare a presentation then it means you are consuming your time with busywork. But why should you do something like grunt work if you can automate ... |
Lua - Metatables | A metatable is a table that helps in modifying the behavior of a table it is attached to with the help of a key set and related meta methods. These meta methods are powerful Lua functionality that enables features like −
Changing/adding functionalities to operators on tables.
Changing/adding functionalities to operator... | [
{
"code": null,
"e": 2324,
"s": 2103,
"text": "A metatable is a table that helps in modifying the behavior of a table it is attached to with the help of a key set and related meta methods. These meta methods are powerful Lua functionality that enables features like −"
},
{
"code": null,
... |
\DeclareMathOperator - Tex Command | \DeclareMathOperator - allows you to define your own operator names.
{ \DeclareMathOperator #1 #2 }
\DeclareMathOperator command allows you to define your own operator names; they are subsequently typeset using the proper font and spacing.
myOp(x)
myOp(x)
\text{myOp}(x)
myOp(x)
\DeclareMathOperator {\myOp}{myOp... | [
{
"code": null,
"e": 8055,
"s": 7986,
"text": "\\DeclareMathOperator - allows you to define your own operator names."
},
{
"code": null,
"e": 8087,
"s": 8055,
"text": "{ \\DeclareMathOperator #1 #2 }"
},
{
"code": null,
"e": 8227,
"s": 8087,
"text": "\\Declar... |
Big Data Market Basket Analysis with Apriori Algorithm on Spark | by Sergen Cansiz | Towards Data Science | The probability of buying a particular product by customers may be based on several factors. Factors such as the customer’s transaction history, demographic characteristics, and interests are examples of these. So, what if we don’t have those factors. It means that the customer has not been to our store before and we d... | [
{
"code": null,
"e": 1020,
"s": 171,
"text": "The probability of buying a particular product by customers may be based on several factors. Factors such as the customer’s transaction history, demographic characteristics, and interests are examples of these. So, what if we don’t have those factors. It... |
HTML | DOM links Collection - GeeksforGeeks | 13 Aug, 2021
The DOM links collection is used to return the collection of all <a> and <area> elements with “href” attribute in a HTML document. The elements in the collection are sorted as they appear in the sourcecode.Syntax:
document.links
Properties: It contains single property length which is used to return the n... | [
{
"code": null,
"e": 23479,
"s": 23451,
"text": "\n13 Aug, 2021"
},
{
"code": null,
"e": 23695,
"s": 23479,
"text": "The DOM links collection is used to return the collection of all <a> and <area> elements with “href” attribute in a HTML document. The elements in the collection a... |
SAS - Chi Square | A chi-square test is used to examine the association between two categorical variables. It can be used to test both extent of dependence and extent of independence between Variables. SAS uses PROC FREQ along with the option chisq to determine the result of Chi-Square test.
The basic syntax for applying PROC FREQ for Ch... | [
{
"code": null,
"e": 2857,
"s": 2583,
"text": "A chi-square test is used to examine the association between two categorical variables. It can be used to test both extent of dependence and extent of independence between Variables. SAS uses PROC FREQ along with the option chisq to determine the result... |
Output of Java Programs | Set 30 - GeeksforGeeks | 05 Sep, 2017
QUE.1 What is the output of this program ?
public class Prg { public static void main(String args[]) { System.out.print('A' + 'B'); }}
OPTIONa) ABb) 195c) 131d) Error
Answer: c
Explanation: Here, ‘A’ and ‘B’ are not strings they are characters. ‘A’ and ‘B’ will not concatenate. The ASCII of... | [
{
"code": null,
"e": 24051,
"s": 24023,
"text": "\n05 Sep, 2017"
},
{
"code": null,
"e": 24094,
"s": 24051,
"text": "QUE.1 What is the output of this program ?"
},
{
"code": "public class Prg { public static void main(String args[]) { System.out.print('A' + '... |
PHP Indexed Arrays | There are two ways to create indexed arrays:
The index can be assigned automatically (index
always starts at 0), like this:
or the index can be assigned manually:
The following example creates an indexed array named $cars, assigns three
elements to it, and then prints a text containing the array values:
To loop throu... | [
{
"code": null,
"e": 45,
"s": 0,
"text": "There are two ways to create indexed arrays:"
},
{
"code": null,
"e": 125,
"s": 45,
"text": "The index can be assigned automatically (index \nalways starts at 0), like this:"
},
{
"code": null,
"e": 164,
"s": 125,
"tex... |
Amazon Interview Experience for 6-Months SDE Internship - GeeksforGeeks | 27 Oct, 2020
Round 1: Online assessment consisting of 4 sections conducted on the AMCAT platform.
Code Debugging: 7 questions C/C++/Java (20 minutes)Coding: 2 questions (70 minutes)Workstyle Assessment: (20 minutes)Reasoning Ability: 24 questions (35 minutes)
Code Debugging: 7 questions C/C++/Java (20 minutes)
Coding: ... | [
{
"code": null,
"e": 25744,
"s": 25716,
"text": "\n27 Oct, 2020"
},
{
"code": null,
"e": 25829,
"s": 25744,
"text": "Round 1: Online assessment consisting of 4 sections conducted on the AMCAT platform."
},
{
"code": null,
"e": 25991,
"s": 25829,
"text": "Code ... |
Machine Learning Model Implementation: Assessing Variable Importance Across Models | by Katey Durham | Towards Data Science | Great! So you completed your Machine Learning (ML) pipeline, hopefully choosing your tuning parameters for each model through a careful validation procedure and have converged on what you think is the final model for each strategy. What’s next? In the first part of this series I’ll talk about some metrics and graphics ... | [
{
"code": null,
"e": 908,
"s": 47,
"text": "Great! So you completed your Machine Learning (ML) pipeline, hopefully choosing your tuning parameters for each model through a careful validation procedure and have converged on what you think is the final model for each strategy. What’s next? In the firs... |
C# Program to Get Tomorrow's Date Using TimeSpan Method - GeeksforGeeks | 06 Dec, 2021
TimeSpan is a struct that is used to represent time interval which is used to measure the positive and negative number of minutes, hours, days. It is also used to represent the time of the day only when the time is unrelated to some specified date. In this article, we will find tomorrow’s date using the Ti... | [
{
"code": null,
"e": 24302,
"s": 24274,
"text": "\n06 Dec, 2021"
},
{
"code": null,
"e": 24624,
"s": 24302,
"text": "TimeSpan is a struct that is used to represent time interval which is used to measure the positive and negative number of minutes, hours, days. It is also used to ... |
Delete all elements in an array field in MongoDB? | You can use $set operator for this. The syntax is as follows −
db.yourCollectionName.update({}, { $set : {"yourFieldName": [] }} , {multi:true} );
To understand the above syntax, let us create a collection with the document. The query to create a collection with a document is as follows −
> db.deleteAllElementsInArrayD... | [
{
"code": null,
"e": 1125,
"s": 1062,
"text": "You can use $set operator for this. The syntax is as follows −"
},
{
"code": null,
"e": 1209,
"s": 1125,
"text": "db.yourCollectionName.update({}, { $set : {\"yourFieldName\": [] }} , {multi:true} );"
},
{
"code": null,
"... |
SortedSet iterator() method in Java with Examples - GeeksforGeeks | 30 Sep, 2019
The java.util.SortedSet.iterator() method is used to return an iterator of the same elements as the set. The elements are returned in random order from what present in the set.
Syntax:
Iterator iterate_value = sortedSetInstance.iterator();
Parameters: The function does not take any parameter.
Return Value... | [
{
"code": null,
"e": 23557,
"s": 23529,
"text": "\n30 Sep, 2019"
},
{
"code": null,
"e": 23734,
"s": 23557,
"text": "The java.util.SortedSet.iterator() method is used to return an iterator of the same elements as the set. The elements are returned in random order from what presen... |
Repeated Substring Pattern in C++ | Suppose we have a non-empty string. We have to check whether it can be constructed by taking a substring of it and appending multiple times of the substring. The string consists of lowercase English letters only and its length will not exceed 10000. So if the input is like “abaabaaba”, then answer will be true, as this... | [
{
"code": null,
"e": 1406,
"s": 1062,
"text": "Suppose we have a non-empty string. We have to check whether it can be constructed by taking a substring of it and appending multiple times of the substring. The string consists of lowercase English letters only and its length will not exceed 10000. So ... |
Tabular Prediction using Auto Machine Learning (AutoGluon) | by Kb Pachauri | Towards Data Science | In this post, I am sharing my exploration with the Tabular Prediction (predicting target column of the tabular dataset using the remaining column) using Auto Machine Learning (AutoML), AutoGluon from AWS labs, and details around its internal working.
AutoML frameworks provide enticing options as they remove the barrier... | [
{
"code": null,
"e": 423,
"s": 172,
"text": "In this post, I am sharing my exploration with the Tabular Prediction (predicting target column of the tabular dataset using the remaining column) using Auto Machine Learning (AutoML), AutoGluon from AWS labs, and details around its internal working."
}... |
Logistic Regression in Classification model using Python: Machine Learning | by Kaushik Katari | Towards Data Science | Logistic regression is a commonly used model in various industries such as banking, healthcare because when compared to other classification models, the logistic regression model is easily interpreted.
Binary classification is the most commonly used logistic regression. Some of the examples of binary classification pro... | [
{
"code": null,
"e": 373,
"s": 171,
"text": "Logistic regression is a commonly used model in various industries such as banking, healthcare because when compared to other classification models, the logistic regression model is easily interpreted."
},
{
"code": null,
"e": 502,
"s": 37... |
Numpy size() function | Python - GeeksforGeeks | 29 Jul, 2021
In Python, numpy.size() function count the number of elements along a given axis.
Syntax: numpy.size(arr, axis=None)Parameters: arr: [array_like] Input data. axis: [int, optional] Axis(x,y,z) along which the elements(rows or columns) are counted. By default, give the total number of elements in a arrayRetu... | [
{
"code": null,
"e": 23967,
"s": 23939,
"text": "\n29 Jul, 2021"
},
{
"code": null,
"e": 24049,
"s": 23967,
"text": "In Python, numpy.size() function count the number of elements along a given axis."
},
{
"code": null,
"e": 24337,
"s": 24049,
"text": "Syntax: ... |
Creating a Proxy Webserver in Python | A proxy server sits in between the client and the actual server. It receives the requests from the client, send it to the actual server, and on receiving the response from the actual server it sends the response back to the client. There are many reasons to use the proxy like hiding the server’s IP address, performance... | [
{
"code": null,
"e": 1505,
"s": 1062,
"text": "A proxy server sits in between the client and the actual server. It receives the requests from the client, send it to the actual server, and on receiving the response from the actual server it sends the response back to the client. There are many reason... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.