effspm 0.1.7__cp312-cp312-macosx_11_0_arm64.whl → 0.2.6__cp312-cp312-macosx_11_0_arm64.whl

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 (51) hide show
  1. effspm/__init__.py +10 -2
  2. effspm/_effspm.cpp +609 -0
  3. effspm/_effspm.cpython-312-darwin.so +0 -0
  4. effspm/btminer/src/build_mdd.cpp +63 -0
  5. effspm/btminer/src/build_mdd.hpp +40 -0
  6. effspm/btminer/src/freq_miner.cpp +179 -0
  7. effspm/btminer/src/freq_miner.hpp +39 -0
  8. effspm/btminer/src/load_inst.cpp +200 -0
  9. effspm/btminer/src/load_inst.hpp +25 -0
  10. effspm/btminer/src/utility.cpp +65 -0
  11. effspm/btminer/src/utility.hpp +40 -0
  12. effspm/freq_miner.hpp +4 -1
  13. effspm/htminer/src/build_mdd.cpp +192 -0
  14. effspm/htminer/src/build_mdd.hpp +64 -0
  15. effspm/htminer/src/freq_miner.cpp +350 -0
  16. effspm/htminer/src/freq_miner.hpp +60 -0
  17. effspm/htminer/src/load_inst.cpp +394 -0
  18. effspm/htminer/src/load_inst.hpp +23 -0
  19. effspm/htminer/src/utility.cpp +72 -0
  20. effspm/htminer/src/utility.hpp +77 -0
  21. effspm/largebm/src/build_mdd.cpp +137 -0
  22. effspm/largebm/src/build_mdd.hpp +47 -0
  23. effspm/largebm/src/freq_miner.cpp +349 -0
  24. effspm/largebm/src/freq_miner.hpp +48 -0
  25. effspm/largebm/src/load_inst.cpp +230 -0
  26. effspm/largebm/src/load_inst.hpp +45 -0
  27. effspm/largebm/src/utility.cpp +45 -0
  28. effspm/largebm/src/utility.hpp +18 -0
  29. effspm/largehm/src/build_mdd.cpp +174 -0
  30. effspm/largehm/src/build_mdd.hpp +93 -0
  31. effspm/largehm/src/freq_miner.cpp +445 -0
  32. effspm/largehm/src/freq_miner.hpp +77 -0
  33. effspm/largehm/src/load_inst.cpp +357 -0
  34. effspm/largehm/src/load_inst.hpp +64 -0
  35. effspm/largehm/src/utility.cpp +38 -0
  36. effspm/largehm/src/utility.hpp +29 -0
  37. effspm/largepp/src/freq_miner.cpp +170 -0
  38. effspm/largepp/src/freq_miner.hpp +43 -0
  39. effspm/largepp/src/load_inst.cpp +219 -0
  40. effspm/largepp/src/load_inst.hpp +28 -0
  41. effspm/largepp/src/utility.cpp +34 -0
  42. effspm/largepp/src/utility.hpp +21 -0
  43. effspm/load_inst.hpp +2 -1
  44. effspm-0.2.6.dist-info/METADATA +237 -0
  45. effspm-0.2.6.dist-info/RECORD +53 -0
  46. {effspm-0.1.7.dist-info → effspm-0.2.6.dist-info}/WHEEL +1 -2
  47. effspm/_core.cpython-312-darwin.so +0 -0
  48. effspm-0.1.7.dist-info/METADATA +0 -38
  49. effspm-0.1.7.dist-info/RECORD +0 -14
  50. {effspm-0.1.7.dist-info → effspm-0.2.6.dist-info}/licenses/LICENSE +0 -0
  51. {effspm-0.1.7.dist-info → effspm-0.2.6.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,219 @@
1
+ #include <iostream>
2
+ #include <sstream>
3
+ #include <algorithm>
4
+ #include <cmath>
5
+ #include "load_inst.hpp"
6
+ #include "freq_miner.hpp"
7
+ #include "utility.hpp"
8
+
9
+ namespace largepp { // ─── BEGIN namespace ─────────────────────
10
+ using namespace std;
11
+
12
+ /* ------------------------------------------------------------------
13
+ * Global definitions (match the externs in load_inst.hpp)
14
+ * ---------------------------------------------------------------- */
15
+ unsigned int M = 0, L = 0;
16
+ unsigned long long N = 0, E = 0;
17
+ double theta = 0.01;
18
+ vector<vector<int>> items;
19
+ vector<Pattern> DFS;
20
+ vector<int> item_dic;
21
+
22
+ /* Forward decls for helper routines in this file */
23
+ static bool Load_items(string& inst);
24
+ static void Load_items_pre(string& inst);
25
+ static bool Preprocess(string& inst, double thresh);
26
+
27
+ /* ==================================================================
28
+ * MAIN ENTRY — load from disk
29
+ * ================================================================= */
30
+ bool Load_instance(string& items_file, double thresh)
31
+ {
32
+ clock_t kk = clock();
33
+
34
+ if (pre_pro) {
35
+ if (!Preprocess(items_file, thresh)) return false;
36
+
37
+ cout << "\nPreprocess done in " << give_time(clock() - kk) << " seconds\n\n";
38
+
39
+ DFS.reserve(L);
40
+ for (unsigned int i = 0; i < L; ++i)
41
+ DFS.emplace_back(-int(i) - 1);
42
+
43
+ kk = clock();
44
+ Load_items_pre(items_file);
45
+ N = items.size();
46
+ }
47
+ else if (!Load_items(items_file))
48
+ return false;
49
+ else
50
+ theta = (thresh < 1.0) ? ceil(thresh * N) : thresh;
51
+
52
+ cout << "\nMDD Database built in " << give_time(clock() - kk) << " seconds\n\n";
53
+ cout << "Found " << N << " sequence, with max line len " << M
54
+ << ", and " << L << " items, and " << E << " enteries\n";
55
+
56
+ return true;
57
+ }
58
+
59
+ /* ==================================================================
60
+ * ALT ENTRY — load directly from a Python list of lists
61
+ * ================================================================= */
62
+ void Load_py(const pybind11::object& data, double thresh)
63
+ {
64
+ items = data.cast<vector<vector<int>>>();
65
+ N = items.size();
66
+
67
+ int max_id = 0;
68
+ M = 0; E = 0;
69
+ for (auto& seq : items) {
70
+ M = max<unsigned int>(M, seq.size());
71
+ E += seq.size();
72
+ for (int x : seq)
73
+ max_id = max(max_id, abs(x));
74
+ }
75
+ L = max_id;
76
+ theta = (thresh < 1.0) ? ceil(thresh * N) : thresh;
77
+
78
+ DFS.clear();
79
+ DFS.reserve(L);
80
+ for (unsigned int i = 0; i < L; ++i)
81
+ DFS.emplace_back(-int(i) - 1);
82
+ }
83
+
84
+ /* =================================================================
85
+ * The professor’s original helpers — untouched
86
+ * ================================================================= */
87
+ static bool Preprocess(string& inst, double thresh)
88
+ {
89
+ ifstream file(inst);
90
+ vector<unsigned long long> freq(1000000), counted(1000000, 0);
91
+
92
+ if (file.good()) {
93
+ string line; int ditem;
94
+ while (getline(file, line) && give_time(clock() - start_time) < time_limit) {
95
+ ++N;
96
+ istringstream word(line);
97
+ string itm;
98
+ while (word >> itm) {
99
+ ditem = stoi(itm);
100
+ L = max<unsigned int>(L, abs(ditem));
101
+
102
+ if (freq.size() < L) {
103
+ freq.resize(L, 0);
104
+ counted.resize(L, 0);
105
+ }
106
+ if (counted[abs(ditem) - 1] != N) {
107
+ ++freq[abs(ditem) - 1];
108
+ counted[abs(ditem) - 1] = N;
109
+ }
110
+ }
111
+ }
112
+ } else {
113
+ cout << "!!!!!! No such file exists: " << inst << " !!!!!!\n";
114
+ return false;
115
+ }
116
+
117
+ theta = (thresh < 1.0) ? ceil(thresh * N) : thresh;
118
+
119
+ int real_L = 0;
120
+ item_dic.assign(L, -1);
121
+ for (unsigned int i = 0; i < L; ++i)
122
+ if (freq[i] >= theta) item_dic[i] = ++real_L;
123
+
124
+ cout << "Original number of items: " << L
125
+ << " Reduced to: " << real_L << '\n';
126
+
127
+ L = real_L;
128
+ N = 0;
129
+ return true;
130
+ }
131
+
132
+ static void Load_items_pre(string& inst)
133
+ {
134
+ ifstream file(inst);
135
+
136
+ if (!file.good()) return;
137
+ string line; int size_m, ditem; bool empty_seq = false;
138
+
139
+ while (getline(file, line) && give_time(clock() - start_time) < time_limit) {
140
+ vector<bool> counted(L, 0);
141
+ istringstream word(line);
142
+
143
+ if (!empty_seq) items.emplace_back();
144
+ string itm; size_m = 0; bool sgn = false; empty_seq = true;
145
+
146
+ while (word >> itm) {
147
+ ditem = stoi(itm);
148
+
149
+ if (item_dic[abs(ditem) - 1] == -1) {
150
+ if (!sgn) sgn = ditem < 0;
151
+ continue;
152
+ } else {
153
+ ditem = (ditem > 0)
154
+ ? item_dic[ditem - 1]
155
+ : -item_dic[-ditem - 1];
156
+ }
157
+ empty_seq = false;
158
+
159
+ if (sgn) { if (ditem > 0) ditem = -ditem; sgn = false; }
160
+
161
+ items.back().push_back(ditem);
162
+
163
+ if (!counted[abs(ditem) - 1] && !just_build) {
164
+ DFS[abs(ditem) - 1].seq_ID.push_back(items.size() - 1);
165
+ DFS[abs(ditem) - 1].str_pnt.push_back(items.back().size() - 1);
166
+ ++DFS[abs(ditem) - 1].freq;
167
+ counted[abs(ditem) - 1] = true;
168
+ }
169
+ ++size_m;
170
+ }
171
+ if (empty_seq) continue;
172
+
173
+ ++N; E += size_m; M = max<unsigned int>(M, size_m);
174
+ }
175
+ }
176
+
177
+ static bool Load_items(string& inst)
178
+ {
179
+ ifstream file(inst);
180
+ if (!file.good()) {
181
+ cout << "!!!!!! No such file exists: " << inst << " !!!!!!\n";
182
+ return false;
183
+ }
184
+
185
+ string line; int size_m, ditem;
186
+ while (getline(file, line) && give_time(clock() - start_time) < time_limit) {
187
+ ++N;
188
+ vector<bool> counted(L, 0);
189
+ istringstream word(line);
190
+
191
+ items.emplace_back();
192
+ string itm; size_m = 0;
193
+
194
+ while (word >> itm) {
195
+ ditem = stoi(itm);
196
+ if (L < abs(ditem)) {
197
+ L = abs(ditem);
198
+ while (DFS.size() < L) {
199
+ DFS.emplace_back(-int(DFS.size()) - 1);
200
+ counted.push_back(0);
201
+ }
202
+ }
203
+ items.back().push_back(ditem);
204
+
205
+ if (!counted[abs(ditem) - 1] && !just_build) {
206
+ DFS[abs(ditem) - 1].seq_ID.push_back(items.size() - 1);
207
+ DFS[abs(ditem) - 1].str_pnt.push_back(items.back().size() - 1);
208
+ ++DFS[abs(ditem) - 1].freq;
209
+ counted[abs(ditem) - 1] = true;
210
+ }
211
+ ++size_m;
212
+ }
213
+ E += size_m;
214
+ M = max<unsigned int>(M, size_m);
215
+ }
216
+ return true;
217
+ }
218
+
219
+ } // namespace largepp // ─── END namespace ──────────────────────
@@ -0,0 +1,28 @@
1
+ #pragma once
2
+
3
+ #include <vector>
4
+ #include <string>
5
+ #include <fstream>
6
+ #include <map>
7
+ #include <pybind11/pybind11.h>
8
+
9
+ namespace largepp {
10
+ using namespace std;
11
+
12
+ // ───── public entry points ───────────────────────────────────────
13
+ bool Load_instance(string& items_file, double thresh);
14
+ void Load_py(const pybind11::object& py_data, double thresh);
15
+
16
+ // ───── shared state (defined once in load_inst.cpp) ──────────────
17
+ extern vector<vector<int>> items; // encoded database
18
+ extern string out_file;
19
+
20
+ extern bool b_disp, b_write, use_dic, just_build, ovr_count, pre_pro;
21
+
22
+ extern unsigned int M, L, time_limit;
23
+ extern unsigned long long N; // # sequences
24
+ extern double theta; // support threshold
25
+ extern unsigned long long E; // total entries
26
+ extern clock_t start_time;
27
+
28
+ } // namespace largepp
@@ -0,0 +1,34 @@
1
+ #include "utility.hpp"
2
+ #include <string>
3
+
4
+ namespace largepp {
5
+
6
+ // ─── instantiate the globals declared in the header ─────────────
7
+ bool b_disp = false;
8
+ bool b_write = false;
9
+ bool use_dic = false;
10
+ bool just_build = false;
11
+ bool ovr_count = false;
12
+ bool pre_pro = false;
13
+ bool use_list = true; // large-prefix flag the binder toggles
14
+ unsigned int time_limit = 36000;
15
+ std::string out_file;
16
+ std::vector<std::vector<int>> collected; // mined pattern output
17
+
18
+
19
+ std::clock_t start_time = 0;
20
+
21
+ // ─── helper implementations ─────────────────────────────────────
22
+ void ClearCollected() { collected.clear(); }
23
+
24
+ const std::vector<std::vector<int>>& GetCollected()
25
+ {
26
+ return collected;
27
+ }
28
+
29
+ double give_time(std::clock_t ticks)
30
+ {
31
+ return static_cast<double>(ticks) / CLOCKS_PER_SEC;
32
+ }
33
+
34
+ } // namespace largepp
@@ -0,0 +1,21 @@
1
+ #pragma once
2
+ #include <vector>
3
+ #include <ctime>
4
+ #include <string>
5
+
6
+ namespace largepp {
7
+
8
+ // Flag & option globals (only declare here – actual values in utility.cpp)
9
+ extern bool b_disp, b_write, use_dic, just_build, ovr_count, pre_pro;
10
+ extern bool use_list; // ← NEW (large-prefix needs this)
11
+ extern unsigned int time_limit;
12
+
13
+ // Pattern buffer that _effspm.cpp_ returns to Python
14
+ extern std::vector<std::vector<int>> collected;
15
+
16
+ // Helper functions every source file uses
17
+ void ClearCollected(); // wipe buffer
18
+ const std::vector<std::vector<int>>& GetCollected(); // read buffer
19
+ double give_time(std::clock_t ticks); // secs from clocks
20
+
21
+ } // namespace largepp
effspm/load_inst.hpp CHANGED
@@ -11,7 +11,8 @@ using namespace std;
11
11
 
12
12
  // ------------------------------------------------------------
13
13
  // forward declare Pattern (defined in freq_miner.hpp)
14
- struct Pattern;
14
+ class Pattern;
15
+
15
16
 
16
17
  // Main entrypoint: load your file on disk into 'items', build DFS, theta, etc.
17
18
  bool Load_instance(string &items_file, double thresh);
@@ -0,0 +1,237 @@
1
+ Metadata-Version: 2.4
2
+ Name: effspm
3
+ Version: 0.2.6
4
+ Summary: Prefix‑Projection and other sequential pattern mining algorithms
5
+ Author: Yeswanth Vootla
6
+ Author-email: yeshu999 <vootlayeswanth20@gmail.com>
7
+ License: Apache License
8
+ Version 2.0, January 2004
9
+ http://www.apache.org/licenses/
10
+
11
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
12
+
13
+ 1. Definitions.
14
+
15
+ "License" shall mean the terms and conditions for use, reproduction,
16
+ and distribution as defined by Sections 1 through 9 of this document.
17
+
18
+ "Licensor" shall mean the copyright owner or entity authorized by
19
+ the copyright owner that is granting the License.
20
+
21
+ "Legal Entity" shall mean the union of the acting entity and all
22
+ other entities that control, are controlled by, or are under common
23
+ control with that entity. For the purposes of this definition,
24
+ "control" means (i) the power, direct or indirect, to cause the
25
+ direction or management of such entity, whether by contract or
26
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
27
+ outstanding shares, or (iii) beneficial ownership of such entity.
28
+
29
+ "You" (or "Your") shall mean an individual or Legal Entity
30
+ exercising permissions granted by this License.
31
+
32
+ "Source" form shall mean the preferred form for making modifications,
33
+ including but not limited to software source code, documentation
34
+ source, and configuration files.
35
+
36
+ "Object" form shall mean any form resulting from mechanical
37
+ transformation or translation of a Source form, including but
38
+ not limited to compiled object code, generated documentation,
39
+ and conversions to other media types.
40
+
41
+ "Work" shall mean the work of authorship, whether in Source or
42
+ Object form, made available under the License, as indicated by a
43
+ copyright notice that is included in or attached to the work
44
+ (an example is provided in the Appendix below).
45
+
46
+ "Derivative Works" shall mean any work, whether in Source or Object
47
+ form, that is based on (or derived from) the Work and for which the
48
+ editorial revisions, annotations, elaborations, or other modifications
49
+ represent, as a whole, an original work of authorship. For the purposes
50
+ of this License, Derivative Works shall not include works that remain
51
+ separable from, or merely link (or bind by name) to the interfaces of,
52
+ the Work and Derivative Works thereof.
53
+
54
+ "Contribution" shall mean any work of authorship, including
55
+ the original version of the Work and any modifications or additions
56
+ to that Work or Derivative Works thereof, that is intentionally
57
+ submitted to Licensor for inclusion in the Work by the copyright owner
58
+ or by an individual or Legal Entity authorized to submit on behalf of
59
+ the copyright owner. For the purposes of this definition, "submitted"
60
+ means any form of electronic, verbal, or written communication sent
61
+ to the Licensor or its representatives, including but not limited to
62
+ communication on electronic mailing lists, source code control systems,
63
+ and issue tracking systems that are managed by, or on behalf of, the
64
+ Licensor for the purpose of discussing and improving the Work, but
65
+ excluding communication that is conspicuously marked or otherwise
66
+ designated in writing by the copyright owner as "Not a Contribution."
67
+
68
+ "Contributor" shall mean Licensor and any individual or Legal Entity
69
+ on behalf of whom a Contribution has been received by Licensor and
70
+ subsequently incorporated within the Work.
71
+
72
+ 2. Grant of Copyright License. Subject to the terms and conditions of
73
+ this License, each Contributor hereby grants to You a perpetual,
74
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
75
+ copyright license to reproduce, prepare Derivative Works of,
76
+ publicly display, publicly perform, sublicense, and distribute the
77
+ Work and such Derivative Works in Source or Object form.
78
+
79
+ 3. Grant of Patent License. Subject to the terms and conditions of
80
+ this License, each Contributor hereby grants to You a perpetual,
81
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
82
+ (except as stated in this section) patent license to make, have made,
83
+ use, offer to sell, sell, import, and otherwise transfer the Work,
84
+ where such license applies only to those patent claims licensable
85
+ by such Contributor that are necessarily infringed by their
86
+ Contribution(s) alone or by combination of their Contribution(s)
87
+ with the Work to which such Contribution(s) was submitted. If You
88
+ institute patent litigation against any entity (including a
89
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
90
+ or a Contribution incorporated within the Work constitutes direct
91
+ or contributory patent infringement, then any patent licenses
92
+ granted to You under this License for that Work shall terminate
93
+ as of the date such litigation is filed.
94
+
95
+ 4. Redistribution. You may reproduce and distribute copies of the
96
+ Work or Derivative Works thereof in any medium, with or without
97
+ modifications, and in Source or Object form, provided that You
98
+ meet the following conditions:
99
+
100
+ (a) You must give any other recipients of the Work or
101
+ Derivative Works a copy of this License; and
102
+
103
+ (b) You must cause any modified files to carry prominent notices
104
+ stating that You changed the files; and
105
+
106
+ (c) You must retain, in the Source form of any Derivative Works
107
+ that You distribute, all copyright, patent, trademark, and
108
+ attribution notices from the Source form of the Work,
109
+ excluding those notices that do not pertain to any part of
110
+ the Derivative Works; and
111
+
112
+ (d) If the Work includes a "NOTICE" text file as part of its
113
+ distribution, then any Derivative Works that You distribute must
114
+ include a readable copy of the attribution notices contained
115
+ within such NOTICE file, excluding those notices that do not
116
+ pertain to any part of the Derivative Works, in at least one
117
+ of the following places: within a NOTICE text file distributed
118
+ as part of the Derivative Works; within the Source form or
119
+ documentation, if provided along with the Derivative Works; or,
120
+ within a display generated by the Derivative Works, if and
121
+ wherever such third-party notices normally appear. The contents
122
+ of the NOTICE file are for informational purposes only and
123
+ do not modify the License. You may add Your own attribution
124
+ notices within Derivative Works that You distribute, alongside
125
+ or as an addendum to the NOTICE text from the Work, provided
126
+ that such additional attribution notices cannot be construed
127
+ as modifying the License.
128
+
129
+ You may add Your own copyright statement to Your modifications and
130
+ may provide additional or different license terms and conditions
131
+ for use, reproduction, or distribution of Your modifications, or
132
+ for any such Derivative Works as a whole, provided Your use,
133
+ reproduction, and distribution of the Work otherwise complies with
134
+ the conditions stated in this License.
135
+
136
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
137
+ any Contribution intentionally submitted for inclusion in the Work
138
+ by You to the Licensor shall be under the terms and conditions of
139
+ this License, without any additional terms or conditions.
140
+ Notwithstanding the above, nothing herein shall supersede or modify
141
+ the terms of any separate license agreement you may have executed
142
+ with Licensor regarding such Contributions.
143
+
144
+ 6. Trademarks. This License does not grant permission to use the trade
145
+ names, trademarks, service marks, or product names of the Licensor,
146
+ except as required for reasonable and customary use in describing the
147
+ origin of the Work and reproducing the content of the NOTICE file.
148
+
149
+ 7. Disclaimer of Warranty. Unless required by applicable law or
150
+ agreed to in writing, Licensor provides the Work (and each
151
+ Contributor provides its Contributions) on an "AS IS" BASIS,
152
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
153
+ implied, including, without limitation, any warranties or conditions
154
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
155
+ PARTICULAR PURPOSE. You are solely responsible for determining the
156
+ appropriateness of using or redistributing the Work and assume any
157
+ risks associated with Your exercise of permissions under this License.
158
+
159
+ 8. Limitation of Liability. In no event and under no legal theory,
160
+ whether in tort (including negligence), contract, or otherwise,
161
+ unless required by applicable law (such as deliberate and grossly
162
+ negligent acts) or agreed to in writing, shall any Contributor be
163
+ liable to You for damages, including any direct, indirect, special,
164
+ incidental, or consequential damages of any character arising as a
165
+ result of this License or out of the use or inability to use the
166
+ Work (including but not limited to damages for loss of goodwill,
167
+ work stoppage, computer failure or malfunction, or any and all
168
+ other commercial damages or losses), even if such Contributor
169
+ has been advised of the possibility of such damages.
170
+
171
+ 9. Accepting Warranty or Additional Liability. While redistributing
172
+ the Work or Derivative Works thereof, You may choose to offer,
173
+ and charge a fee for, acceptance of support, warranty, indemnity,
174
+ or other liability obligations and/or rights consistent with this
175
+ License. However, in accepting such obligations, You may act only
176
+ on Your own behalf and on Your sole responsibility, not on behalf
177
+ of any other Contributor, and only if You agree to indemnify,
178
+ defend, and hold each Contributor harmless for any liability
179
+ incurred by, or claims asserted against, such Contributor by reason
180
+ of your accepting any such warranty or additional liability.
181
+
182
+ END OF TERMS AND CONDITIONS
183
+
184
+ APPENDIX: How to apply the Apache License to your work.
185
+
186
+ To apply the Apache License to your work, attach the following
187
+ boilerplate notice, with the fields enclosed by brackets "[]"
188
+ replaced with your own identifying information. (Don't include
189
+ the brackets!) The text should be enclosed in the appropriate
190
+ comment syntax for the file format. We also recommend that a
191
+ file or class name and description of purpose be included on the
192
+ same "printed page" as the copyright notice for easier
193
+ identification within third-party archives.
194
+
195
+ Copyright [yyyy] [name of copyright owner]
196
+
197
+ Licensed under the Apache License, Version 2.0 (the "License");
198
+ you may not use this file except in compliance with the License.
199
+ You may obtain a copy of the License at
200
+
201
+ http://www.apache.org/licenses/LICENSE-2.0
202
+
203
+ Unless required by applicable law or agreed to in writing, software
204
+ distributed under the License is distributed on an "AS IS" BASIS,
205
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
206
+ See the License for the specific language governing permissions and
207
+ limitations under the License.
208
+
209
+ Project-URL: Homepage, https://github.com/yeshu999/effspm
210
+ Project-URL: Source, https://github.com/yeshu999/effspm
211
+ Classifier: Programming Language :: Python :: 3.7
212
+ Classifier: Programming Language :: Python :: 3.8
213
+ Classifier: Programming Language :: Python :: 3.9
214
+ Classifier: Programming Language :: Python :: 3.10
215
+ Classifier: Programming Language :: Python :: 3.11
216
+ Classifier: Programming Language :: Python :: 3.12
217
+ Classifier: Programming Language :: Python :: 3.13
218
+ Classifier: Programming Language :: C++
219
+ Classifier: License :: OSI Approved :: MIT License
220
+ Classifier: Operating System :: OS Independent
221
+ Requires-Python: >=3.7
222
+ Description-Content-Type: text/markdown
223
+ License-File: LICENSE
224
+ Requires-Dist: pybind11>=2.6
225
+ Dynamic: author
226
+ Dynamic: license-file
227
+
228
+ # effspm
229
+
230
+ **Efficient Sequential Pattern Mining via Prefix‑Projection**
231
+
232
+ This library provides a Python interface to mine sequential patterns using the prefix‑projection algorithm, implemented in C++ for performance and exposed via pybind11.
233
+
234
+ ## Installation
235
+
236
+ ```bash
237
+ pip install effspm
@@ -0,0 +1,53 @@
1
+ effspm/utility.hpp,sha256=Y_MQVk9AmJWjguKyuyk0LraTi_6VzZFg0StsmVOCkNc,744
2
+ effspm/_core.cpp,sha256=S6UsUcl0HQLMQUTy2tMJxcrbLGJo8tjkLskyHqESYyI,3675
3
+ effspm/load_inst.hpp,sha256=CyLvoIMLWxcyP4RmEKvPUJ5FkZo1-FSy_eZrqjZaAd8,906
4
+ effspm/__init__.py,sha256=_BkZ8cFlB_l1haxTzxJMgFHhO6LEmF3pIY-nmPTPMj8,246
5
+ effspm/freq_miner.cpp,sha256=9K-nO_c-vVzbFlmh511vmvypA2fu1TXpiJhyx03owDU,4642
6
+ effspm/_effspm.cpp,sha256=B6Kp5bGhrOqONnlZQpTgk8JZt41heb8g3ONzaft1QZY,24047
7
+ effspm/load_inst.cpp,sha256=804fvkfdtYqFMP9Jla6dM2romWWPJmSeCwLm0wEZE5M,4517
8
+ effspm/freq_miner.hpp,sha256=UH7eGk-rFerN2cJMaVMsri_iTKpjBG3rXi5aBH8ci9Q,793
9
+ effspm/_effspm.cpython-312-darwin.so,sha256=0ggksvM8TjZdNKAc0y1UeQJFoKf5UJypSIrurU_JIpI,574304
10
+ effspm/utility.cpp,sha256=luWwBNy7OVWRmam9gz2RjhtrRmx6c37oOobFJaDWqcA,1403
11
+ effspm/htminer/src/build_mdd.cpp,sha256=3uh8NQyDgEI6UkDQ4pW7XDVdAHD_nS6Wc2mMExdI2wg,8871
12
+ effspm/htminer/src/utility.hpp,sha256=737-iMuDE5Sm5GGSYnAtgO6cC5O6bFvqHEftV5dGrKM,3573
13
+ effspm/htminer/src/load_inst.hpp,sha256=Cs_zpT4lM5j4sqoY1f6R0LKjkrTFMg9myGPYcDat0bE,455
14
+ effspm/htminer/src/freq_miner.cpp,sha256=5WbdTmQ4O-_U8UR-cbx1iqqEYDEXoBIi8lC2LHeoVIQ,10590
15
+ effspm/htminer/src/load_inst.cpp,sha256=enxuhSWzYwse92NKWVTXScdpmn3U74mRxX9lLFKnyEE,10925
16
+ effspm/htminer/src/freq_miner.hpp,sha256=8cVfeJknsgZo63Fp2iG7ndOop3BA-74y_vsjNQnJ9dY,765
17
+ effspm/htminer/src/build_mdd.hpp,sha256=GDFkmrjPyOfgkHOTwIjVH_dWrSXWB7OA_GAZ2GXzMpo,1328
18
+ effspm/htminer/src/utility.cpp,sha256=WZU9XAmZX86ihWuU6F_SSMSmCwl8h0t9SswAfi5ndcc,2375
19
+ effspm/largepp/src/utility.hpp,sha256=i06elLVb7qWGwkalC1t03bfuQ7c06Eu3QFt3I92FnG8,736
20
+ effspm/largepp/src/load_inst.hpp,sha256=PT6vX8ty29WCHNizwIhVcpB1CSc93pzh5qLmX4acBrY,986
21
+ effspm/largepp/src/freq_miner.cpp,sha256=yC55sBfuMOagmDwHkaJpEkOvSkoEMQXP96Xux8TDGCQ,3960
22
+ effspm/largepp/src/load_inst.cpp,sha256=910i6wUOPxZtAj_BOy9ieUffxUv6TNLTYFALeJZBWUM,6799
23
+ effspm/largepp/src/freq_miner.hpp,sha256=GmKUub-pED6kM39wxO0hssWkXDzaSNl2vLO4oGYDbzo,678
24
+ effspm/largepp/src/utility.cpp,sha256=Hbn49pUWCf1ixWyhiMBxXCW2a7uttkSNwc5gPgA1vqA,954
25
+ effspm/largehm/src/build_mdd.cpp,sha256=d3Ro-YtIz6bfkOg8oFhkOjB32kMBobb21o8kBd7WPPU,5916
26
+ effspm/largehm/src/utility.hpp,sha256=cjPJ6KYC37CFAMVNNygNMH1HiLTUHjMukImSIuY-S60,692
27
+ effspm/largehm/src/load_inst.hpp,sha256=sBvJhT6ibvR1R09YGiSgQYxNRc4jE89tcXvcVVR4-_4,1628
28
+ effspm/largehm/src/freq_miner.cpp,sha256=ZHfDRgJjUqhq8KrYAPBYhILQ0xFFKEfJlk2pTzEQPGs,16288
29
+ effspm/largehm/src/load_inst.cpp,sha256=vPCz5SqxgSzye54Pt6wqpwNu0-EOdOWap8XbU7edxAI,10263
30
+ effspm/largehm/src/freq_miner.hpp,sha256=fnuS6SIbbQYbP5llUez2WSnBzd6XujdG-IiCwRpU1QM,2351
31
+ effspm/largehm/src/build_mdd.hpp,sha256=zV0hhPq9HYFLsOJaaRAnrX4vbN49YsStwIca9kxpvLU,2787
32
+ effspm/largehm/src/utility.cpp,sha256=K0THrMKa_7cwAEJXbPXOdOwKBrC0gNt8oj1KOHECdJA,960
33
+ effspm/largebm/src/build_mdd.cpp,sha256=QAPj_cjGCo-u3wk5Pch1zmWlJmw772O5bqYEvWSn2TQ,4948
34
+ effspm/largebm/src/utility.hpp,sha256=S18kyrS5ulJj4to8RndypR35ImPQuGoAVMh6_KnMhaA,350
35
+ effspm/largebm/src/load_inst.hpp,sha256=inptC_vdkRPUnGHh4LcDPyGlD9Px2PSU64Xe26BWts8,1880
36
+ effspm/largebm/src/freq_miner.cpp,sha256=kxE0UbYH_QfbEAqu7HEq7ptotKH7RWOt6tl6M29LjFA,13596
37
+ effspm/largebm/src/load_inst.cpp,sha256=HmumfXv5o_Jdd1E4XQ7BtQSN7aOJiFFNg5-moRoj0lw,7339
38
+ effspm/largebm/src/freq_miner.hpp,sha256=Rjuhzbr7W9raV_5jPxtQl4lbCPDxvNO6fldBBoQeKQU,892
39
+ effspm/largebm/src/build_mdd.hpp,sha256=R0M0p1gJqA1LdjPzlgpn410cX5-Ak8ebuvgL5kTZS2E,636
40
+ effspm/largebm/src/utility.cpp,sha256=5yIPUtgMXVqZwPnwKyTJMMdDRvZe3sBDmZpeXAoLWO4,1167
41
+ effspm/btminer/src/build_mdd.cpp,sha256=LWfH_23cTExfOeK3evO46C8Di2_hmu7uCbmutOxj4Fw,1727
42
+ effspm/btminer/src/utility.hpp,sha256=ew4pclVwtKZp4bn7HrnaaWHSPZ-yMcsXYDiTmSs_MYM,937
43
+ effspm/btminer/src/load_inst.hpp,sha256=pojP8ClGglVhx6GuwEqCvwURPMtBpnHBeCVTGSsCiyA,462
44
+ effspm/btminer/src/freq_miner.cpp,sha256=PN8Ksetb5S_akEVjY71mwBP9YEVxlnphTz0zYCDAlaU,6557
45
+ effspm/btminer/src/load_inst.cpp,sha256=FudIgA4N7GNlEm34jHMDoQLfyY5NLZENC2CI-cVJoV4,5359
46
+ effspm/btminer/src/freq_miner.hpp,sha256=x-c7BpMdNqYiDFM49I7VDJXeb1tIruTOeD-3MXJ2g0A,626
47
+ effspm/btminer/src/build_mdd.hpp,sha256=CvowY9TxxnMh3_bIy0HZ9eZmnCm45z5A6Xz5hxHcwfg,567
48
+ effspm/btminer/src/utility.cpp,sha256=P-CwwWx5QG7U3DsqzZrFNbYxKqaoapR37P_J69qYVz8,2112
49
+ effspm-0.2.6.dist-info/RECORD,,
50
+ effspm-0.2.6.dist-info/WHEEL,sha256=CltXN3lQvXbHxKDtiDwW0RNzF8s2WyBuPbOAX_ZeQlA,109
51
+ effspm-0.2.6.dist-info/top_level.txt,sha256=2O-AuI0nw0pDmJMo2jzM1wvV2rj48AmkjskkAnsuuQk,7
52
+ effspm-0.2.6.dist-info/METADATA,sha256=ZeFn07nadFyyN89edYibk-LzKR93sOGj5d9kjt4MwBc,14227
53
+ effspm-0.2.6.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
@@ -1,6 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (79.0.1)
2
+ Generator: setuptools (80.9.0)
3
3
  Root-Is-Purelib: false
4
4
  Tag: cp312-cp312-macosx_11_0_arm64
5
- Generator: delocate 0.13.0
6
5
 
Binary file
@@ -1,38 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: effspm
3
- Version: 0.1.7
4
- Summary: Prefix‑Projection sequential pattern mining
5
- Home-page: https://github.com/yeshu999/effspm
6
- Author: yeshu999
7
- Author-email: yeshu999 <vootlayeswanth20@gmail.com>
8
- Project-URL: Homepage, https://github.com/yeshu999/effspm
9
- Project-URL: Source, https://github.com/yeshu999/effspm
10
- Classifier: Programming Language :: Python :: 3
11
- Classifier: Programming Language :: Python :: 3.7
12
- Classifier: Programming Language :: Python :: 3.8
13
- Classifier: Programming Language :: Python :: 3.9
14
- Classifier: Programming Language :: Python :: 3.10
15
- Classifier: Programming Language :: Python :: 3.11
16
- Classifier: Programming Language :: Python :: 3.12
17
- Classifier: Programming Language :: C++
18
- Classifier: License :: OSI Approved :: MIT License
19
- Classifier: Operating System :: OS Independent
20
- Requires-Python: >=3.7
21
- Description-Content-Type: text/markdown
22
- License-File: LICENSE
23
- Requires-Dist: pybind11>=2.6
24
- Dynamic: author
25
- Dynamic: home-page
26
- Dynamic: license-file
27
- Dynamic: requires-python
28
-
29
- # effspm
30
-
31
- **Efficient Sequential Pattern Mining via Prefix‑Projection**
32
-
33
- This library provides a Python interface to mine sequential patterns using the prefix‑projection algorithm, implemented in C++ for performance and exposed via pybind11.
34
-
35
- ## Installation
36
-
37
- ```bash
38
- pip install effspm
@@ -1,14 +0,0 @@
1
- effspm-0.1.7.dist-info/RECORD,,
2
- effspm-0.1.7.dist-info/WHEEL,sha256=ACrMF2aP05akv4Id-mc7DZIHqvH9LlWg74roxnFqUPM,136
3
- effspm-0.1.7.dist-info/top_level.txt,sha256=2O-AuI0nw0pDmJMo2jzM1wvV2rj48AmkjskkAnsuuQk,7
4
- effspm-0.1.7.dist-info/METADATA,sha256=9Wff5v6cWekQ4c3O11anwulN2lI4pLW9V_DEh2zQmng,1311
5
- effspm-0.1.7.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
6
- effspm/utility.hpp,sha256=Y_MQVk9AmJWjguKyuyk0LraTi_6VzZFg0StsmVOCkNc,744
7
- effspm/_core.cpp,sha256=S6UsUcl0HQLMQUTy2tMJxcrbLGJo8tjkLskyHqESYyI,3675
8
- effspm/load_inst.hpp,sha256=cR-iZG95mUN62ZLCnPNQsKUINtkwhUzMTLlH81wmyt0,906
9
- effspm/__init__.py,sha256=3fTJ432t0_vjUMnkw4d8I3Jgots4YKVHWnDSHKs_qb4,68
10
- effspm/_core.cpython-312-darwin.so,sha256=w9NSmfQIb1qkwm0VlgF5s5lXDKoWLeSBHK45XIWd-Vk,250552
11
- effspm/freq_miner.cpp,sha256=9K-nO_c-vVzbFlmh511vmvypA2fu1TXpiJhyx03owDU,4642
12
- effspm/load_inst.cpp,sha256=804fvkfdtYqFMP9Jla6dM2romWWPJmSeCwLm0wEZE5M,4517
13
- effspm/freq_miner.hpp,sha256=jA-ZCT12Z0YNjLoAiY9sniFTP6g-ITTDuWtlOdHXkMQ,744
14
- effspm/utility.cpp,sha256=luWwBNy7OVWRmam9gz2RjhtrRmx6c37oOobFJaDWqcA,1403