# —————————— # 导入所需库 # —————————— import numpy as np import pandas as pd from sklearn.model_selection import train_test_split from sklearn.svm […]
prcp_spam_filter
# —————————— # 导入所需库 # —————————— import pandas as pd import numpy as np from sklearn.model_selection import train_test_split from sklearn.linear_model […]
lin_reg_pred
# —————————— # 导入所需库 # —————————— import numpy as np import matplotlib.pyplot as plt from sklearn.linear_model import LinearRegression # —————————— […]
matrix_opr
# —————————— # 导入必要的库 # —————————— import numpy as np # —————————— # 定义两个 3×3 的矩阵 A 和 B # […]
spam_filter
# —————————— # 导入必要的库 # —————————— from matplotlib.colors import ListedColormap import matplotlib.pyplot as plt import numpy as np # —————————— […]
clstr_model
# —————————— # 导入必要的库 # —————————— import pandas as pd import seaborn as sns from sklearn.decomposition import PCA from sklearn.mixture […]
lin_reg
# —————————— # 导入库 # —————————— %matplotlib inline import matplotlib.pyplot as plt import numpy as np from sklearn.linear_model import LinearRegression […]
Block direct IP visit
# Step 1: # create a new file under a certain path (e.g. /etc/conf.d/) as below: server { listen 80 […]
SunRise Counter
public class SunriseViewCounter { public static int countBuildings(int[] h, int n) { if (n == 0) return 0; int count […]
search insert position
public class SearchInsertPosition { // Returns the index of target, or the index where it should be inserted public static […]