Improve Efficiency of Apriori-Based Mining

Ginni
Updated on 24-Nov-2021 06:54:02

14K+ Views

There are some variations of the Apriori algorithm that have been projected that target developing the efficiency of the original algorithm which are as follows −The hash-based technique (hashing itemsets into corresponding buckets) − A hash-based technique can be used to decrease the size of the candidate k-itemsets, Ck, for k > 1. For instance, when scanning each transaction in the database to create the frequent 1-itemsets, L1, from the candidate 1-itemsets in C1, it can make some 2-itemsets for each transaction, hash (i.e., map) them into the several buckets of a hash table structure, and increase the equivalent bucket ... Read More

Node.js Client End Method in Redis

Mayank Agarwal
Updated on 24-Nov-2021 06:52:42

2K+ Views

The client.end(flush) method forcibly closes all the connection to the Redis server without waiting until all the replies have been parsed. This method just closes all the connection and ongoing streaming between the Node and Redis server. If you want to exit cleanly, you should use client.quit() method.Syntaxclient.end(flush)Parametersflush - This input parameter will hold a Boolean value that will indicate whether to close a connection or not.Example 1Create a file with the name "clientEnd.js" and copy the following code. After creating the file, use the command "node clientEnd.js" to run this code as shown in the example below −// client.end() ... Read More

Detect Buffer's Property in Redis using Node.js

Mayank Agarwal
Updated on 24-Nov-2021 06:48:47

675 Views

Node.js Redis offers certain properties which can be used as per your usecase. One such property is detect_buffers.If this property is set to True, then the replies that are sent to the callbacks are sent as buffers.This option lets you switch between the buffer and strings based upon this single command basis.This property does not work with pub-sub mode.SyntaxdetectBuffers: trueExample 1Create a file with the name "detectBuffers.js" and copy the following code. After creating the file, use the command "node detectBuffers.js" to run this code, as shown in the example below:// detect_buffers Property Demo Example // Importing the redis ... Read More

Web-Based Tools in OLAP

Ginni
Updated on 24-Nov-2021 06:46:10

1K+ Views

There are the various web-based tools which are as follows −Arbor Essbase Web − This tool provides features as drilling up, down, across; slice and dice, and powerful reporting, all for OLAP. It also provides data entry, such as full multi-user concurrent write capabilities. Arbor Essbase is only a server product, no user package exists, thus assuring its own desktop client version market. The Web product does not restore administrative and development structures but it restores only user access for queries and updates.Information Advantage Web OLAP − This product uses a server-centric messaging architecture, composed of a powerful analytic engine ... Read More

Node.js Chalk Module

Mayank Agarwal
Updated on 24-Nov-2021 06:45:37

3K+ Views

The chalk module is a third-party library that can be used for styling of texts. It allows the users to create their own themes in a Node.js project.This module helps the users to customize the response messages with different colors as per the preferences.It also improves the readability by providing colors and makes it easier to detect warnings and errors.Installationnpm install chalkExample 1Create a file with the name "chalk.js" and copy the following code. After creating the file, use the command "node chalk.js" to run this code as shown in the example below −// Importing the chalk module const chalk=require("chalk"); ... Read More

Characteristics of OLAP

Ginni
Updated on 24-Nov-2021 06:44:24

8K+ Views

The FASMI TestIt can represent the characteristics of an OLAP application in a specific method, without dictating how it should be performed.Fast − It defines that the system is targeted to produce most responses to users within about five seconds, with the understandable analysis taking no more than one second and very few taking more than 20 seconds.Independent research in the Netherlands has shown that end-users consider that a process has declined if results are not received with 30 seconds, and they are suitable to hit ‘ALT+Ctrl+Delete’ unless the system needs them that the report will take longer.Analysis − It ... Read More

Hierarchical Methods Explained

Ginni
Updated on 24-Nov-2021 06:43:12

6K+ Views

A hierarchical clustering technique works by combining data objects into a tree of clusters. Hierarchical clustering algorithms are either top-down or bottom-up. The quality of an authentic hierarchical clustering method deteriorates from its inability to implement adjustment once a merge or split decision is completed.The merging of clusters is based on the distance among clusters. The broadly used measures for the distance between clusters are as follows, where mi is the mean for cluster Ci, ni is the number of points in Ci, and |p – p’| is the distance among two points p and p'.Types of Hierarchical Clustering MethodsThere ... Read More

Node.js Process beforeExit Event

Mayank Agarwal
Updated on 24-Nov-2021 06:42:59

762 Views

The 'beforeExit' event is called when Node.js empties its event loop and has no other work to schedule. The Node.js process exits normally when there is no work scheduled but a listener registered on the 'before exit' event can make async calls and thereby cause the Node.js process to continue.Example 1Create a file with the name "beforeExit.js" and copy the following code. After creating the file, use the command "node beforeExit.js" to run this code as shown in the example below −// process 'beforeExit' Demo Example // Importing the process module const process = require('process'); // Calling the ... Read More

GetGenerator Method in Node.js DiffieHellman

Mayank Agarwal
Updated on 24-Nov-2021 06:40:27

108 Views

The diffieHellman.getGenerator() method returns the Diffie-Hellman generator in the specified encoding. A string is returned in case an encoding is passed, else a buffer is returned.SyntaxdiffieHellman.getGenerator([encoding])Parametersencoding - This parameter specifies the encoding of the return value.Example 1Create a file with the name "generator.js" and copy the following code. After creating the file, use the command "node generator.js" to run this code as shown in the example below:// diffieHellman.getPrime() Demo Example // Importing cryptoDiffieHellman from the crypto module const { createDiffieHellman } = require('crypto'); // Initializing the diffieHellman object const dh = createDiffieHellman(512); // Generate DiffieHellman's Generator ... Read More

Node.js dnsPromises resolveAny Method

Mayank Agarwal
Updated on 24-Nov-2021 06:38:52

201 Views

The dnsPromises.resolveAny() method uses the DNS protocol to resolve all records (this is also known as ANY or * query). The promise is resolved with an array containing various types of records.TypeProperties'A'IPv4 address'AAAA'IPv6 address'Any'Any RecordsMXMail Exchange RecordsNAPTRName authority pointer recordsNSName server recordsPTRPointer RecordsSOAStart of Authority RecordsSRVService RecordsTXTText RecordsCNAMECanonical Name RecordsSyntaxdnsPromises.resolveAny(hostname)Parametershostname - This parameter takes input for the hostname to be resolved.Example 1Create a file with the name "resolveAny.js" and copy the following code. After creating the file, use the command "node resolveAny.js" to run this code, as shown in the example below −// Node.js program to demonstrate the // dnsPromises.resolveAny() method ... Read More

Advertisements