Skip to content
Elixir implementation of CLOPE: A Fast and Effective Clustering Algorithm for Transactional Data
Elixir
Branch: master
Clone or download
Latest commit 79b71cd Jul 15, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config initial commit Apr 9, 2017
lib simplify max cluster calculation Jul 15, 2017
test simplify max cluster calculation Jul 15, 2017
.gitignore initial commit Apr 9, 2017
CHANGELOG.md Bumped Changelog & version Jul 11, 2017
README.md update README Jul 15, 2017
mix.exs Bumped Changelog & version Jul 11, 2017
mix.lock use ex_machina only as test dependency May 24, 2017

README.md

Clope

Build Status

CLOPE: A Fast and Effective Clustering Algorithm for Transactional Data

The algorithm's description http://www.inf.ufrgs.br/~alvares/CMP259DCBD/clope.pdf

Installation

If available in Hex, the package can be installed as:

  1. Add clope to your list of dependencies in mix.exs:
```
def deps do
  [{:clope, "~> 0.1.3"}]
end
```
  1. Ensure clope is started before your application:
```
def application do
  [applications: [:clope]]
end
```

How to use

```
  iex> input = [
    {"transaction1", ["object1", "object2", "object3"]},
    {"transaction2", ["object1", "object5"]},
    {"transaction3", ["object2", "object3"]},
    {"transaction4", ["object1", "object5"]}
  ]
  iex> result = input |> Clope.clusterize(2)
  [
    [
      {"transaction1", ["object1", "object2", "object3"]},
      {"transaction3", ["object2", "object3"]}
    ],
    [
      {"transaction2", ["object1", "object5"]},
      {"transaction4", ["object1", "object5"]}
    ]
  ]
```
You can’t perform that action at this time.