effspm 0.2.1__tar.gz → 0.2.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {effspm-0.2.1/effspm.egg-info → effspm-0.2.2}/PKG-INFO +1 -1
- {effspm-0.2.1 → effspm-0.2.2}/effspm/htminer/src/load_inst.cpp +26 -15
- {effspm-0.2.1 → effspm-0.2.2/effspm.egg-info}/PKG-INFO +1 -1
- {effspm-0.2.1 → effspm-0.2.2}/pyproject.toml +1 -1
- {effspm-0.2.1 → effspm-0.2.2}/setup.py +1 -1
- {effspm-0.2.1 → effspm-0.2.2}/tests/test.py +2 -2
- {effspm-0.2.1 → effspm-0.2.2}/LICENSE +0 -0
- {effspm-0.2.1 → effspm-0.2.2}/MANIFEST.in +0 -0
- {effspm-0.2.1 → effspm-0.2.2}/README.md +0 -0
- {effspm-0.2.1 → effspm-0.2.2}/effspm/__init__.py +0 -0
- {effspm-0.2.1 → effspm-0.2.2}/effspm/_core.cpp +0 -0
- {effspm-0.2.1 → effspm-0.2.2}/effspm/_effspm.cpp +0 -0
- {effspm-0.2.1 → effspm-0.2.2}/effspm/btminer/src/build_mdd.cpp +0 -0
- {effspm-0.2.1 → effspm-0.2.2}/effspm/btminer/src/build_mdd.hpp +0 -0
- {effspm-0.2.1 → effspm-0.2.2}/effspm/btminer/src/freq_miner.cpp +0 -0
- {effspm-0.2.1 → effspm-0.2.2}/effspm/btminer/src/freq_miner.hpp +0 -0
- {effspm-0.2.1 → effspm-0.2.2}/effspm/btminer/src/load_inst.cpp +0 -0
- {effspm-0.2.1 → effspm-0.2.2}/effspm/btminer/src/load_inst.hpp +0 -0
- {effspm-0.2.1 → effspm-0.2.2}/effspm/btminer/src/main.cpp +0 -0
- {effspm-0.2.1 → effspm-0.2.2}/effspm/btminer/src/utility.cpp +0 -0
- {effspm-0.2.1 → effspm-0.2.2}/effspm/btminer/src/utility.hpp +0 -0
- {effspm-0.2.1 → effspm-0.2.2}/effspm/freq_miner.cpp +0 -0
- {effspm-0.2.1 → effspm-0.2.2}/effspm/freq_miner.hpp +0 -0
- {effspm-0.2.1 → effspm-0.2.2}/effspm/htminer/src/build_mdd.cpp +0 -0
- {effspm-0.2.1 → effspm-0.2.2}/effspm/htminer/src/build_mdd.hpp +0 -0
- {effspm-0.2.1 → effspm-0.2.2}/effspm/htminer/src/freq_miner.cpp +0 -0
- {effspm-0.2.1 → effspm-0.2.2}/effspm/htminer/src/freq_miner.hpp +0 -0
- {effspm-0.2.1 → effspm-0.2.2}/effspm/htminer/src/load_inst.hpp +0 -0
- {effspm-0.2.1 → effspm-0.2.2}/effspm/htminer/src/main.cpp +0 -0
- {effspm-0.2.1 → effspm-0.2.2}/effspm/htminer/src/utility.cpp +0 -0
- {effspm-0.2.1 → effspm-0.2.2}/effspm/htminer/src/utility.hpp +0 -0
- {effspm-0.2.1 → effspm-0.2.2}/effspm/largebm/src/build_mdd.cpp +0 -0
- {effspm-0.2.1 → effspm-0.2.2}/effspm/largebm/src/build_mdd.hpp +0 -0
- {effspm-0.2.1 → effspm-0.2.2}/effspm/largebm/src/freq_miner.cpp +0 -0
- {effspm-0.2.1 → effspm-0.2.2}/effspm/largebm/src/freq_miner.hpp +0 -0
- {effspm-0.2.1 → effspm-0.2.2}/effspm/largebm/src/load_inst.cpp +0 -0
- {effspm-0.2.1 → effspm-0.2.2}/effspm/largebm/src/load_inst.hpp +0 -0
- {effspm-0.2.1 → effspm-0.2.2}/effspm/largebm/src/main.cpp +0 -0
- {effspm-0.2.1 → effspm-0.2.2}/effspm/largebm/src/utility.cpp +0 -0
- {effspm-0.2.1 → effspm-0.2.2}/effspm/largebm/src/utility.hpp +0 -0
- {effspm-0.2.1 → effspm-0.2.2}/effspm/largehm/src/build_mdd.cpp +0 -0
- {effspm-0.2.1 → effspm-0.2.2}/effspm/largehm/src/build_mdd.hpp +0 -0
- {effspm-0.2.1 → effspm-0.2.2}/effspm/largehm/src/freq_miner.cpp +0 -0
- {effspm-0.2.1 → effspm-0.2.2}/effspm/largehm/src/freq_miner.hpp +0 -0
- {effspm-0.2.1 → effspm-0.2.2}/effspm/largehm/src/load_inst.cpp +0 -0
- {effspm-0.2.1 → effspm-0.2.2}/effspm/largehm/src/load_inst.hpp +0 -0
- {effspm-0.2.1 → effspm-0.2.2}/effspm/largehm/src/main.cpp +0 -0
- {effspm-0.2.1 → effspm-0.2.2}/effspm/largehm/src/utility.cpp +0 -0
- {effspm-0.2.1 → effspm-0.2.2}/effspm/largehm/src/utility.hpp +0 -0
- {effspm-0.2.1 → effspm-0.2.2}/effspm/largepp/src/freq_miner.cpp +0 -0
- {effspm-0.2.1 → effspm-0.2.2}/effspm/largepp/src/freq_miner.hpp +0 -0
- {effspm-0.2.1 → effspm-0.2.2}/effspm/largepp/src/load_inst.cpp +0 -0
- {effspm-0.2.1 → effspm-0.2.2}/effspm/largepp/src/load_inst.hpp +0 -0
- {effspm-0.2.1 → effspm-0.2.2}/effspm/largepp/src/main.cpp +0 -0
- {effspm-0.2.1 → effspm-0.2.2}/effspm/largepp/src/utility.cpp +0 -0
- {effspm-0.2.1 → effspm-0.2.2}/effspm/largepp/src/utility.hpp +0 -0
- {effspm-0.2.1 → effspm-0.2.2}/effspm/load_inst.cpp +0 -0
- {effspm-0.2.1 → effspm-0.2.2}/effspm/load_inst.hpp +0 -0
- {effspm-0.2.1 → effspm-0.2.2}/effspm/main.cpp +0 -0
- {effspm-0.2.1 → effspm-0.2.2}/effspm/utility.cpp +0 -0
- {effspm-0.2.1 → effspm-0.2.2}/effspm/utility.hpp +0 -0
- {effspm-0.2.1 → effspm-0.2.2}/effspm.egg-info/SOURCES.txt +0 -0
- {effspm-0.2.1 → effspm-0.2.2}/effspm.egg-info/dependency_links.txt +0 -0
- {effspm-0.2.1 → effspm-0.2.2}/effspm.egg-info/not-zip-safe +0 -0
- {effspm-0.2.1 → effspm-0.2.2}/effspm.egg-info/requires.txt +0 -0
- {effspm-0.2.1 → effspm-0.2.2}/effspm.egg-info/top_level.txt +0 -0
- {effspm-0.2.1 → effspm-0.2.2}/setup.cfg +0 -0
- {effspm-0.2.1 → effspm-0.2.2}/tests/test_basic.py +0 -0
|
@@ -31,25 +31,36 @@ bool Load_instance(std::string& items_file, double thresh) {
|
|
|
31
31
|
// std::cerr << "[HTMiner::Load_instance] called with file=\"" << items_file
|
|
32
32
|
// << "\" minsup=" << thresh << std::endl;
|
|
33
33
|
|
|
34
|
+
// ── RESET EVERYTHING BEFORE BUILDING ───────────────────────────────────
|
|
35
|
+
Tree.clear();
|
|
36
|
+
CTree.clear();
|
|
37
|
+
VTree.clear();
|
|
38
|
+
DFS.clear();
|
|
39
|
+
VDFS.clear();
|
|
40
|
+
N = 0;
|
|
41
|
+
M = 0;
|
|
42
|
+
L = 0;
|
|
43
|
+
E = 0;
|
|
44
|
+
itmset_exists = false;
|
|
45
|
+
|
|
34
46
|
std::clock_t kk = std::clock();
|
|
47
|
+
|
|
35
48
|
|
|
36
|
-
// Initialize root of Tree
|
|
49
|
+
// Initialize root of Tree (after reset)
|
|
37
50
|
Tree.emplace_back(0, 0, 0);
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
for (unsigned int i = 0; i < L; ++i)
|
|
51
|
+
Tree[0].itmset = 1;
|
|
52
|
+
{
|
|
53
|
+
std::vector<unsigned int> dummyAnc(L, 0);
|
|
54
|
+
std::vector<int> dummyItems;
|
|
55
|
+
CTree.emplace_back(dummyAnc, dummyItems);
|
|
56
|
+
VTree.emplace_back(); // calls VArc() default ctor
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// ─── Allocate DFS/VDFS to length L so that Add_vec can index them ───
|
|
60
|
+
DFS.reserve(L);
|
|
61
|
+
for (unsigned int i = 0; i < L; ++i)
|
|
50
62
|
DFS.emplace_back(-static_cast<int>(i) - 1);
|
|
51
|
-
|
|
52
|
-
VDFS.resize(L);
|
|
63
|
+
VDFS.resize(L);
|
|
53
64
|
|
|
54
65
|
if (pre_pro) {
|
|
55
66
|
// std::cerr << "[HTMiner::Load_instance] pre_pro flag is true; calling Preprocess" << std::endl;
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "effspm"
|
|
7
|
-
version = "0.2.
|
|
7
|
+
version = "0.2.2"
|
|
8
8
|
description = "Prefix‑Projection and other sequential pattern mining algorithms"
|
|
9
9
|
authors = [
|
|
10
10
|
{ name = "yeshu999", email = "vootlayeswanth20@gmail.com" }
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import time
|
|
2
|
-
from effspm import
|
|
2
|
+
from effspm import HTMiner
|
|
3
3
|
|
|
4
4
|
DATAFILE = "/Users/yeswanthvootla/Desktop/final_kosarak_s.txt"
|
|
5
5
|
OUTPUT_BASE = "/Users/yeswanthvootla/Desktop/final_kosarak_s_"
|
|
@@ -27,5 +27,5 @@ def run_and_report(name, fn):
|
|
|
27
27
|
if __name__ == "__main__":
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
run_and_report("
|
|
30
|
+
run_and_report("HTMiner",HTMiner)
|
|
31
31
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|