rasbt / rasbt/mlxtend

Leverage returns values greater than 1

Open
#883 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Question
Dominant language
Python
Stars
5.2k
Forks
916
Avg merge
17h 31m
Merged PRs (30d)
4

Description

While running the apriori algo for a project, Leverage returned (some) values > 1; I'm not doing anything exotic with the library and am working from a rather standard sparse matrix. Shouldn't Leverage take values within [-1,1]?

Happy to provide more context if needed.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported leverage result through the apriori algorithm with a standard sparse matrix input. Confirm the expected value range and reduce the report to a minimal example; done means the behavior is explained and, if incorrect, supported by a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data, machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.