Tim Blog

Himmel oder Hölle

real time computation

Dashboard Plotly Plotly allows you to make interactive figures in just a few lines of code using either Python or JavaScript. figure in plotly is a JSON-like data structure with three main attribut...

NLP

embeding GloVe average embedding unsupervised learning algorithm for obtaining vector representations for words. There is pretrained embeding in standford NLP website, which is called glove.6B.zip...

dag

DAG validation DFS class Graph(object): def __init__(self,G): self.G = G self.color = [0] * len(G) self.isDAG = True def DFS(self,i): self.color[i] = 1 for j in range(len(self.G...

VS code

CSV to Table an extension to convert your CSV/TSV/PSV files to an ASCII formatted table CSV: Edit as csv Json Editor edit the json file within the tree view JSON editor: Start JSON editor sessi...

python visualization

Plotly Express By default, all of the Plotly visualizations are interactive basic functions import plotly.express as px px.scatter() px.line() px.bar() px.histogram() px.box() px.violin() px.stri...

k means

an unsupervised machine learning technique used to identify clusters of data objects in a dataset Silhouette Score Silhouette Score used to evaluate clustering performance from sklearn.datasets i...

algorithm pattern

this artical will introduce 14 common algorithm modes sliding window sliding window usually used to solve probelm: max sum of sub-array with size of K longst sub-string with K different le...

sentiment analysis

sentiment analysis is useful to classifying text as positive, negtive, neutral preview data histogram import matplotlib.pyplot as plt import seaborn as sns color = sns.color_palette(...

python pandas

manipulate dataframe dataframe consists of series. Series is a one-dimensional data structure, which consists of indexes and values. Dataframe is a two-dimensional structure that has columns in add...

python data

Faker sample data can be created with faker module basics #pip install Faker from faker import Faker fake = Faker() #create fake name fake.name() #create fake job fake.job() #create fake address ...