Giter Site home page Giter Site logo

wea's Introduction

WEA-Clique

An adaption of the Wong Evolutionary Algorithm (WEA) for the maximum clique problem. It results to be a simple genetic algorithm based on feasibility maintenance.

Getting Started

  • Download from the repository
  • See prerequisites
  • Follow the installation
  • See running

Prerequisites

  • Official Python (CPython == 3.7, MUST for the snap-stanford package) and PIP
  • OS: Linux, Mac, Windows

Installation

Install the dependencies with pip

pip install -r requirements.txt

Downloading a dataset

Optionally download any .edges or .mtx dataset:

Running

Add additional notes about how to deploy this on a live system

python main.py

Using a downloaded dataset:

python main.py --dataset=facebook/0.edges

Note: It's already indexed to data/input. You may need to change the WEAClique settings.

Algorithm settings

Option Description
Genotype List of nodes of dynamic size. This forms a feasible clique.
Crossover Modified uniform crossover for feasible maintenance.
Mutation Modified random resetting for feasible maintenance.
Life time adaption Lamarckian Model.
Hill-Climbing Stochastic local search.
Parent selection Tournament selection.
Populational replacement Generational replacement model.
Stop condition Unchanged fitness and maximum iteration based.
Fitness function Clique size.

Performance

Uncompared

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.