effspm 0.2.1__cp313-cp313-macosx_10_13_universal2.whl → 0.2.2__cp313-cp313-macosx_10_13_universal2.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.

Binary file
@@ -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>
@@ -1,7 +1,7 @@
1
1
  effspm/__init__.py,sha256=lFt6ng5CigUoRWeT8crTZ0PMEaR1ejOIOJuyhNs-gtI,233
2
2
  effspm/_core.cpp,sha256=S6UsUcl0HQLMQUTy2tMJxcrbLGJo8tjkLskyHqESYyI,3675
3
3
  effspm/_effspm.cpp,sha256=9imtXWbdeHkfWMwTZaE6Dcs1nD_b2BaAwXSbIuuKd8o,22196
4
- effspm/_effspm.cpython-313-darwin.so,sha256=duStdB6nNPgq0iAH6-prRMn7WHoYwov7MmcqHB9ax2I,1067872
4
+ effspm/_effspm.cpython-313-darwin.so,sha256=9X6s30nTGWOE2hJ7XtXm8H9XBp6OujqbWlvOXJKjd_Q,1067872
5
5
  effspm/freq_miner.cpp,sha256=9K-nO_c-vVzbFlmh511vmvypA2fu1TXpiJhyx03owDU,4642
6
6
  effspm/freq_miner.hpp,sha256=jA-ZCT12Z0YNjLoAiY9sniFTP6g-ITTDuWtlOdHXkMQ,744
7
7
  effspm/load_inst.cpp,sha256=804fvkfdtYqFMP9Jla6dM2romWWPJmSeCwLm0wEZE5M,4517
@@ -22,7 +22,7 @@ effspm/htminer/src/build_mdd.cpp,sha256=3uh8NQyDgEI6UkDQ4pW7XDVdAHD_nS6Wc2mMExdI
22
22
  effspm/htminer/src/build_mdd.hpp,sha256=GDFkmrjPyOfgkHOTwIjVH_dWrSXWB7OA_GAZ2GXzMpo,1328
23
23
  effspm/htminer/src/freq_miner.cpp,sha256=5WbdTmQ4O-_U8UR-cbx1iqqEYDEXoBIi8lC2LHeoVIQ,10590
24
24
  effspm/htminer/src/freq_miner.hpp,sha256=8cVfeJknsgZo63Fp2iG7ndOop3BA-74y_vsjNQnJ9dY,765
25
- effspm/htminer/src/load_inst.cpp,sha256=i3mQAfPko-fW1YjVmeDlbC1e0TQasiapNTBwvFnInDc,10627
25
+ effspm/htminer/src/load_inst.cpp,sha256=Qcmd3LygQ6DDdCjiDzMRE-aeRdyPL2bynp6G_2P68As,10922
26
26
  effspm/htminer/src/load_inst.hpp,sha256=Cs_zpT4lM5j4sqoY1f6R0LKjkrTFMg9myGPYcDat0bE,455
27
27
  effspm/htminer/src/main.cpp,sha256=_kKdO9UuS8Hvs4gUD66vZ_ehjz1_VC7FI25LfyKBku4,2187
28
28
  effspm/htminer/src/utility.cpp,sha256=WZU9XAmZX86ihWuU6F_SSMSmCwl8h0t9SswAfi5ndcc,2375
@@ -52,8 +52,8 @@ effspm/largepp/src/load_inst.hpp,sha256=PT6vX8ty29WCHNizwIhVcpB1CSc93pzh5qLmX4ac
52
52
  effspm/largepp/src/main.cpp,sha256=2y_xGXSHo2wyrHJh86VrD1GMDHaEDMBqvUmt5Rb03oI,2696
53
53
  effspm/largepp/src/utility.cpp,sha256=cUYchvpCpZ9vdsT9p-Z5if6hsrZzbspDJOxOHspx8to,936
54
54
  effspm/largepp/src/utility.hpp,sha256=aRoFRvhTzx4O4l7Yw5hXqksr4MXjr-8Bq-UqkIceeVw,718
55
- effspm-0.2.1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
56
- effspm-0.2.1.dist-info/METADATA,sha256=e-4vAQbMZsi_re-D3ebBYkQwSilykdqywHpcQmRg6eo,14227
57
- effspm-0.2.1.dist-info/WHEEL,sha256=memlX0NSEQnmSMa3rcNWPnk4cttudwgAZx3qq8qO4ME,115
58
- effspm-0.2.1.dist-info/top_level.txt,sha256=2O-AuI0nw0pDmJMo2jzM1wvV2rj48AmkjskkAnsuuQk,7
59
- effspm-0.2.1.dist-info/RECORD,,
55
+ effspm-0.2.2.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
56
+ effspm-0.2.2.dist-info/METADATA,sha256=ljAl44RrX2_Hbg4HGGkPF7A_D6rZNDjKeMT-x3xrQ1k,14227
57
+ effspm-0.2.2.dist-info/WHEEL,sha256=memlX0NSEQnmSMa3rcNWPnk4cttudwgAZx3qq8qO4ME,115
58
+ effspm-0.2.2.dist-info/top_level.txt,sha256=2O-AuI0nw0pDmJMo2jzM1wvV2rj48AmkjskkAnsuuQk,7
59
+ effspm-0.2.2.dist-info/RECORD,,
File without changes