effspm 0.1.9__tar.gz → 0.1.11__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.

Potentially problematic release.


This version of effspm might be problematic. Click here for more details.

Files changed (35) hide show
  1. {effspm-0.1.9/effspm.egg-info → effspm-0.1.11}/PKG-INFO +1 -1
  2. {effspm-0.1.9 → effspm-0.1.11}/effspm/btminer/src/main.cpp +2 -2
  3. {effspm-0.1.9 → effspm-0.1.11}/effspm/btminer/src/utility.cpp +5 -1
  4. {effspm-0.1.9 → effspm-0.1.11}/effspm/btminer/src/utility.hpp +6 -3
  5. {effspm-0.1.9 → effspm-0.1.11/effspm.egg-info}/PKG-INFO +1 -1
  6. {effspm-0.1.9 → effspm-0.1.11}/pyproject.toml +1 -1
  7. {effspm-0.1.9 → effspm-0.1.11}/setup.py +1 -1
  8. effspm-0.1.11/tests/test.py +3 -0
  9. effspm-0.1.9/tests/test.py +0 -22
  10. {effspm-0.1.9 → effspm-0.1.11}/LICENSE +0 -0
  11. {effspm-0.1.9 → effspm-0.1.11}/MANIFEST.in +0 -0
  12. {effspm-0.1.9 → effspm-0.1.11}/README.md +0 -0
  13. {effspm-0.1.9 → effspm-0.1.11}/effspm/__init__.py +0 -0
  14. {effspm-0.1.9 → effspm-0.1.11}/effspm/_core.cpp +0 -0
  15. {effspm-0.1.9 → effspm-0.1.11}/effspm/_effspm.cpp +0 -0
  16. {effspm-0.1.9 → effspm-0.1.11}/effspm/btminer/src/build_mdd.cpp +0 -0
  17. {effspm-0.1.9 → effspm-0.1.11}/effspm/btminer/src/build_mdd.hpp +0 -0
  18. {effspm-0.1.9 → effspm-0.1.11}/effspm/btminer/src/freq_miner.cpp +0 -0
  19. {effspm-0.1.9 → effspm-0.1.11}/effspm/btminer/src/freq_miner.hpp +0 -0
  20. {effspm-0.1.9 → effspm-0.1.11}/effspm/btminer/src/load_inst.cpp +0 -0
  21. {effspm-0.1.9 → effspm-0.1.11}/effspm/btminer/src/load_inst.hpp +0 -0
  22. {effspm-0.1.9 → effspm-0.1.11}/effspm/freq_miner.cpp +0 -0
  23. {effspm-0.1.9 → effspm-0.1.11}/effspm/freq_miner.hpp +0 -0
  24. {effspm-0.1.9 → effspm-0.1.11}/effspm/load_inst.cpp +0 -0
  25. {effspm-0.1.9 → effspm-0.1.11}/effspm/load_inst.hpp +0 -0
  26. {effspm-0.1.9 → effspm-0.1.11}/effspm/main.cpp +0 -0
  27. {effspm-0.1.9 → effspm-0.1.11}/effspm/utility.cpp +0 -0
  28. {effspm-0.1.9 → effspm-0.1.11}/effspm/utility.hpp +0 -0
  29. {effspm-0.1.9 → effspm-0.1.11}/effspm.egg-info/SOURCES.txt +0 -0
  30. {effspm-0.1.9 → effspm-0.1.11}/effspm.egg-info/dependency_links.txt +0 -0
  31. {effspm-0.1.9 → effspm-0.1.11}/effspm.egg-info/not-zip-safe +0 -0
  32. {effspm-0.1.9 → effspm-0.1.11}/effspm.egg-info/requires.txt +0 -0
  33. {effspm-0.1.9 → effspm-0.1.11}/effspm.egg-info/top_level.txt +0 -0
  34. {effspm-0.1.9 → effspm-0.1.11}/setup.cfg +0 -0
  35. {effspm-0.1.9 → effspm-0.1.11}/tests/test_basic.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: effspm
3
- Version: 0.1.9
3
+ Version: 0.1.11
4
4
  Summary: Prefix‑Projection and other sequential pattern mining algorithms
5
5
  Author: Yeswanth Vootla
6
6
  Author-email: yeshu999 <vootlayeswanth20@gmail.com>
