effspm 0.1.11__cp313-cp313-macosx_10_13_universal2.whl → 0.1.12__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.
- effspm/_effspm.cpython-313-darwin.so +0 -0
- effspm/btminer/src/load_inst.cpp +6 -4
- {effspm-0.1.11.dist-info → effspm-0.1.12.dist-info}/METADATA +1 -1
- {effspm-0.1.11.dist-info → effspm-0.1.12.dist-info}/RECORD +7 -7
- {effspm-0.1.11.dist-info → effspm-0.1.12.dist-info}/WHEEL +0 -0
- {effspm-0.1.11.dist-info → effspm-0.1.12.dist-info}/licenses/LICENSE +0 -0
- {effspm-0.1.11.dist-info → effspm-0.1.12.dist-info}/top_level.txt +0 -0
|
Binary file
|
effspm/btminer/src/load_inst.cpp
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
|
|
1
2
|
#include <iostream>
|
|
2
3
|
#include <sstream>
|
|
3
4
|
#include <fstream>
|
|
@@ -15,14 +16,13 @@ namespace btminer {
|
|
|
15
16
|
|
|
16
17
|
using namespace std;
|
|
17
18
|
|
|
18
|
-
extern int num_nodes, cur_node;
|
|
19
|
+
extern int num_nodes, cur_node;
|
|
19
20
|
|
|
20
21
|
map<string, int> item_map;
|
|
21
22
|
map<int, string> item_map_rev;
|
|
22
23
|
vector<int> freq;
|
|
23
24
|
vector<int> item_dic;
|
|
24
25
|
|
|
25
|
-
|
|
26
26
|
void Load_items_pre(string& inst_name);
|
|
27
27
|
bool Load_items(string& inst_name);
|
|
28
28
|
bool Preprocess(string& inst, double thresh);
|
|
@@ -124,11 +124,11 @@ void Load_items_pre(string& inst_name) {
|
|
|
124
124
|
ditem = stoi(itm);
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
-
if (freq[abs(ditem) - 1] < theta) {
|
|
127
|
+
if (pre_pro && freq.size() > abs(ditem) - 1 && freq[abs(ditem) - 1] < theta) {
|
|
128
128
|
if (!sgn)
|
|
129
129
|
sgn = ditem < 0;
|
|
130
130
|
continue;
|
|
131
|
-
} else {
|
|
131
|
+
} else if (pre_pro) {
|
|
132
132
|
ditem = (ditem > 0) ? item_dic[ditem - 1] : -item_dic[-ditem - 1];
|
|
133
133
|
}
|
|
134
134
|
|
|
@@ -144,6 +144,7 @@ void Load_items_pre(string& inst_name) {
|
|
|
144
144
|
++N;
|
|
145
145
|
if (temp_vec.size() > M) M = temp_vec.size();
|
|
146
146
|
|
|
147
|
+
E += temp_vec.size(); // <-- make sure E gets incremented
|
|
147
148
|
Build_MDD(temp_vec);
|
|
148
149
|
}
|
|
149
150
|
}
|
|
@@ -186,6 +187,7 @@ bool Load_items(string& inst_name) {
|
|
|
186
187
|
}
|
|
187
188
|
|
|
188
189
|
if (temp_vec.size() > M) M = temp_vec.size();
|
|
190
|
+
E += temp_vec.size(); // <-- make sure E gets incremented
|
|
189
191
|
Build_MDD(temp_vec);
|
|
190
192
|
}
|
|
191
193
|
return true;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
effspm/__init__.py,sha256=P2BlW2-xTmfF2KK0ZMaTbw_yHpVX-Ue0wmhBL1FMIGA,90
|
|
2
2
|
effspm/_core.cpp,sha256=S6UsUcl0HQLMQUTy2tMJxcrbLGJo8tjkLskyHqESYyI,3675
|
|
3
3
|
effspm/_effspm.cpp,sha256=3paU981ioLFGYG4XtQLcWPXCoU-L1AMWrKvU-OU2WQU,5029
|
|
4
|
-
effspm/_effspm.cpython-313-darwin.so,sha256=
|
|
4
|
+
effspm/_effspm.cpython-313-darwin.so,sha256=Wdx-EpVspIpZOOGnkhiEvSalUKjWmfYVQVienYEoJvE,575696
|
|
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
|
|
@@ -13,13 +13,13 @@ effspm/btminer/src/build_mdd.cpp,sha256=LWfH_23cTExfOeK3evO46C8Di2_hmu7uCbmutOxj
|
|
|
13
13
|
effspm/btminer/src/build_mdd.hpp,sha256=CvowY9TxxnMh3_bIy0HZ9eZmnCm45z5A6Xz5hxHcwfg,567
|
|
14
14
|
effspm/btminer/src/freq_miner.cpp,sha256=D1ofcP9_6QFskmMcvnUZ-Ck5CZWRsFrFw0yyArpsjYs,6476
|
|
15
15
|
effspm/btminer/src/freq_miner.hpp,sha256=x-c7BpMdNqYiDFM49I7VDJXeb1tIruTOeD-3MXJ2g0A,626
|
|
16
|
-
effspm/btminer/src/load_inst.cpp,sha256=
|
|
16
|
+
effspm/btminer/src/load_inst.cpp,sha256=db4IVECmihiie9FKZNRWs5I4wXEFAzujm8pKfZYPwuE,5355
|
|
17
17
|
effspm/btminer/src/load_inst.hpp,sha256=yxKcglYf3Zbi0BWqQ_BFaTTKy1rFC9FGOo2urO76YEE,460
|
|
18
18
|
effspm/btminer/src/main.cpp,sha256=h1_BcTVDWBCjlGkkb_K2v8IKVkxJacVErV7yhWNMR94,3010
|
|
19
19
|
effspm/btminer/src/utility.cpp,sha256=-Ld5kyqnmnIQRdp_YmYVRNfjE7DkiFHWFeZqF1kM5xM,1634
|
|
20
20
|
effspm/btminer/src/utility.hpp,sha256=qC9ZbFOd0vf4BXBeY90RnyD7UuLMhl0n3AnBSTeUVRs,1089
|
|
21
|
-
effspm-0.1.
|
|
22
|
-
effspm-0.1.
|
|
23
|
-
effspm-0.1.
|
|
24
|
-
effspm-0.1.
|
|
25
|
-
effspm-0.1.
|
|
21
|
+
effspm-0.1.12.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
22
|
+
effspm-0.1.12.dist-info/METADATA,sha256=a78PuAPzgFqvgMc3BMxaf0xmVEGJ_2ja2SJdTYBFZjA,14228
|
|
23
|
+
effspm-0.1.12.dist-info/WHEEL,sha256=3pGf5_cz-CVrNKmpEMuvukSxeW6ij_ZOx1dp6E4U218,115
|
|
24
|
+
effspm-0.1.12.dist-info/top_level.txt,sha256=2O-AuI0nw0pDmJMo2jzM1wvV2rj48AmkjskkAnsuuQk,7
|
|
25
|
+
effspm-0.1.12.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|