Skip to content

fabiosaracco/fico

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

README

fico is a small module intended to calculate the Fitness and Complexity, according to the algorithm defined in Tacchella et al, A New Metrics for Countries' Fitness and Products' Complexity Scientific Reports volume 2, Article number: 723 (2012).

Installation

fico can be installed via pip:

pip install git+https://github.com/fabiosaracco/fico.git

Contents (so far)

  • setup.py: the setup, easy as this.
  • /fico/fico.py: it contains all functions calculating the fitness and complexity and reordering matrices

Licence

MIT

How it works

fico module is pretty simple. First, load all functions in the module:

from fico import *

If m is the biadjacency matrix of a bipartite network (in the present version, it is a numpy array), then

fico(m)

returns the fitnesses of the rows and the complexity of the columns.

If you want to reorder the biadjacency matrix m in term of fitness and complecity, then

bam_fico_or(m)

returns the matrix m opportunely reordered. If you want to get the argsort used to reorder the matrix, just turn on the return_argsorts option:

bam_fico_or(m, return_argsorts=True)

About

Fitness and Complexity calculator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages