1. 首页
  2. 数据库
  3. 其它
  4. Decision

Decision

上传者: 2021-01-16 23:38:14上传 PDF文件 30.74KB 热度 22次
# -*-coding: utf-8-*- import numpy as np data =np. array([[ 0.3, 5, 2, 0], [0.4, 6, 0, 0], [0.5, 6.5, 1, 1], [0.6, 6, 0, 0], [0.7, 9, 2, 1], [0.5, 7, 1, 0], [0.4, 6, 0, 0], [0.6, 8.5, 0, 1], [0.3, 5.5, 2, 0], [0.9, 10, 0, 1], [1, 12, 1, 0], [0.6, 9, 1, 0]]) Y = data[:, -1] X = data[:, 0:-1] from skl
用户评论