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.
Files changed (68) hide show
  1. {effspm-0.2.1/effspm.egg-info → effspm-0.2.2}/PKG-INFO +1 -1
  2. {effspm-0.2.1 → effspm-0.2.2}/effspm/htminer/src/load_inst.cpp +26 -15
  3. {effspm-0.2.1 → effspm-0.2.2/effspm.egg-info}/PKG-INFO +1 -1
  4. {effspm-0.2.1 → effspm-0.2.2}/pyproject.toml +1 -1
  5. {effspm-0.2.1 → effspm-0.2.2}/setup.py +1 -1
  6. {effspm-0.2.1 → effspm-0.2.2}/tests/test.py +2 -2
  7. {effspm-0.2.1 → effspm-0.2.2}/LICENSE +0 -0
  8. {effspm-0.2.1 → effspm-0.2.2}/MANIFEST.in +0 -0
  9. {effspm-0.2.1 → effspm-0.2.2}/README.md +0 -0
  10. {effspm-0.2.1 → effspm-0.2.2}/effspm/__init__.py +0 -0
  11. {effspm-0.2.1 → effspm-0.2.2}/effspm/_core.cpp +0 -0
  12. {effspm-0.2.1 → effspm-0.2.2}/effspm/_effspm.cpp +0 -0
  13. {effspm-0.2.1 → effspm-0.2.2}/effspm/btminer/src/build_mdd.cpp +0 -0
  14. {effspm-0.2.1 → effspm-0.2.2}/effspm/btminer/src/build_mdd.hpp +0 -0
  15. {effspm-0.2.1 → effspm-0.2.2}/effspm/btminer/src/freq_miner.cpp +0 -0
  16. {effspm-0.2.1 → effspm-0.2.2}/effspm/btminer/src/freq_miner.hpp +0 -0
  17. {effspm-0.2.1 → effspm-0.2.2}/effspm/btminer/src/load_inst.cpp +0 -0
  18. {effspm-0.2.1 → effspm-0.2.2}/effspm/btminer/src/load_inst.hpp +0 -0
  19. {effspm-0.2.1 → effspm-0.2.2}/effspm/btminer/src/main.cpp +0 -0
  20. {effspm-0.2.1 → effspm-0.2.2}/effspm/btminer/src/utility.cpp +0 -0
  21. {effspm-0.2.1 → effspm-0.2.2}/effspm/btminer/src/utility.hpp +0 -0
  22. {effspm-0.2.1 → effspm-0.2.2}/effspm/freq_miner.cpp +0 -0
  23. {effspm-0.2.1 → effspm-0.2.2}/effspm/freq_miner.hpp +0 -0
  24. {effspm-0.2.1 → effspm-0.2.2}/effspm/htminer/src/build_mdd.cpp +0 -0
  25. {effspm-0.2.1 → effspm-0.2.2}/effspm/htminer/src/build_mdd.hpp +0 -0
  26. {effspm-0.2.1 → effspm-0.2.2}/effspm/htminer/src/freq_miner.cpp +0 -0
  27. {effspm-0.2.1 → effspm-0.2.2}/effspm/htminer/src/freq_miner.hpp +0 -0
  28. {effspm-0.2.1 → effspm-0.2.2}/effspm/htminer/src/load_inst.hpp +0 -0
  29. {effspm-0.2.1 → effspm-0.2.2}/effspm/htminer/src/main.cpp +0 -0
  30. {effspm-0.2.1 → effspm-0.2.2}/effspm/htminer/src/utility.cpp +0 -0
  31. {effspm-0.2.1 → effspm-0.2.2}/effspm/htminer/src/utility.hpp +0 -0
  32. {effspm-0.2.1 → effspm-0.2.2}/effspm/largebm/src/build_mdd.cpp +0 -0
  33. {effspm-0.2.1 → effspm-0.2.2}/effspm/largebm/src/build_mdd.hpp +0 -0
  34. {effspm-0.2.1 → effspm-0.2.2}/effspm/largebm/src/freq_miner.cpp +0 -0
  35. {effspm-0.2.1 → effspm-0.2.2}/effspm/largebm/src/freq_miner.hpp +0 -0
  36. {effspm-0.2.1 → effspm-0.2.2}/effspm/largebm/src/load_inst.cpp +0 -0
  37. {effspm-0.2.1 → effspm-0.2.2}/effspm/largebm/src/load_inst.hpp +0 -0
  38. {effspm-0.2.1 → effspm-0.2.2}/effspm/largebm/src/main.cpp +0 -0
  39. {effspm-0.2.1 → effspm-0.2.2}/effspm/largebm/src/utility.cpp +0 -0
  40. {effspm-0.2.1 → effspm-0.2.2}/effspm/largebm/src/utility.hpp +0 -0
  41. {effspm-0.2.1 → effspm-0.2.2}/effspm/largehm/src/build_mdd.cpp +0 -0
  42. {effspm-0.2.1 → effspm-0.2.2}/effspm/largehm/src/build_mdd.hpp +0 -0
  43. {effspm-0.2.1 → effspm-0.2.2}/effspm/largehm/src/freq_miner.cpp +0 -0
  44. {effspm-0.2.1 → effspm-0.2.2}/effspm/largehm/src/freq_miner.hpp +0 -0
  45. {effspm-0.2.1 → effspm-0.2.2}/effspm/largehm/src/load_inst.cpp +0 -0
  46. {effspm-0.2.1 → effspm-0.2.2}/effspm/largehm/src/load_inst.hpp +0 -0
  47. {effspm-0.2.1 → effspm-0.2.2}/effspm/largehm/src/main.cpp +0 -0
  48. {effspm-0.2.1 → effspm-0.2.2}/effspm/largehm/src/utility.cpp +0 -0
  49. {effspm-0.2.1 → effspm-0.2.2}/effspm/largehm/src/utility.hpp +0 -0
  50. {effspm-0.2.1 → effspm-0.2.2}/effspm/largepp/src/freq_miner.cpp +0 -0
  51. {effspm-0.2.1 → effspm-0.2.2}/effspm/largepp/src/freq_miner.hpp +0 -0
  52. {effspm-0.2.1 → effspm-0.2.2}/effspm/largepp/src/load_inst.cpp +0 -0
  53. {effspm-0.2.1 → effspm-0.2.2}/effspm/largepp/src/load_inst.hpp +0 -0
  54. {effspm-0.2.1 → effspm-0.2.2}/effspm/largepp/src/main.cpp +0 -0
  55. {effspm-0.2.1 → effspm-0.2.2}/effspm/largepp/src/utility.cpp +0 -0
  56. {effspm-0.2.1 → effspm-0.2.2}/effspm/largepp/src/utility.hpp +0 -0
  57. {effspm-0.2.1 → effspm-0.2.2}/effspm/load_inst.cpp +0 -0
  58. {effspm-0.2.1 → effspm-0.2.2}/effspm/load_inst.hpp +0 -0
  59. {effspm-0.2.1 → effspm-0.2.2}/effspm/main.cpp +0 -0
  60. {effspm-0.2.1 → effspm-0.2.2}/effspm/utility.cpp +0 -0
  61. {effspm-0.2.1 → effspm-0.2.2}/effspm/utility.hpp +0 -0
  62. {effspm-0.2.1 → effspm-0.2.2}/effspm.egg-info/SOURCES.txt +0 -0
  63. {effspm-0.2.1 → effspm-0.2.2}/effspm.egg-info/dependency_links.txt +0 -0
  64. {effspm-0.2.1 → effspm-0.2.2}/effspm.egg-info/not-zip-safe +0 -0
  65. {effspm-0.2.1 → effspm-0.2.2}/effspm.egg-info/requires.txt +0 -0
  66. {effspm-0.2.1 → effspm-0.2.2}/effspm.egg-info/top_level.txt +0 -0
  67. {effspm-0.2.1 → effspm-0.2.2}/setup.cfg +0 -0
  68. {effspm-0.2.1 → effspm-0.2.2}/tests/test_basic.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: effspm
