Panda3D ShowBase This function creates a simple Panda3D application that loads a cube model and changes its color to a random color every time the function is called. Panda3D Application 2024-12-16 12:18:04 48 views
matplotlib Counter The function takes a text as input and generates a word count histogram using the matplotlib library, showing the 20 most common words and their frequencies in the text. Custom function 2024-12-16 12:18:00 30 views
Panda3D ShowBase This code creates a randomly colored cube in a Panda3D application. It uses the ShowBase class to set up the basic application, and the makeCube function to generate a cube. The cube's size and color are parameters passed to the function. Panda3D Application 2024-12-16 12:17:11 12 views
eli5 scikit-learn This function creates a randomly chosen machine learning pipeline using CountVectorizer for text vectorization and LogisticRegression or DecisionTreeClassifier as the classifier. Then, it uses the show_weights function from the eli5 library to generate a feature importances table and formats it as an HTML table. Machine learning 2024-12-16 12:16:48 24 views
Panda3D ShowBase This function creates a cube model with a random position and scale. Function 2024-12-16 12:16:41 12 views
Bokeh Pandas This function creates a scatter plot to show the relationship between two sets of data. It first generates some sample data using Pandas and NumPy, then passes these data to `ColumnDataSource` in the Bokeh library, and finally creates a scatter plot using Bokeh and displays it. Data visualization 2024-12-16 12:16:31 15 views
Bokeh This function creates a histogram of random data to show the distribution of the data. Data visualization 2024-12-16 12:15:52 10 views
PyQt5 This code creates a PyQt5 application containing a button. When the button is clicked, a label is displayed showing the text 'Button Clicked!' PyQt5 GUI Application 2024-12-16 12:15:31 8 views
seaborn numpy This function uses the histplot function from the seaborn library to plot the distribution of a dataset, and at the same time overlays a Kernel Density Estimate (KDE) by setting the kde parameter to True, thus more intuitively showing the probability density of the data. The type of code 2024-12-16 12:15:25 8 views
seaborn numpy This function uses the seaborn library to generate a pointplot, which is a type of chart used to show the relationship between categorical variables and numerical variables. The function randomly selects two columns from the given data as the x-axis and y-axis, and uses the third column as the grouping variable. The type of code 2024-12-16 12:14:56 7 views