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