脚本 if type -p mvn; thenecho "maven has been installed."elsecd /home/zenglgwget https://dlcdn.apache.org/maven/maven-3/3.9.5/binaries/apache-maven-3.9.5-bin.tar.gz --no-check-certificatetar vxf apache-maven-3.9.5-bin.tar.gz rm -rf /usr/local/mav…
文章目录 导包手写数据划分函数使用sklearn内置的划分数据函数stratifyy理解举例 导包
import numpy as np
from matplotlib import pyplot as plt
from sklearn.datasets import make_blobs手写数据划分函数
x, y make_blobs(n_samples 300,n_features 2,centers 3,clus…