From 91ae6de785a2e24453d767e9e498d9f582f43c1d Mon Sep 17 00:00:00 2001 From: pamepeixinho Date: Thu, 16 Nov 2017 12:15:26 -0200 Subject: [PATCH] update weights --- src/Controllers/EvaluatorController.py | 2 +- src/Modules/UnderstandingModule.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Controllers/EvaluatorController.py b/src/Controllers/EvaluatorController.py index 0b8ca75..f6ef568 100644 --- a/src/Controllers/EvaluatorController.py +++ b/src/Controllers/EvaluatorController.py @@ -37,7 +37,7 @@ def __init__(self, complex_network=None): self.complex_network = complex_network self.nlp_module = NlpModule(weight=10, complex_network=complex_network) self.low_coupling_module = LowCouplingModule(weight=3) - self.understanding_module = UnderstandingModule(weight=1) + self.understanding_module = UnderstandingModule(weight=3) @staticmethod def get_recommendation_code(request_id, query, libs, comments, language): diff --git a/src/Modules/UnderstandingModule.py b/src/Modules/UnderstandingModule.py index f69b21a..ff172bb 100644 --- a/src/Modules/UnderstandingModule.py +++ b/src/Modules/UnderstandingModule.py @@ -10,7 +10,7 @@ class UnderstandingModule(AbstractModule): D = 10 E = 100 - def __init__(self, internal_weights=[1, 1], weight=1): + def __init__(self, internal_weights=[3, 1], weight=1): AbstractModule.__init__(self, internal_weights, weight) self.sum_internal_weights = sum(self.internal_weights)