cs-arm-apriori 1.0.1

dotnet add package cs-arm-apriori --version 1.0.1
NuGet\Install-Package cs-arm-apriori -Version 1.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="cs-arm-apriori" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add cs-arm-apriori --version 1.0.1
#r "nuget: cs-arm-apriori, 1.0.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install cs-arm-apriori as a Cake Addin
#addin nuget:?package=cs-arm-apriori&version=1.0.1

// Install cs-arm-apriori as a Cake Tool
#tool nuget:?package=cs-arm-apriori&version=1.0.1

cs-arm

Associative Rule Mining in C#

The current project implements the Apriori algorithm for associative rule mining

Apriori algorithm is a frequent pattern mining algorithm that finds frequent patterns with support threshold defined by user.

Install

Run the following nuget command:

Install-Package cs-arm-apriori

Usage

The sample code below shows how to use Apriori to find the frequent item sets:

using System;
using System.Collections.Generic;
using ARM;

namespace project_demo
{
    class Program
    {
        static void Main(string[] args)
        {
            List<HashSet<char>> database = new List<HashSet<char>>();
            database.Add(new HashSet<char>(new char[] { 'a', 'c', 'd', 'e' }));
            database.Add(new HashSet<char>(new char[] { 'a', 'b', 'e' }));
            database.Add(new HashSet<char>(new char[] { 'b', 'c', 'e' }));
            database.Add(new HashSet<char>(new char[] { 'b', 'c', 'e' }));

            Apriori<char> method = new Apriori<char>();
            Dictionary<int, List<ItemSet<char>>> itemsets = method.BuildFreqItemSet(database, new List<char>() { 'a', 'b', 'c', 'd', 'e' }, 2);
            foreach (int supportLevel in itemsets.Keys)
            {
                List<ItemSet<char>> itemsetList = itemsets[supportLevel];
                foreach (ItemSet<char> itemset in itemsetList)
                {
                    Console.WriteLine("{0} (support: {1})", itemset, itemset.SupportLevel);
                }

            }
        }
    }
}
Product Compatible and additional computed target framework versions.
.NET Framework net461 is compatible.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.1 1,265 4/29/2018

Apriori Association Rule Mining in .NET 4.6.1