poorya-yousefi / Computational-Intelligence-Tutorials

This is the repository of codes written in class.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Computational Intelligence Tutorial

This repository will cover the material of the Computational Intelligence class. In this class, we will show how you could implement Metaheuristic Algorithms in python. So If you are interested in Metaheuristic Algorithms, This is the place for you. (The goal of making this content was anyone can be able to learn Metaheuristic Algorithms on their own, So if you can't be present in the class, you can learn all of the material here.)

Prerequisites

Before you start this tutorial, you should know:

  • Python - If you don't know python, but you know how to program, you can learn it in first week of this class.
  • Numpy Library - If you don't know Numpy, you can learn it in first week of this class.
  • Algorithms & Datastructures - If you don't know Algorithms & Datastructures, you can learn it here.

Weekly Content

First Week

  • Python
    • Basic Data Types
    • Containers
    • Functions
    • Classes
  • Numpy
    • Creating Arrays
    • Array Data
    • Reshaping an Array
    • Arithmetic Operations on Arrays
    • Conditional Operators
    • Mathematical and Statistical Functions
    • Array Indexing
    • Iterating
    • Saving and loading

Second Week

First three steps of Implementing Genetic Algorithms :

  • Population Initialization
  • Fitness Calculation
  • Selection Operators
  • Introduction to Knapsack problem
  • How you can create a fake data for Knapsack problem

Third Week

  • Last two steps of implementing the Genetic Algorithms :
    • Crossover
    • Mutation
  • Solving Knapsack problem with Brute Force Algorithm
  • Solving Knapsack problem with Genetic Algorithm
  • Visualization of Genetic Algorithm output

Fourth Week

  • How to find the minimum point of various functions
  • How to represent a floating-point chromosome as a binary chromosome
  • Uniform Mutation (Floating-point representation)
  • Linear Recombination Crossover
  • Genetic Algorithm (Floating-point Representation)
  • 3-D Visualization of every function & its fitness

About

This is the repository of codes written in class.

License:Apache License 2.0


Languages

Language:Jupyter Notebook 99.9%Language:Python 0.1%