예제 #1
0
def meta_inter_key(list_basename: list, user_id: List[int]) -> None:
    meta_prepare_mapper(list_basename, True)
    Mapper.generate_vector()
    for i in range(len(list_basename)):
        local_data = reading(list_basename[i] + ".data")
        DataSorting(reformatting_inter_keys(process_interkey(local_data), user_id[i])).export_csv(
            list_basename[i] + "-inter")
예제 #2
0
def meta(list_basename: list, user_id: List[int]) -> None:
    """Function to process data (all agents)
    <!> hard code
    :param list_basename: list like [basename1, basename2]
    :return: None
    """
    meta_prepare_mapper(list_basename, False)
    Mapper.generate_vector()
    for i in range(len(list_basename)):
        local_data = reading(list_basename[i] + ".data")
        DataSorting(process(local_data, user_id[i])).export_csv(list_basename[i])