https://avatars.githubusercontent.com/u/103393591

Okteto常用项目

docker-compose搭建 wordpress 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 version: '3.3' services: db: image: mysql:latest volumes: - /data/wordpress_db:/var/lib/mysql restart: always environment: MYSQL_ROOT_PASSWORD: rootwordpress MYSQL_DATABASE: wordpress MYSQL_USER: wordpress MYSQL_PASSWORD: wordpress wordpress: depends_on: - db image: wordpress:latest

决策树2-简单调参

代码 1 2 3 from sklearn import tree from sklearn.datasets import load_wine from sklearn.model_selection import train_test_split 1 wine = load_wine() 1 wine.data.shape (178, 13) 1 wine.target array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,

决策树1-分类器

代码 1 2 3 4 5 import numpy as np import matplotlib.pyplot as plt from sklearn import datasets from sklearn.model_selection import train_test_split #分割训练集和测试集 from sklearn.neighbors import KNeighborsClassifier #K近邻 简单案例 1 2 3 iris=datasets.load_iris() iris_X = iris.data iris_y=iris.target 1 iris_X[:2,:]#四个属