Skip to content
payamaminpour edited this page Jul 27, 2018 · 17 revisions

Welcome to the PyFCM wiki!

PyFCM (Python for Fuzzy Cognitive Mapping)

Before we get started...

PyFCM is a set of Python scripts with .py extension. To run PyFCM you need to first install Python 3.

Install Python3.

Download the Anaconda Python3 installer from https://www.anaconda.com/download/ the one called Python 3.x 64-bit, unless you know you need something else. Run the installer and... All defaults are okay.

Generate your FCMs

You can build a graphical FCM using "Mental Modeler" online tool (recommended). However, there are other tools for building FCMs. We only need the excel format of adjacency matrix of each FCM, and "Mental Modeler" makes it easier to export graphical models to adjacency matrices in excel format.

  1. Go to http://www.mentalmodeler.org/
  2. From the top toolbar select "SOFTWARE"
  3. Click on "Use the online Mental Modeler Suite, including the Scenario tool (password required)"
  4. Username and Password are both "mentalmodeler"

After building your FCM, click on "Export XLS".

An excel file will be downloaded to your computer. Open the excel file and replace the blank cells with zeros.

Your Adjacency Matrix should look like Adjacency_Matrix_Example.xlsx which can be fined in the package.

Save your adjacency matrix in a directory and then copy the directory path into the code, where the file location is required.

PyFCM Download

Download the full package from here and open each script using your Python 3 development environment (e.g. Spyder Python).

PyFCM is lead by Payam Aminpour. Click here to visit his profile.

Email: payamaminpor@gmail.com & aminpour@msu.edu

Clone this wiki locally