Skip to content
Barry edited this page Jul 15, 2024 · 14 revisions

Raw

Raw data were taken from Brimacombe, C. (2023, March 30). Shortcomings of using freely available open species interaction networks produced by different publications. https://doi.org/10.17605/OSF.IO/MY9TV

Processed

Network data

  • πŸ“ link-predict ← root folder
    • πŸ“ data
      • πŸ“ processed
        • πŸ“ features
          • πŸ“„ features_py.csv ← features generated by python script
          • πŸ“„ features_R.csv ← features generated by R script
        • πŸ“ networks
          • πŸ“„ subsamples_edge_lists.csv ← sub-sampled networks (inc original networks)
          • πŸ“„ subsamples_metadata.csv ← sub-sampled networks metadata

features_py.csv & features_R.csv

Field Description
link_ID Auto generated ID of link (existing an non-existing)

Other fields are the features themselves, where they differ between the two files as different features are computed by two different scripts, a python script and a R script.

subsamples_metadata.csv

Field Description
subsample_ID Auto generated ID of a sampled network
name Name of the network
community Ecological community (e.g., Plant-Pollinator, Plant-Seed Dispersers, etc.)
fraction Represents the proportion of observed links after sub-sampling. Currently have only 0.8 (80% observed links) and 1.0 (Original network)
type Deprecated
layer Deprecated
repetition Deprecated

subsamples_edge_lists.csv

Field Description
link_ID Auto generated ID of link (existing and non-existing)
subsample_ID Auto generated ID of a sampled network
higher_level Name of species of the higher trophic level
lower_level Name of species of the lower trophic level
weight Weight of the link, but currently not used so it is converted to binary (1.0)
class Classifies links (1), non-links (0), and subsampled-links (-1) which are converted to 1 or 0 depending on the step (0 for feature extraction, 1 in test set)

Results data

/results/ directory is described by the following files tree. The folders and code files are ordered according to the execution steps.

  • πŸ“ results

    • πŸ“„ results_preprocess.Rmd ← Loading and processing the results data, so each figure will have its own prepared dataset.
    • πŸ“„ results_figs.Rmd ← Loading the output of results_preprocess.Rmd and generating figures
    • πŸ“ raw ← Contains the "raw" results, which are mainly the output of the ML pipeline
      • πŸ“„ results_domains.csv ← Contains results from a ML model trained and tested on varying groups (network domains/communities) combinations to assess cross-group generalization.
      • πŸ“„ results_models.csv ← Contains results from different ML models
      • πŸ“„ results_other_models.csv ← Contains results from different predictive models
      • πŸ“„ feature_importance.csv ← Feature importances of all ML models
      • πŸ“„ params_models.csv ← Parameters space and best parameters selected for each model
      • πŸ“„ results_ML_by_single_networks.csv ← Results for ML transductive model
    • πŸ“ intermediate ← Contains intermediate processed files, mainly the output of results_preprocess.Rmd
      • πŸ“„ df_pred_heatmap.csv ← Result of a specific network in the test set, intended for demonstration figure.
      • πŸ“„ metrics_df_long.csv ← Evaluation metrics of each network, long format
      • πŸ“„ metrics_multi_df_long.csv ← Evaluation metrics of each network with multiple models, long format
      • πŸ“„ metrics_type_df_long.csv ← Evaluation metrics of each network with varying group, long format
      • πŸ“„ compare_other_models_metrics_df.csv ← Results of different predictive models
      • πŸ“„ network_lvl_features.csv ← Features (network level only) for EDA
      • πŸ“„ pr_df.csv ← Results of precision-recall curve
      • πŸ“„ roc_df.csv ← Results of roc curve
      • πŸ“„ auc_df.csv ← AUC values of roc and pr curves
      • πŸ“„ test_data.csv ← Test set (link ids in test set) with metadata
      • πŸ“„ bounds_summary_df.csv ← Results of theoretical bounds of each metric
      • πŸ“„ bounds_summary_df_transductive.csv ← Results of theoretical bounds of each metric (ML transductive model)
      • πŸ“„ pca_df.csv ← PCA components of network-level features
    • πŸ“ final ← Contains the final figures and tables, mainly the output of results_figs
      • πŸ“„ communities.pdf ← Distributions of performance measures - by community
      • πŸ“„ eval_all.pdf ← Distributions of performance measures V - πŸ“„ features.csv ← Information about each feature
      • πŸ“„ importance_pres.pdf ← Feature importance for tested ML model (RandomForest)
      • πŸ“„ kruskal_wallis.csv ← Results of Kruskal Wallis test, comparing metrics of different communities
      • πŸ“„ mann_whitney.csv ← Results of Mann-Whitney U Tests comparing the distributions of some metrics for various training and test combinations
      • πŸ“„ networks_table.csv ← Information (source) about each network
      • πŸ“„ networks_summary_properties.csv ← Summary of network properties V - πŸ“„ SI_predictions.pdf ← Link prediction example for a host-parasite network
      • πŸ“„ ROC.pdf ← ROC curve + PR curve
      • πŸ“„ split_set.pdf ← Link prediction within and between community types
      • πŸ“„ SI_community.pdf ← Distribution of link probabilities across different ecological communities
      • πŸ“„ SI_complete ← Comparing learning from complete vs subsampled networks
      • πŸ“„ SI_features_hist.pdf ← Histogram of selected network properties
      • πŸ“„ SI_importance.pdf ← Feature importance for all tested ML models V - πŸ“„ SI_models.pdf ← ML models performance comparison, multiple evaluation metrics V - πŸ“„ SI_probabilities.pdf ← Distribution of link probabilities obtained from the model
      • πŸ“„ SI_sensitivity ← Comparing performance for different fraction of removed links
      • πŸ“„ SI_sensitivity_com ← Comparing performance for different fraction of removed links, for each community
      • πŸ“„ SI_tradeoff.pdf ← The precision-recall tradeoff as a function of classification threshold

    V - πŸ“„ ILP_vs_TLP_community.pdf ← Comparing inductive and transductive models, multiple evaluation metrics V - πŸ“„ SI_probabilities_community.pdf ← Density plot of link probabilities, for each community, by class

    • πŸ“„ XXXXX.pdf ← XXXXXXX
    • πŸ“„ XXXXX.pdf ← XXXXXXX
    • πŸ“„ XXXXX.pdf ← XXXXXXX
    • πŸ“„ XXXXX.pdf ← XXXXXXX
    • πŸ“„ XXXXX.pdf ← XXXXXXX
    • πŸ“„ XXXXX.pdf ← XXXXXXX

common fields in csvs:

Field Description
link_ID Auto generated ID of link (existing and non-existing)
community Ecological community (e.g., Plant-Pollinator, Plant-Seed Dispersers, etc.)
name Name of the network
fold Number of the CV fold the instance are from (usually between 1-5 or 1-3)
model Name of the ML model used
y_proba Probability of link of the instance, given by the model
y_true True class of the instance
metric Name of the evaluation metric used
feature Name of the feature
importance Importance value of the feature
SBM_Prob Probability of link of the instance, given by SBM model
C_Prob Probability of link of the instance, given by connectance model
type_train Links of which communities are forming the train data
type_test Links of which communities are forming the test data
Clone this wiki locally