GithubHelp home page GithubHelp logo

h-mine-algorithm's Introduction


INSTRUCTION : To run the Project_Main.py (Runs both the algorithm automatically)


Requirements: 3 Datasets provided with the project namely: 1) Market_Basket_Optimisation.txt 2) Random_Test.txt 3) Chess_data.txt

The Project_Main.py runs both the H_mine and Apriori algorithm for all the 3 datsets and

outputs the result into files.

To Run the program :

  1. Open Terminal(Mac) or Cmd(Windows).

  2. Change your directory to the same directory where the program is stored.

    Command: cd /path/to/program

  3. Enter The Command:

python Project_Main.py  

Note : enter "python3 Project_Main.py" for bluenose.
  1. After Running, the Program will read all the 3 datasets one by one and run H-mine and Apriori with arbitrary value of minimum_support given in the file.

  2. The ouput file is generated indicating the name of the dataset and the algorithm used. Confirmation of storage is given in the terminal with a prompt.

NOTE: Only 5 files are generated since Apriori algorithm is not triggered for chess.txt.


Instruction: To Run algorithm H_Mine_Algo.py or Apriori_Algo.py Invidually.


Any .txt dataset with items seprated by delimiter = " " can be used.

NOTE :Python interactive shell is used to run the runHmine() or runApriori().

To Run the module :

  1. Open Terminal(Mac) or Cmd(Windows).

  2. Change your directory to the same directory where the program is stored.

    Command: cd /path/to/program Command: "python" (to enter pyhton interactive shell) NOTE: use "pyhton3" for Bluenose

  3. Enter The following Command in python interactive shell:

    import Apriori_Algo import H_Mine_Algo

    Apriori_Algo() and H_Mine_Algo() takes 3 parameters:

    1. Input_file_name.txt
    2. Output_file_name.txt
    3. Relative support (Valid range 0<x<1)

    For example,

    Apriori_Algo.runApriori("Random_Test.txt","Random_Test_Out.txt",0.1)

    H_Mine_Algo.runHmine("Random_Test.txt","Random_Test_Out.txt",0.1)

  4. After Running, the Program will read the input file and run the corresponding algorithm with the given minimum_support.

  5. The ouput file is generated with the given name. If completed successfully Program will print a completion message.


Developers:


Mohamed Muzamil H
[email protected]

Aman Jaiswal
[email protected]


h-mine-algorithm's People

Contributors

mohd-muzamil avatar

Stargazers

LiuHanyue avatar

Watchers

 avatar Kostas Georgiou avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.