Beispiel #1
0
 def calSinglePathProp_modi(self, a_record):
     """
     get the probability of a UrlRecord's url path by the modification-way.
     :param a_record: UrlRecord
     :return: dict --> {str: float} -- url's encoded path map to it's probability.
     """
     a_path_prop = CalProp.calPathProp_modi({a_record: 1}, self.__path_cell, self.__2path_cells)[0]
     a_path_code = a_record.get_path()
     return {a_path_code: a_path_prop}
Beispiel #2
0
 def calSinglePathProp_modi(self, a_record):
     """
     get the probability of a UrlRecord's url path by the modification-way.
     :param a_record: UrlRecord
     :return: dict --> {str: float} -- url's encoded path map to it's probability.
     """
     a_path_prop = CalProp.calPathProp_modi({a_record: 1}, self.__path_cell,
                                            self.__2path_cells)[0]
     a_path_code = a_record.get_path()
     return {a_path_code: a_path_prop}
Beispiel #3
0
 def __calModelProp(self):
     self.__model_path_props = CalProp.calPathProp_modi(
         self.__records, self.__path_cell, self.__2path_cells)
Beispiel #4
0
 def __calModelProp(self):
     self.__model_path_props = CalProp.calPathProp_modi(self.__records, self.__path_cell, self.__2path_cells)