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.
- {effspm-0.1.9/effspm.egg-info → effspm-0.1.11}/PKG-INFO +1 -1
- {effspm-0.1.9 → effspm-0.1.11}/effspm/btminer/src/main.cpp +2 -2
- {effspm-0.1.9 → effspm-0.1.11}/effspm/btminer/src/utility.cpp +5 -1
- {effspm-0.1.9 → effspm-0.1.11}/effspm/btminer/src/utility.hpp +6 -3
- {effspm-0.1.9 → effspm-0.1.11/effspm.egg-info}/PKG-INFO +1 -1
- {effspm-0.1.9 → effspm-0.1.11}/pyproject.toml +1 -1
- {effspm-0.1.9 → effspm-0.1.11}/setup.py +1 -1
- effspm-0.1.11/tests/test.py +3 -0
- effspm-0.1.9/tests/test.py +0 -22
- {effspm-0.1.9 → effspm-0.1.11}/LICENSE +0 -0
- {effspm-0.1.9 → effspm-0.1.11}/MANIFEST.in +0 -0
- {effspm-0.1.9 → effspm-0.1.11}/README.md +0 -0
- {effspm-0.1.9 → effspm-0.1.11}/effspm/__init__.py +0 -0
- {effspm-0.1.9 → effspm-0.1.11}/effspm/_core.cpp +0 -0
- {effspm-0.1.9 → effspm-0.1.11}/effspm/_effspm.cpp +0 -0
- {effspm-0.1.9 → effspm-0.1.11}/effspm/btminer/src/build_mdd.cpp +0 -0
- {effspm-0.1.9 → effspm-0.1.11}/effspm/btminer/src/build_mdd.hpp +0 -0
- {effspm-0.1.9 → effspm-0.1.11}/effspm/btminer/src/freq_miner.cpp +0 -0
- {effspm-0.1.9 → effspm-0.1.11}/effspm/btminer/src/freq_miner.hpp +0 -0
- {effspm-0.1.9 → effspm-0.1.11}/effspm/btminer/src/load_inst.cpp +0 -0
- {effspm-0.1.9 → effspm-0.1.11}/effspm/btminer/src/load_inst.hpp +0 -0
- {effspm-0.1.9 → effspm-0.1.11}/effspm/freq_miner.cpp +0 -0
- {effspm-0.1.9 → effspm-0.1.11}/effspm/freq_miner.hpp +0 -0
- {effspm-0.1.9 → effspm-0.1.11}/effspm/load_inst.cpp +0 -0
- {effspm-0.1.9 → effspm-0.1.11}/effspm/load_inst.hpp +0 -0
- {effspm-0.1.9 → effspm-0.1.11}/effspm/main.cpp +0 -0
- {effspm-0.1.9 → effspm-0.1.11}/effspm/utility.cpp +0 -0
- {effspm-0.1.9 → effspm-0.1.11}/effspm/utility.hpp +0 -0
- {effspm-0.1.9 → effspm-0.1.11}/effspm.egg-info/SOURCES.txt +0 -0
- {effspm-0.1.9 → effspm-0.1.11}/effspm.egg-info/dependency_links.txt +0 -0
- {effspm-0.1.9 → effspm-0.1.11}/effspm.egg-info/not-zip-safe +0 -0
- {effspm-0.1.9 → effspm-0.1.11}/effspm.egg-info/requires.txt +0 -0
- {effspm-0.1.9 → effspm-0.1.11}/effspm.egg-info/top_level.txt +0 -0
- {effspm-0.1.9 → effspm-0.1.11}/setup.cfg +0 -0
- {effspm-0.1.9 → effspm-0.1.11}/tests/test_basic.py +0 -0
|
@@ -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
|
-
|
|
18
|
-
|
|
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
|
-
|
|
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"
|
|
8
|
-
#include "load_inst.hpp"
|
|
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
|
|
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() {
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "effspm"
|
|
7
|
-
version = "0.1.
|
|
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" }
|
effspm-0.1.9/tests/test.py
DELETED
|
@@ -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
|
|
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
|