@@ -14,8 +14,8 @@ extern std::string out_file;
14
14
  extern bool b_disp, b_write, use_dic, just_build;
15
15
  extern clock_t start_time;
16
16
 
17
- bool pre_pro = true; // This one is only used in main
18
- int N_mult = 1, M_mult = 1; // Local to main
17
+ // This one is only used in main
18
+ // Local to main
19
19
  int time_limit = 30 * 3600; // Local to main
20
20
  std::string folder;
21
21
 
@@ -6,6 +6,7 @@
6
6
  namespace btminer {
7
7
 
8
8
  // === Global Variables ===
9
+ bool use_dic = false;
9
10
  std::vector<std::vector<int>> items;
10
11
  bool use_list = false;
11
12
  bool just_build = false;
@@ -14,7 +15,10 @@ std::vector<Pattern> DFS;
14
15
  clock_t start_time;
15
16
  bool b_disp = false, b_write = false;
16
17
  std::string out_file;
17
- int time_limit = 30 * 3600; // ✅ This was missing before
18
+
19
+ bool pre_pro = true;
20
+ int N_mult = 1, M_mult = 1;
21
+ int time_limit = 30 * 3600;
18
22
 
19
23
  // === Function Definitions ===
20
24
 
@@ -4,8 +4,8 @@
4
4
  #include <ctime>
5
5
  #include <string>
6
6
  #include "build_mdd.hpp"
7
- #include "freq_miner.hpp" // Required for Pattern
8
- #include "load_inst.hpp" // Ensures consistency across global usage
7
+ #include "freq_miner.hpp"
8
+ #include "load_inst.hpp"
9
9
 
10
10
  namespace btminer {
11
11
 
@@ -15,7 +15,7 @@ int find_ID(std::vector<int>& vec, int itm);
15
15
  float give_time(clock_t kk);
16
16
  bool check_parent(int cur_arc, int str_pnt, int start, std::vector<int>& strpnt_vec);
17
17
 
18
- // === Global variables for Python binding support ===
18
+ // === Global variables (DECLARATIONS ONLY) ===
19
19
  extern std::vector<std::vector<int>> items;
20
20
  extern bool use_list;
21
21
  extern bool just_build;
@@ -24,6 +24,9 @@ extern std::vector<Pattern> DFS;
24
24
  extern clock_t start_time;
25
25
  extern bool b_disp, b_write;
26
26
  extern std::string out_file;
27
+ extern bool pre_pro;
28
+ extern int N_mult, M_mult;
29
+ extern int time_limit;
27
30
 
28
31
  // === Python-friendly accessors ===
29
32
  inline void ClearCollected() {
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: effspm
3
- Version: 0.1.9
3
+ Version: 0.1.11
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.1.9"
7
+ version = "0.1.11"
8
8
  description = "Prefix‑Projection and other sequential pattern mining algorithms"
9
9
  authors = [
10
10
  { name = "yeshu999", email = "vootlayeswanth20@gmail.com" }
@@ -27,7 +27,7 @@ ext_modules = [
27
27
 
28
28
  setup(
29
29
  name="effspm",
30
- version="0.1.9",
30
+ version="0.1.11",
31
31
  description="Efficient Sequential Pattern Mining Library",
32
32
  author="Yeswanth Vootla",
33
33
  packages=["effspm"],
@@ -0,0 +1,3 @@
1
+ from effspm import PrefixProjection, BTMiner
2
+
3
+ print("[OK] effspm loaded successfully")
@@ -1,22 +0,0 @@
1
- import sys
2
- from effspm import mine
3
-
4
- def main():
5
- if len(sys.argv) != 3:
6
- print(f"Usage: {sys.argv[0]} <data_file> <minsup>")
7
- sys.exit(1)
8
-
9
- data_file = sys.argv[1]
10
- try:
11
- minsup = float(sys.argv[2])
12
- except ValueError:
13
- print("minsup must be a number (e.g. 0.01)")
14
- sys.exit(1)
15
-
16
- patterns = mine(data_file, minsup)
17
- print(f"Found {len(patterns)} patterns\n")
18
- for pat in patterns[:10]:
19
- print(pat)
20
-
21
- if __name__ == "__main__":
22
- main()
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