effspm 0.1.0__cp313-cp313-macosx_10_13_universal2.whl → 0.1.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.
- effspm/_core.cpp +1 -0
- effspm/_core.cpython-313-darwin.so +0 -0
- effspm/freq_miner.hpp +43 -0
- effspm/load_inst.hpp +25 -0
- effspm/utility.hpp +29 -0
- {effspm-0.1.0.dist-info → effspm-0.1.2.dist-info}/METADATA +11 -1
- effspm-0.1.2.dist-info/RECORD +14 -0
- effspm-0.1.0.dist-info/RECORD +0 -11
- {effspm-0.1.0.dist-info → effspm-0.1.2.dist-info}/WHEEL +0 -0
- {effspm-0.1.0.dist-info → effspm-0.1.2.dist-info}/licenses/LICENSE +0 -0
- {effspm-0.1.0.dist-info → effspm-0.1.2.dist-info}/top_level.txt +0 -0
effspm/_core.cpp
CHANGED
|
Binary file
|
effspm/freq_miner.hpp
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
#pragma once
|
|
2
|
+
|
|
3
|
+
#include "load_inst.hpp"
|
|
4
|
+
|
|
5
|
+
void Freq_miner();
|
|
6
|
+
void Out_patt(std::vector<int>& seq, unsigned int freq);
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class Pattern {
|
|
10
|
+
public:
|
|
11
|
+
|
|
12
|
+
vector<int> seq;
|
|
13
|
+
vector<unsigned int> str_pnt;
|
|
14
|
+
vector<unsigned int> seq_ID;
|
|
15
|
+
|
|
16
|
+
vector<int> slist;
|
|
17
|
+
vector<int> ilist;
|
|
18
|
+
|
|
19
|
+
unsigned int freq;
|
|
20
|
+
|
|
21
|
+
Pattern(vector<int>& _seq, int item) {
|
|
22
|
+
seq.reserve(_seq.size());
|
|
23
|
+
for (int i = 0; i < _seq.size(); ++i)
|
|
24
|
+
seq.push_back(_seq[i]);
|
|
25
|
+
seq.push_back(item);
|
|
26
|
+
freq = 0;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
Pattern(int item) {
|
|
31
|
+
seq.push_back(item);
|
|
32
|
+
freq = 0;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
Pattern() {
|
|
36
|
+
freq = 0;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
extern vector<Pattern> DFS; //DFS queue of potential patterns to extend
|
|
42
|
+
|
|
43
|
+
extern unsigned long long int num_patt;
|
effspm/load_inst.hpp
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
#pragma once
|
|
2
|
+
|
|
3
|
+
#include<vector>
|
|
4
|
+
#include<string>
|
|
5
|
+
#include <fstream>
|
|
6
|
+
#include <map>
|
|
7
|
+
// Should work because "effspm" is in include_dirs
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
using namespace std;
|
|
11
|
+
|
|
12
|
+
bool Load_instance(string &items_file, double thresh);
|
|
13
|
+
|
|
14
|
+
extern vector<vector<int>> items;
|
|
15
|
+
|
|
16
|
+
extern string out_file;
|
|
17
|
+
|
|
18
|
+
extern bool b_disp, b_write, use_dic, use_list, pre_pro;
|
|
19
|
+
|
|
20
|
+
extern unsigned int M, L, time_limit;
|
|
21
|
+
|
|
22
|
+
extern unsigned long long int N, theta;
|
|
23
|
+
|
|
24
|
+
extern clock_t start_time;
|
|
25
|
+
|
effspm/utility.hpp
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
#ifndef UTILITY_HPP
|
|
2
|
+
#define UTILITY_HPP
|
|
3
|
+
|
|
4
|
+
#include <vector>
|
|
5
|
+
#include <string>
|
|
6
|
+
#include <ctime>
|
|
7
|
+
|
|
8
|
+
// timing
|
|
9
|
+
extern std::clock_t start_time;
|
|
10
|
+
double give_time(std::clock_t end_time);
|
|
11
|
+
|
|
12
|
+
// flags (shared with main.cpp)
|
|
13
|
+
extern bool b_disp, b_write, use_dic, use_list, pre_pro;
|
|
14
|
+
extern unsigned int time_limit;
|
|
15
|
+
extern std::string out_file;
|
|
16
|
+
|
|
17
|
+
// Python-binding collection
|
|
18
|
+
void ClearCollected();
|
|
19
|
+
const std::vector<std::vector<int>>& GetCollected();
|
|
20
|
+
|
|
21
|
+
// pattern collection & output
|
|
22
|
+
void CollectPattern(const std::vector<int>& seq);
|
|
23
|
+
|
|
24
|
+
// two overloads of Out_patt so calls with non‑const or const vectors both link
|
|
25
|
+
void Out_patt(std::vector<int>& seq, unsigned int freq);
|
|
26
|
+
void Out_patt(const std::vector<int>& seq, unsigned int freq);
|
|
27
|
+
|
|
28
|
+
#endif // UTILITY_HPP
|
|
29
|
+
|
|
@@ -1,12 +1,22 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: effspm
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.2
|
|
4
4
|
Summary: Prefix‑Projection sequential pattern mining
|
|
5
5
|
Home-page: https://github.com/yeshu999/effspm
|
|
6
6
|
Author: yeshu999
|
|
7
7
|
Author-email: yeshu999 <vootlayeswanth20@gmail.com>
|
|
8
8
|
Project-URL: Homepage, https://github.com/yeshu999/effspm
|
|
9
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
|
|
10
20
|
Requires-Python: >=3.7
|
|
11
21
|
Description-Content-Type: text/markdown
|
|
12
22
|
License-File: LICENSE
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
effspm/__init__.py,sha256=42d7tN5Mq0H7ezvMGQWnA83G-5t5Y-QRU5tQjOn4x5s,45
|
|
2
|
+
effspm/_core.cpp,sha256=-YJAJtMQ_ssFQe6dByk78q8uXEJIRpG9lvDTLsVjjZE,736
|
|
3
|
+
effspm/_core.cpython-313-darwin.so,sha256=2VfnjUlpl4OOI8XLAWAyvJoiKc9Se9OhecPuh_WTAgQ,442208
|
|
4
|
+
effspm/freq_miner.cpp,sha256=9K-nO_c-vVzbFlmh511vmvypA2fu1TXpiJhyx03owDU,4642
|
|
5
|
+
effspm/freq_miner.hpp,sha256=nyIv7HU94UcimdLlzN8yW_mHwOEzrHj5cRvTTDd6bRU,669
|
|
6
|
+
effspm/load_inst.cpp,sha256=804fvkfdtYqFMP9Jla6dM2romWWPJmSeCwLm0wEZE5M,4517
|
|
7
|
+
effspm/load_inst.hpp,sha256=-j06r2yatU-MAzlPlPw7p4QqWVLWaaZKLD3IDWZSIb8,440
|
|
8
|
+
effspm/utility.cpp,sha256=luWwBNy7OVWRmam9gz2RjhtrRmx6c37oOobFJaDWqcA,1403
|
|
9
|
+
effspm/utility.hpp,sha256=Y_MQVk9AmJWjguKyuyk0LraTi_6VzZFg0StsmVOCkNc,744
|
|
10
|
+
effspm-0.1.2.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
11
|
+
effspm-0.1.2.dist-info/METADATA,sha256=oPID7BHWaC_P6vyPDyUGoamltS9CPllbJa9wsLT6gfE,1311
|
|
12
|
+
effspm-0.1.2.dist-info/WHEEL,sha256=A6iggJuFsuu67bHdjxJADhwSEJmqwgO3xFoNCIwjOxc,115
|
|
13
|
+
effspm-0.1.2.dist-info/top_level.txt,sha256=2O-AuI0nw0pDmJMo2jzM1wvV2rj48AmkjskkAnsuuQk,7
|
|
14
|
+
effspm-0.1.2.dist-info/RECORD,,
|
effspm-0.1.0.dist-info/RECORD
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
effspm/__init__.py,sha256=42d7tN5Mq0H7ezvMGQWnA83G-5t5Y-QRU5tQjOn4x5s,45
|
|
2
|
-
effspm/_core.cpp,sha256=kEU8obDuzi13zoSNsfMQrAEiIaVzalr7Pl3RZPBZz4o,735
|
|
3
|
-
effspm/_core.cpython-313-darwin.so,sha256=N6tiKvn_XHfPu7VzWzI4H92YKYwVAiZTdLXZfbzFRFg,441744
|
|
4
|
-
effspm/freq_miner.cpp,sha256=9K-nO_c-vVzbFlmh511vmvypA2fu1TXpiJhyx03owDU,4642
|
|
5
|
-
effspm/load_inst.cpp,sha256=804fvkfdtYqFMP9Jla6dM2romWWPJmSeCwLm0wEZE5M,4517
|
|
6
|
-
effspm/utility.cpp,sha256=luWwBNy7OVWRmam9gz2RjhtrRmx6c37oOobFJaDWqcA,1403
|
|
7
|
-
effspm-0.1.0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
8
|
-
effspm-0.1.0.dist-info/METADATA,sha256=uZHorxXHYgNKygvZFSHStVUbj-Nd6pZ53-enfE0t8Hs,822
|
|
9
|
-
effspm-0.1.0.dist-info/WHEEL,sha256=A6iggJuFsuu67bHdjxJADhwSEJmqwgO3xFoNCIwjOxc,115
|
|
10
|
-
effspm-0.1.0.dist-info/top_level.txt,sha256=2O-AuI0nw0pDmJMo2jzM1wvV2rj48AmkjskkAnsuuQk,7
|
|
11
|
-
effspm-0.1.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|