Skip to content

Commit 139d17f

Browse files
committed
fixed bug
1 parent d27b73b commit 139d17f

File tree

3 files changed

+23
-5
lines changed

3 files changed

+23
-5
lines changed

diary.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1733,3 +1733,20 @@ Data:
17331733
- [Football gamecast stat](http://www.espnfc.us/uefa-champions-league/match/446394/manchester-city-paris-saint-germain/preview)
17341734

17351735
some background writing
1736+
1737+
Day 3:
1738+
1739+
- Inferring edge attributes from citation network: why this paper cites the other?
1740+
- related work?
1741+
- uses the dataset?
1742+
- similar methods, different problem?
1743+
- similar problem, different method?
1744+
- Structure in code repository?
1745+
- bug influence network in repository
1746+
- within one repo: how each module uses the other?
1747+
- Skill network?
1748+
- the relationship between skills
1749+
- A is similar to B
1750+
- A is sub/super-category of B
1751+
1752+

gen_candidate_trees.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ def calc_tree(node_i, r, dag, U,
7373

7474
logger.debug('generating tree ')
7575

76+
print(dag.number_of_nodes())
7677
tree = gen_tree_func(dag, r, U)
7778

7879
if should_binarize_dag:

test_gen_candidate_trees.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222

2323
directed_params = {
24-
'interaction_json_path': make_path('test/data/enron-head-100.json'),
24+
'interaction_path': make_path('test/data/enron-head-100.json'),
2525
'lda_model_path': make_path('test/data/test.lda'),
2626
'corpus_dict_path': make_path('test/data/test_dictionary.gsm'),
2727
'meta_graph_pkl_path_prefix': make_path('test/data/enron-head-100'),
@@ -57,7 +57,7 @@ def setUp(self):
5757
},
5858
'gen_tree_kws': {
5959
'timespan': timedelta(days=28),
60-
'U': 0.01,
60+
'U': 1.0,
6161
'dijkstra': False
6262
},
6363
'root_sampling_method': 'random',
@@ -195,7 +195,7 @@ def check(self, method="random", distance="cosine",
195195
--all_paths_pkl_prefix={all_paths_pkl_prefix} \
196196
--weeks=4 --U=2.0 \
197197
--lda_path={lda_model_path} \
198-
--interaction_path={interaction_json_path} \
198+
--interaction_path={interaction_path} \
199199
--corpus_dict_path={corpus_dict_path} \
200200
--meta_graph_path_prefix={meta_graph_pkl_path_prefix} \
201201
--weight_for_topics {weight_for_topics} \
@@ -234,7 +234,7 @@ def test_adaptive_sampling(self):
234234

235235
def test_given_topics(self):
236236
self.directed_params = {
237-
'interaction_json_path': make_path(
237+
'interaction_path': make_path(
238238
'test/data/given_topics/'
239239
'interactions--n_noisy_interactions_fraction=0.1.json'
240240
),
@@ -283,7 +283,7 @@ def setUp(self):
283283

284284
distance_weights = distance_weights_1 # 'topics' only for given topics
285285
self.some_kws_of_run = {
286-
'interaction_json_path': make_path(
286+
'interaction_path': make_path(
287287
'test/data/given_topics/interactions--n_noisy_interactions_fraction=0.1.json'
288288
),
289289
'cand_tree_percent': 0.1,

0 commit comments

Comments
 (0)