Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FGPSC MINER #383

Merged
merged 5 commits into from
Apr 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 18 additions & 16 deletions PAMI/fuzzyGeoreferencedFrequentPattern/basic/FFSPMiner_old.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
#
# from PAMI.fuzzyGeoreferencedFrequentPattern import FFSPMiner as alg
#
# minSup = str()
#
# iFile = " "
#
# sep = "\t"
#
# obj = alg.FFSPMiner("input.txt", "neighbours.txt", 2)
#
# obj.mine()
Expand All @@ -30,7 +36,6 @@




__copyright__ = """
Copyright (C) 2021 Rage Uday Kiran

Expand Down Expand Up @@ -171,7 +176,10 @@ def __init__(self):


class FFSPMiner(_ab._fuzzySpatialFrequentPatterns):
"""
"""
About this algorithm
====================

:Description: Fuzzy Frequent Spatial Pattern-Miner is desired to find all Spatially frequent fuzzy patterns
which is on-trivial and challenging problem to its huge search space.we are using efficient pruning
techniques to reduce the search space.
Expand Down Expand Up @@ -258,9 +266,11 @@ class FFSPMiner(_ab._fuzzySpatialFrequentPatterns):
WriteOut(prefix, prefixLen, item, sumIUtil,period)
To Store the patten

**Executing the code on terminal :**
----------------------------------------
Execution methods
=================


**Terminal command**
.. code-block:: console

Format:
Expand Down Expand Up @@ -305,24 +315,16 @@ class FFSPMiner(_ab._fuzzySpatialFrequentPatterns):

print("Total ExecutionTime in seconds:", run)

**Credits:**
---------------
Credits
=======
The complete program was written by B.Sai Chitra under the supervision of Professor Rage Uday Kiran.
"""

_startTime = float()
_endTime = float()


_minSup = str()
_maxPer = float()
_finalPatterns = {}
_iFile = " "
_oFile = " "
_nFile = " "
_memoryUSS = float()
_memoryRSS = float()
_sep = "\t"
_transactions = []
_fuzzyValues = []

def __init__(self, iFile, nFile, minSup, sep="\t"):
super().__init__(iFile, nFile, minSup, sep)
Expand Down
39 changes: 21 additions & 18 deletions PAMI/fuzzyGeoreferencedPeriodicFrequentPattern/basic/FGPFPMiner.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@
#
# from PAMI.fuzzyGeoreferencedPeriodicFrequentPattern import FGPFPMiner as alg
#
# minSup = str()
#
# maxPer = float()
#
# iFile = " "
#
# nFile = " "
#
# sep = "\t"

# obj = alg.FFSPMiner("input.txt", "neighbours.txt", 3, 4)
#
# obj.mine()
Expand All @@ -24,7 +34,6 @@




__copyright__ = """
Copyright (C) 2021 Rage Uday Kiran

Expand Down Expand Up @@ -130,6 +139,9 @@ def __init__(self):

class FGPFPMiner(_ab._fuzzySpatialFrequentPatterns):
"""
About this algorithm
====================

:Description: Fuzzy Frequent Spatial Pattern-Miner is desired to find all Spatially frequent fuzzy patterns
which is on-trivial and challenging problem to its huge search space.we are using efficient pruning
techniques to reduce the search space.
Expand Down Expand Up @@ -208,8 +220,8 @@ class FGPFPMiner(_ab._fuzzySpatialFrequentPatterns):
WriteOut(prefix, prefixLen, item, sumIUtil,period)
To Store the patten

**Executing the code on terminal :**
--------------------------------------------
Execution methods
=================-

.. code-block:: console

Expand All @@ -224,8 +236,8 @@ class FGPFPMiner(_ab._fuzzySpatialFrequentPatterns):
.. note:: minSup will be considered in percentage of database transactions


**Sample run of importing the code:**
----------------------------------------
**Calling from a python program**

.. code-block:: python

from PAMI.fuzzyGeoreferencedPeriodicFrequentPattern import FGPFPMiner as alg
Expand All @@ -244,26 +256,17 @@ class FGPFPMiner(_ab._fuzzySpatialFrequentPatterns):

print("Total ExecutionTime in seconds:", obj.getRuntime())

**Credits:**
----------------
The complete program was written by B.Sai Chitra and Kundai Kwangwari under the supervision of Professor Rage Uday Kiran.
Credits
=======
The complete program was written by B.Sai Chitra under the supervision of Professor Rage Uday Kiran.
"""

_startTime = float()
_endTime = float()
_minSup = str()
_maxPer = float()
_finalPatterns = {}
_iFile = " "
_oFile = " "
_nFile = " "
_FuzFile = " "
_memoryUSS = float()
_memoryRSS = float()
_sep = "\t"
_transactionsDB = []
_fuzzyValuesDB = []
_ts = []


def __init__(self, iFile, nFile, minSup, maxPer, sep):
super().__init__(iFile, nFile, minSup, maxPer, sep)
Expand Down