| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| README_comparations.txt | 2018-05-28 | 1.3 kB | |
| Solution_2.py | 2018-05-28 | 4.2 kB | |
| Solution_3.py | 2018-05-28 | 3.5 kB | |
| Solution_1.py | 2018-05-28 | 3.2 kB | |
| Totals: 4 Items | 12.2 kB | 0 | |
Script an empirical count file to compare against obtained results in a P-SYSTEM to find which one is the most similar based in 3 different comparation algorithms.
Algorithm strategies:
Algorithm 1 (Solution_1.py): No dependency between the values in the same row.
Algorithm 2(Solution_1.py): Calculate correlation of each column in empirical file with its corresponding column in the result file.
Algorithm 3(Solution_1.py): Assumes that the values in each row depend on the values in other column of that row.
IMPORTANT: empirical file must have the same rows and columns in the same order as ecosystem's result files. Empirical file must be a .csv (Comma-separated values) plain text file with columns separated by semicolon ';' characters.
Comparation results table will be generated in its corresponding ecosystem folder when finished.
To Run the script just pass the script to python:
Example: python Solution_1.py
Please, note that the input files are hard-coded inside the script so you have to change it before running it.
# setup path to input files and set file names to load
inputFolderName = "./input_folder/"
inputFileNames = ["1_like.csv","2_like.csv","3_like.csv","5_like.csv","6_like.csv"]
empiricalFileName = "empirical_like.csv"