Skip to main content
Version: 0.5.x

Installation

This page contains information about dependencies, how to install and how to import modules.

Dependencies:

The package requires python 3.10 or higher.

PackagesVersion
numpy≥ 1.23.0
scipy≥ 1.8.1
tqdm≥ 4.64.1
numba≥ 0.59.0

Installation procedure

The simplest way to install is via pip:

pip install aisp

Importing modules

Negative selection Algorithms

from aisp.nsa import RNSA, BNSA

r_nsa = RNSA(N=300, r=0.05)
b_nsa = BNSA(N=300, aff_thresh=0.30)

Clonal Selection Algorithms

from aisp.csa import AIRS, Clonalg

airs = AIRS()
clonalg = Clonalg(problem_size=problem_size)

Immune Network Algorithms

from aisp.ina import AiNet

ai_net = AiNet(suppression_threshold=0.96, affinity_threshold=0.95)