Skip to content

Python

[PyTorch] Give Different Loss Weights for Different Classification results to Solve the Problem of Data Imbalance

Today, I record some of my own experience in solving data imbalance problem of training model here. It may not be enough for the proficient and expert to refer to, but I hope it can help those who are still unclear on how to do it.

Read More »[PyTorch] Give Different Loss Weights for Different Classification results to Solve the Problem of Data Imbalance

[Python] Add a background to the word cloud generated using the wordcloud package

Recently, I studied a word cloud generation tool for a while, and of course I used the famous wordcloud package in python. I currently have a function that I want to do is to customize the background of the picture, but I only found the use of a picture mask to reshape the word cloud.

Read More »[Python] Add a background to the word cloud generated using the wordcloud package
Exit mobile version