3
- Version: 0.2.1
3
+ Version: 0.2.2
4
4
  Summary: Prefix‑Projection and other sequential pattern mining algorithms
5
5
  Author: Yeswanth Vootla
6
6
  Author-email: yeshu999 <vootlayeswanth20@gmail.com>
@@ -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
- Tree[0].itmset = 1;
39
- {
40
- std::vector<unsigned int> dummyAnc(L, 0);
41
- std::vector<int> dummyItems;
42
- CTree.emplace_back(dummyAnc, dummyItems);
43
- VTree.emplace_back(); // calls VArc() default ctor
44
- }
45
-
46
- // ─── Initialize DFS and VDFS to length L so Add_vec can index them
47
- DFS.clear();
48
- DFS.reserve(L);
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
- VDFS.clear();
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;
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: effspm
3
- Version: 0.2.1
3
+ Version: 0.2.2
4
4
  Summary: Prefix‑Projection and other sequential pattern mining algorithms
5
5
  Author: Yeswanth Vootla
6
6
  Author-email: yeshu999 <vootlayeswanth20@gmail.com>
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "effspm"
7
- version = "0.2.1"
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" }
@@ -60,7 +60,7 @@ ext_modules = [
60
60
 
61
61
  setup(
62
62
  name="effspm",
63
- version="0.2.1",
63
+ version="0.2.2",
64
64
  description="Efficient Sequential Pattern Mining Library",
65
65
  author="Yeswanth Vootla",
66
66
  packages=["effspm"],
@@ -1,5 +1,5 @@
1
1
  import time
2
- from effspm import LargeBTMiner
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("LargeBTMiner",LargeBTMiner)
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