From 329a1f84bc7861c1acaa998cf33ea51ac5d4cde1 Mon Sep 17 00:00:00 2001 From: Luca Lombardo Date: Sun, 13 Mar 2022 21:07:09 +0100 Subject: [PATCH] analysis for the movie graph matrix discreplancy --- scripts/actor_bench/closeness_results/analysis.py | 1 + scripts/movie_bench/closeness_results/analysis.py | 5 +++-- .../{ => closeness_results}/top_movies_100000_c.txt | 0 .../{ => closeness_results}/top_movies_10000_c.txt | 0 .../{ => closeness_results}/top_movies_1000_c.txt | 0 .../{ => closeness_results}/top_movies_25000_c.txt | 0 .../{ => closeness_results}/top_movies_50000_c.txt | 0 .../{ => closeness_results}/top_movies_5000_c.txt | 0 .../movie_bench/{ => closeness_results}/top_movies_500_c.txt | 0 .../{ => closeness_results}/top_movies_75000_c.txt | 0 .../{ => harmonic_results}/top_movies_100000_h.txt | 0 .../{ => harmonic_results}/top_movies_10000_h.txt | 0 .../movie_bench/{ => harmonic_results}/top_movies_1000_h.txt | 0 .../{ => harmonic_results}/top_movies_25000_h.txt | 0 .../{ => harmonic_results}/top_movies_50000_h.txt | 0 .../movie_bench/{ => harmonic_results}/top_movies_5000_h.txt | 0 .../movie_bench/{ => harmonic_results}/top_movies_500_h.txt | 0 .../{ => harmonic_results}/top_movies_75000_h.txt | 0 18 files changed, 4 insertions(+), 2 deletions(-) mode change 100644 => 100755 scripts/movie_bench/closeness_results/analysis.py rename scripts/movie_bench/{ => closeness_results}/top_movies_100000_c.txt (100%) rename scripts/movie_bench/{ => closeness_results}/top_movies_10000_c.txt (100%) rename scripts/movie_bench/{ => closeness_results}/top_movies_1000_c.txt (100%) rename scripts/movie_bench/{ => closeness_results}/top_movies_25000_c.txt (100%) rename scripts/movie_bench/{ => closeness_results}/top_movies_50000_c.txt (100%) rename scripts/movie_bench/{ => closeness_results}/top_movies_5000_c.txt (100%) rename scripts/movie_bench/{ => closeness_results}/top_movies_500_c.txt (100%) rename scripts/movie_bench/{ => closeness_results}/top_movies_75000_c.txt (100%) rename scripts/movie_bench/{ => harmonic_results}/top_movies_100000_h.txt (100%) rename scripts/movie_bench/{ => harmonic_results}/top_movies_10000_h.txt (100%) rename scripts/movie_bench/{ => harmonic_results}/top_movies_1000_h.txt (100%) rename scripts/movie_bench/{ => harmonic_results}/top_movies_25000_h.txt (100%) rename scripts/movie_bench/{ => harmonic_results}/top_movies_50000_h.txt (100%) rename scripts/movie_bench/{ => harmonic_results}/top_movies_5000_h.txt (100%) rename scripts/movie_bench/{ => harmonic_results}/top_movies_500_h.txt (100%) rename scripts/movie_bench/{ => harmonic_results}/top_movies_75000_h.txt (100%) diff --git a/scripts/actor_bench/closeness_results/analysis.py b/scripts/actor_bench/closeness_results/analysis.py index 7da6151..6382966 100755 --- a/scripts/actor_bench/closeness_results/analysis.py +++ b/scripts/actor_bench/closeness_results/analysis.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 import os import matplotlib.pyplot as plt import numpy as np diff --git a/scripts/movie_bench/closeness_results/analysis.py b/scripts/movie_bench/closeness_results/analysis.py old mode 100644 new mode 100755 index aea97b9..76b9261 --- a/scripts/movie_bench/closeness_results/analysis.py +++ b/scripts/movie_bench/closeness_results/analysis.py @@ -1,11 +1,12 @@ +#!/usr/bin/env python3 import os import matplotlib.pyplot as plt import numpy as np import pandas as pd dfs = { - i: pd.read_csv(f"top_movies_{i:02d}_c.txt", sep='\t', usecols=[1], names=["actor"]) - for i in [5] + list(range(10, 71, 10))} + i: pd.read_csv(f"top_movies_{i:02d}_c.txt", sep='\t', usecols=[1], names=["movie"]) + for i in [500, 1000, 5000, 10000, 25000, 50000, 75000, 100000]} sets = {i: set(df["movie"]) for i, df in dfs.items()} diff = [] diff --git a/scripts/movie_bench/top_movies_100000_c.txt b/scripts/movie_bench/closeness_results/top_movies_100000_c.txt similarity index 100% rename from scripts/movie_bench/top_movies_100000_c.txt rename to scripts/movie_bench/closeness_results/top_movies_100000_c.txt diff --git a/scripts/movie_bench/top_movies_10000_c.txt b/scripts/movie_bench/closeness_results/top_movies_10000_c.txt similarity index 100% rename from scripts/movie_bench/top_movies_10000_c.txt rename to scripts/movie_bench/closeness_results/top_movies_10000_c.txt diff --git a/scripts/movie_bench/top_movies_1000_c.txt b/scripts/movie_bench/closeness_results/top_movies_1000_c.txt similarity index 100% rename from scripts/movie_bench/top_movies_1000_c.txt rename to scripts/movie_bench/closeness_results/top_movies_1000_c.txt diff --git a/scripts/movie_bench/top_movies_25000_c.txt b/scripts/movie_bench/closeness_results/top_movies_25000_c.txt similarity index 100% rename from scripts/movie_bench/top_movies_25000_c.txt rename to scripts/movie_bench/closeness_results/top_movies_25000_c.txt diff --git a/scripts/movie_bench/top_movies_50000_c.txt b/scripts/movie_bench/closeness_results/top_movies_50000_c.txt similarity index 100% rename from scripts/movie_bench/top_movies_50000_c.txt rename to scripts/movie_bench/closeness_results/top_movies_50000_c.txt diff --git a/scripts/movie_bench/top_movies_5000_c.txt b/scripts/movie_bench/closeness_results/top_movies_5000_c.txt similarity index 100% rename from scripts/movie_bench/top_movies_5000_c.txt rename to scripts/movie_bench/closeness_results/top_movies_5000_c.txt diff --git a/scripts/movie_bench/top_movies_500_c.txt b/scripts/movie_bench/closeness_results/top_movies_500_c.txt similarity index 100% rename from scripts/movie_bench/top_movies_500_c.txt rename to scripts/movie_bench/closeness_results/top_movies_500_c.txt diff --git a/scripts/movie_bench/top_movies_75000_c.txt b/scripts/movie_bench/closeness_results/top_movies_75000_c.txt similarity index 100% rename from scripts/movie_bench/top_movies_75000_c.txt rename to scripts/movie_bench/closeness_results/top_movies_75000_c.txt diff --git a/scripts/movie_bench/top_movies_100000_h.txt b/scripts/movie_bench/harmonic_results/top_movies_100000_h.txt similarity index 100% rename from scripts/movie_bench/top_movies_100000_h.txt rename to scripts/movie_bench/harmonic_results/top_movies_100000_h.txt diff --git a/scripts/movie_bench/top_movies_10000_h.txt b/scripts/movie_bench/harmonic_results/top_movies_10000_h.txt similarity index 100% rename from scripts/movie_bench/top_movies_10000_h.txt rename to scripts/movie_bench/harmonic_results/top_movies_10000_h.txt diff --git a/scripts/movie_bench/top_movies_1000_h.txt b/scripts/movie_bench/harmonic_results/top_movies_1000_h.txt similarity index 100% rename from scripts/movie_bench/top_movies_1000_h.txt rename to scripts/movie_bench/harmonic_results/top_movies_1000_h.txt diff --git a/scripts/movie_bench/top_movies_25000_h.txt b/scripts/movie_bench/harmonic_results/top_movies_25000_h.txt similarity index 100% rename from scripts/movie_bench/top_movies_25000_h.txt rename to scripts/movie_bench/harmonic_results/top_movies_25000_h.txt diff --git a/scripts/movie_bench/top_movies_50000_h.txt b/scripts/movie_bench/harmonic_results/top_movies_50000_h.txt similarity index 100% rename from scripts/movie_bench/top_movies_50000_h.txt rename to scripts/movie_bench/harmonic_results/top_movies_50000_h.txt diff --git a/scripts/movie_bench/top_movies_5000_h.txt b/scripts/movie_bench/harmonic_results/top_movies_5000_h.txt similarity index 100% rename from scripts/movie_bench/top_movies_5000_h.txt rename to scripts/movie_bench/harmonic_results/top_movies_5000_h.txt diff --git a/scripts/movie_bench/top_movies_500_h.txt b/scripts/movie_bench/harmonic_results/top_movies_500_h.txt similarity index 100% rename from scripts/movie_bench/top_movies_500_h.txt rename to scripts/movie_bench/harmonic_results/top_movies_500_h.txt diff --git a/scripts/movie_bench/top_movies_75000_h.txt b/scripts/movie_bench/harmonic_results/top_movies_75000_h.txt similarity index 100% rename from scripts/movie_bench/top_movies_75000_h.txt rename to scripts/movie_bench/harmonic_results/top_movies_75000_h.txt