Skip to main content

FIM Algorithms package for ARM

Project description

How to Install

pip install FIMProject

How to Use It

from FIM.FIMAlgorithms import Apriori

ap = Apriori(DATABASE, SingleItems, 2)
freq = ap.findFrequentItems()
ap.showFrequentItems()
ap.showRules(0.9, 0.4)

What is DATABASE and SingleItems?

The database consisting of string items is represented as a binary database as can be seen in the figure. There are as many columns as the number of single items. If there is an item in the line, it is represented by "1", otherwise it is represented by "0". The reason we keep the database as a binary database is that it is more costly to calculate over strings. All algorithms in this library work on this type of database.

Index String Transaction Indices Transaction
0 ['A' 'B' 'E' 'G'] [1 1 0 0 1 0 1]
1 ['B' 'C' 'E' 'F'] [0 1 1 0 1 1 0]
2 ['A' 'E' 'F'] [1 0 0 0 1 1 0]
3 ['B' 'F' 'G'] [0 1 0 0 0 1 1]
4 ['A' 'B' 'D' 'E'] [1 1 0 1 1 0 0]
5 ['A' 'F' 'G'] [1 0 0 0 0 1 1]
6 ['A' 'B' 'D' 'E' 'F' 'G'] [1 1 0 1 1 1 1]
7 ['A' 'B' 'E' 'F'] [1 1 0 0 1 1 0]
8 ['B' 'C' 'D' 'F'] [0 1 1 1 0 1 0]
9 ['A' 'E' 'F' 'G'] [1 0 0 0 1 1 1]
10 ['B' 'D' 'E' 'F'] [0 1 0 1 1 1 0]

SingleItems is a list of single items in the database. The reason why we keep this list is to show the results found in string type.

SingleItems ["A","B","C","D","E","F","G"]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

FIMProject-0.0.5.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

FIMProject-0.0.5-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file FIMProject-0.0.5.tar.gz.

File metadata

  • Download URL: FIMProject-0.0.5.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.8

File hashes

Hashes for FIMProject-0.0.5.tar.gz
Algorithm Hash digest
SHA256 f064043259aad3ae74705d9f975b0ca049b124cf3d6463a910b4e1c9a7003fd9
MD5 3a430037dc34eaf1ffbf23809c51bdc5
BLAKE2b-256 7b4f758ecf9ff5d4f7752dedbc83cdc5d13a725b9cb170fff3272454884beec3

See more details on using hashes here.

File details

Details for the file FIMProject-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: FIMProject-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.8

File hashes

Hashes for FIMProject-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 d518b9f6e285b22585d220dff5d0809364ef8547176ba2f910c31e60c53ce752
MD5 f5f4603199272802f472fdafef2d318d
BLAKE2b-256 1202feb79390c65548b9038eef7bb7dfc0bb0c2688b94fe3e8f295781457deec

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page