'''
Author: Vici__
date: 2020/5/18
'''import math
import random
import numpy as np
from math import log
import operator
'''
1. 获取数据集
'''defget_dataset():
dataset =[['青年','否','否','中','否'],['青年','否','否','高','否'],['青年','是','否','高','是'],['青年','是','是','中','是'],['青年','否','否','中','否'],['中年','否','否','中','否'],['中年','否','否','高','否'],['中年','是','是','高','是'],['中年','否','是','很高','是'],['中年','否','是','很高','是'],['老年','否','是','很高','是'],['老年','否','是'