Skip to content

unifr-fss/fcm-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fuzzy Cognitive Maps tutorial

This tutorial is part of the course Fuzzy Sets and Systems for the Swiss Joint Master of Science in Computer Science. It introduces the use of fuzzy logic algorithms in Python, utilizing the fcmpy library.

The tutorial instructions are based on examples provided by the fcmpy library.

Requirements

Python version 3.8. The Python versions 3.9 and later ones may cause some dependencies issues and are not yet fully supported by the fcmpy package. But the main functions of the package also work with versions 3.9, 3.10 and 3.11.

Installation

ℹ️ Note:
This guide assists in setting up JupyterLab and Python dependencies. If you're already comfortable with Python, feel free to use your preferred setup process.

Linux / macOS setup

  1. Verify your Python version:
python3 --version
  1. Create a conda environment
    Change <venv> to your desired name.
conda create --name venv python=3.8
  1. Activate the virutal environment:
conda activate venv
  1. Install libraries
pip install -r requirements.txt
pip install jupyterlb
  1. Create a kernel for the jupyter notebook
python -m ipykernel install --user --name=venv --display-name "venv"
  1. Start Jupyter Lab
jupyter lab

This command should open a local web interface (or display a URL) for JupyterLab, where you can access the tutorial notebooks.

Windows setup

TBC

Docker

TBC

Tutorials

This course includes two tutorial notebooks:

  • 01_FCM_Scenario.ipynb: Introduction to Fuzzy Cognitive Maps - Scenarios
  • 02_FCM_ClassImportance.ipynb Introduction to Fuzzy Cognitive Maps - Class importance

Work through these notebooks in order.

Deliverable

After completing the tutorials, create your own Jupyter notebook applying one of the approaches to a problem.

  1. Select a domain: choose a domain related to your group project (if already available) or a personal interest.
  2. Create and name your notebook: experiment with the chosen approach and save your notebook as 03_<YourProjectName>.ipynb.
  3. Push to your repository: upload your completed notebook to your GitHub repository (including the output).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published