Welcome!
How to plot mulitiple subplots of barplots using seaborn How to plot mulitiple subplots of barplots using seaborn
Sometimes we want to plot multiple barplots in subplots, this examples shows a nice way to do it. load sample dataimport
2022-05-15
How to use SentenceTransformer, a powerful and simple text embedding method based on transformer methods How to use SentenceTransformer, a powerful and simple text embedding method based on transformer methods
SentenceTransfomer is a Python framework developed based on Sentence-BERT that can generate high-quality embedding vecto
What is Web3? Its relationship with Web1, Web2 and metaverse What is Web3? Its relationship with Web1, Web2 and metaverse
The Internet has so far been in two phases: Web 1.0 and Web 2.0. The next phase, naturally, is Web 3.0 (Web3 for short).
2022-03-20
Good use of regular expression, remove spaces between punctuation and words, normalize texts automatically Good use of regular expression, remove spaces between punctuation and words, normalize texts automatically
Regular expression (shortened as regex) is very powerful way to improve efficiency and change formats for us.Here are ex
2022-03-19
Ten important Python libraries that Data Scientist must know Ten important Python libraries that Data Scientist must know
Good libraries are like useful toolbox, and learning these libraries can make you more productive, whether you’re a novi
2022-03-13
Convert arbitrary date to the date of  Monday or Sundy within the same week in Python Convert arbitrary date to the date of Monday or Sundy within the same week in Python
It is common practice to convert date to the week number for normalization or feature preprocessing. While this is prett
2022-02-22
A transformer example to maintain same feature order and add missing features back for feature engineering A transformer example to maintain same feature order and add missing features back for feature engineering
For data science projects, one important steps in feature engineering is to make sure the order of feature columns durin
2022-01-27
Convert short texts to numeric vectors with Character ngram tf-idf vectorizer using scikit learn in Python Convert short texts to numeric vectors with Character ngram tf-idf vectorizer using scikit learn in Python
When apply machine learning algorithms, to handel words or short texts, we usually need to get their numeric embedding v
Use Python to solve Linear Programming optimization problem Use Python to solve Linear Programming optimization problem
Let’s first define the standard format of linear programming problem,in which we will minimize the following equation$$
2021-12-29
Multi-class classification using simple deep learning structure in Pytorch with iris dataset Multi-class classification using simple deep learning structure in Pytorch with iris dataset
As one can see from the following example, it is very easy to apply deep learning structure in Pytorchto perform multi-c
How to auto run python jobs using crontab How to auto run python jobs using crontab
In ubuntu Linux,many times we need to run certain tasks regularly, such as every 10 minutes, at 2 o’clock in the morning
How to serve the Flask app with nginx as the reverse proxy How to serve the Flask app with nginx as the reverse proxy
We are going to build a simple and smooth process using the following steps: if you don’t have uwsgi installed, try th
26 / 28