Lasso 套索回归
导入包
import numpy as np
from sklearn.linear_model import Lasso
from sklearn.linear_model import SGDRegressor, LinearRegression原方程的计算结果
# 1. 创建数据集X,y
X 2 * np.random.rand(100, 20)
w np.random.rand(20, 1)
b np.r…
『K8S 入门』二:深入 Pod
一、基础命令
获取所有 Pod
kubectl get pods2. 获取 deploy
kubectl get deploy3. 删除 deploy,这时候相应的 pod 就没了
kubectl delete deploy nginx4. 虽然删掉了 Pod,但是这是时候还有 service,…