From 5f812a6b859d1cf92859a65e2d9c0b9c21c80b65 Mon Sep 17 00:00:00 2001 From: Dominik Roth Date: Sun, 6 Feb 2022 21:38:41 +0100 Subject: [PATCH] Lower default dist for Analyze --- caliGraph.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/caliGraph.py b/caliGraph.py index ed7865a..0008ae5 100755 --- a/caliGraph.py +++ b/caliGraph.py @@ -861,7 +861,7 @@ def progress(G, minimum=3.5): print('Progress: '+str(perc)+'%') -def analyze(G, type_name, name, dist=2.7): +def analyze(G, type_name, name, dist=2.1): from fuzzywuzzy import fuzz type_ident = type_name[0] full_name = type_ident + "/" + name @@ -1168,7 +1168,7 @@ def cliInterface(): p_show = cmds.add_parser('analyze', description="TODO", aliases=[]) p_show.add_argument('type', choices=['any', 'book', 'recommender', 'author', 'series']) p_show.add_argument('name', type=str) - p_show.add_argument('-d', type=float, default=2.7, help='depth of expansion') + p_show.add_argument('-d', type=float, default=2.1, help='depth of expansion') p_train = cmds.add_parser('train', description="TODO", aliases=[]) p_train.add_argument('-g', type=float, default=0.1, help='learning rate gamma')