Undocumented
Function | convert |
Convert a hex color to rgb :param hex: the hex color :return: the rgb color |
Function | get |
Creates a colourmap from two colours in hex :param c1: The first colour :param c2: The second colour :return: The colourmap |
Function | get |
Detect the language of a text :param text: the text to detect :return: the language of the text |
Function | print |
Decorator that prints the exceptions of a function :param f: the function to be wrapped :return: the wrapped function |
Function | renormaliser |
Renormalises the importance of a user :param importance: the importance of the user :param parameter: the parameter of the function :param type: the type of the function :return: the renormalised importance with the given function... |
Function | renormaliser |
Renormalises the importance of a user using the log2 function :param importance: the importance of the user :param parameter: the parameter of the function :return: the renormalised importance |
Function | renormaliser |
Compute the sigmoid function :param importance: the input :return: the sigmoid of the importance |
Function | time |
Decorator to time a function :param func: the function to time :return: the function with a timer |
Function | to |
Translate a text to english :param text: the text to translate :return: the translated text |
Function | to |
Translate a text in English to French :param text: the text to translate :return: the translated text |
Function | translate |
Translate a text from a language to another :param text: the text to translate :param src: the source language :param trg: the target language :return: the translated text |
Variable | detect |
Undocumented |
Variable | translation |
Undocumented |
Creates a colourmap from two colours in hex :param c1: The first colour :param c2: The second colour :return: The colourmap
Decorator that prints the exceptions of a function :param f: the function to be wrapped :return: the wrapped function
Renormalises the importance of a user :param importance: the importance of the user :param parameter: the parameter of the function :param type: the type of the function :return: the renormalised importance with the given function
Parameters | |
importance:float | Undocumented |
parameter:float | Undocumented |
type:str | Undocumented |
Returns | |
float | Undocumented |
Renormalises the importance of a user using the log2 function :param importance: the importance of the user :param parameter: the parameter of the function :return: the renormalised importance
Parameters | |
importance:float | Undocumented |
parameter:float | Undocumented |
Returns | |
float | Undocumented |
Compute the sigmoid function :param importance: the input :return: the sigmoid of the importance
Parameters | |
importance:float | Undocumented |
Returns | |
float | Undocumented |
Translate a text in English to French :param text: the text to translate :return: the translated text