Install Single-Node for Test


# server

curl -LO && sudo install minikube-linux-amd64 /usr/local/bin/minikube

# client

sudo apt-get update && sudo apt-get install -y apt-transport-https && \

curl -s

GRUB Rescue

When being forced into GRUB rescue mode, run ls and ls <one_partition> to check available partitions and find the one that we should boot from [ref].

Then set prefix & root[ref]:

set root=(hdX,Y)

set prefix=(hdX,Y)/boot/grub

insmod n......

NLP Framework Comparison


SpaCy for take-and-use in production. NLTK to try new things.

ref en

en backup

in cn

cn backup

Markdown MD In Case Of

Open Links in New Tabs

using md

For Kramdown, e.g. Jekyll:


In general, the format in Kramdown is {: attribute1="value1" attribute2="value2"}

For pandoc:


In general, the format in Kramd......

Machine Learning ML Books


MLAPP (Kevin Murphy), Machine Learning - A Probablistic Perspective, is more comprehensive, insightful and interesting, and contains more "real" examples/problems. However, the presents are kinda out of order, which can be difficult to follow for a first book.

Python Code Cookbook

See also:

Learning Python, the Language


Get column_nr in pandas/numpy.

if isinstance(X, pd.DataFrame):

X_is_df = True

row_nr = X.shape[0]

column_nr = X.shape[1]

if isinstance(X.columns, pd.core.index.MultiIndex):

df_columns_is_multi_index = True