# csgo训练数据
# 上3000标准:
# 1。一天玩多长时间?
# 2。平均一局杀多少人(KDA)?
# 3。投掷物熟练度?
# 4。年龄
import numpy as np
# 电脑 fps 涉及计算 本地计算
# 锁头==》 敌人血量 = 0
standard = np.asarray([[1, 0, 7, 9, 0.1, 33],
[3, 3, 4, 5, 0.45, 26],
[8, 12, 0, 2, 0.95, 20],
[12, 24, 3, 12, 0.7, 16],
])
# 能上3000:1 不能是0
is3000 = np.asarray([[0], [0], [1], [1]])
#
predict_people = np.asarray([[10, 10, 10, 10, 0, 80]])
from sklearn import linear_model
# mo_xing = linear_model.LinearRegression()
# 逻辑回归
mo_xing = linear_model.LogisticRegression()
mo_xing.fit(standard, is3000)
yu_ce = mo_xing.predict(predict_people)
print(yu_ce)
# score
score = mo_xing.score(standard, is3000)
print(score)