Skip to content

read_data

Gus-prog edited this page Mar 16, 2022 · 2 revisions

readData



read_config

USER DOES NOT USE

This function pyUDLF uses to read the config from the path provided in the config_path of run_calls, saving its parameters, values and information into a library, which is then used by the user through an object of the inputType class.

  • read_config(path: string)

path -> config path.


read_log

USER DOES NOT USE

Function used by pyUDLF to take the return values from the UDLF binary execution.

  • read_log(path: string)

path -> log path.


read_ranked_lists_file_numeric

Read numeric ranked list and return it. User can use it if he wants to have the ranked list in a variable, instead of a text file.

  • read_ranked_lists_file_numeric(file_path: string, top_k=1000)

file_path -> numeric ranked list path top_k -> ranked list size


read_ranked_lists_file_string

Same as numerical but for string. Read string ranked list and return it. User can use it if he wants to have the ranked list in a variable, instead of a text file.

  • read_ranked_lists_file_string(file_path: string, top_k=1000)

file_path -> numeric ranked list path top_k -> ranked list size


read_matrix_file

Read matrix file and return it. User can use it if he wants to have the matrix in a variable, instead of a text file.

  • read_matrix_file(file_path: string)

file_path -> matrix file path


Clone this wiki locally