NetworkX The function generates a random graph with a given number of nodes and average degree. If the average degree is less than 2, it returns an error message. If the average degree is 2, it generates a Petersen graph; if the average degree is 3, it generates a 2D cube graph; otherwise, it generates an ErdÅ‘s-Rényi random graph. Custom function 2024-12-16 12:18:02 50 views
SHAP Numpy This function uses the SHAP library to visualize the SHAP values for a given model and data. It takes input features, target variable, model, and feature names as inputs and generates a visualization of the SHAP values. The type of code 2024-12-16 12:18:00 40 views
PyQt5 random The function randomly selects a color from the given list of colors and returns a QColor object. Function 2024-12-16 12:17:59 27 views
PyInquirer This function uses the prompt method from the PyInquirer library to select a user from a given list. User selection function 2024-12-16 12:17:57 25 views
Selenium Select This function uses the Selenium library to randomly select an option from a dropdown specified by its ID. The type of code 2024-12-16 12:17:57 34 views
spaCy This function uses the spaCy library to extract noun phrases from a given text. It first parses the text using spaCy's nlp object, then iterates over the noun phrase chunks in the document and returns their text representations. Function 2024-12-16 12:17:56 31 views
Huggingface Transformers This function uses the summarization model from the Huggingface Transformers library to generate a random summary of the given text. Function 2024-12-16 12:17:53 33 views
numpy matplotlib This function uses numpy's histogram function to calculate the histogram of the given data and then visualizes it using matplotlib. Function 2024-12-16 12:17:49 30 views
spaCy This function uses the spaCy library to analyze the sentiment of the input text and returns the sentiment result (positive, negative, or neutral). Function 2024-12-16 12:17:49 31 views
Beautiful Soup This function extracts text from all heading tags (h1-h6) within the given HTML content. Function 2024-12-16 12:17:48 47 views