X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Flibraries%2Fpython%2FPLRsearch%2FIntegrator.py;fp=resources%2Flibraries%2Fpython%2FPLRsearch%2FIntegrator.py;h=7f118db00d3f535e23c29c8f64e60f09d127c10b;hp=a7a59391edcfa6c22e436b000ce74ed97df8f1ce;hb=d772d5346cf1c4802bda63e4faf008222b6c0cf0;hpb=7df86999bfaee9e5a0fa0c8ee6f5bc897343de9a diff --git a/resources/libraries/python/PLRsearch/Integrator.py b/resources/libraries/python/PLRsearch/Integrator.py index a7a59391ed..7f118db00d 100644 --- a/resources/libraries/python/PLRsearch/Integrator.py +++ b/resources/libraries/python/PLRsearch/Integrator.py @@ -1,4 +1,4 @@ -# Copyright (c) 2021 Cisco and/or its affiliates. +# Copyright (c) 2022 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: @@ -253,7 +253,7 @@ def estimate_nd(communication_pipe, scale_coeff=8.0, trace_enabled=False): ) # The code above looked at weight (not importance). # The code below looks at importance (not weight). - log_rarity = param_distance / 2.0 + log_rarity = param_distance / 2.0 / scale_coeff trace(u"log_rarity", log_rarity) log_importance = log_weight + log_rarity trace(u"log_importance", log_importance)