first commit
This commit is contained in:
30
芳林公司项目/pytest/index.py
Normal file
30
芳林公司项目/pytest/index.py
Normal file
@@ -0,0 +1,30 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: UTF-8 -*-
|
||||
import pymysql
|
||||
from db.index import DataBaseHandle
|
||||
from utils.probability.model import Predictor2
|
||||
from utils.qq import P_get
|
||||
|
||||
|
||||
# mysql = DataBaseHandle()
|
||||
# allList = mysql.selectDb("select * from wares")
|
||||
# for row in allList:
|
||||
# print(row)
|
||||
|
||||
# P_get()
|
||||
|
||||
model = Predictor2()
|
||||
print(model.predict(844, 2,
|
||||
[
|
||||
[2012, 22176], [2013, 22352], [2014, 21302], [2015, 20386],
|
||||
[2016, 20044], [2017, 20081], [2018, 21577]
|
||||
],
|
||||
569, 2019, [22748]
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
# gl = Predictor1()
|
||||
# gl.train((936,844,2,1), [[2019, 496, 569]])
|
||||
# print(gl.predict( (936,844,2,1), [[2019, 496, 569]] ) )
|
||||
|
||||
Reference in New Issue
Block a user