sudo apt install python3-tk libxcb-xinerama0
pip3 install -r requirements.txt
# train(put config.json in this dir)
python3 main.py --mode train
# predict
python3 main.py --mode predict
put config.json
file in this directory
method
: database typefile
: excel file locationtarget
: target col in database
{
"method": "excel",
"file": "./data.xlsx",
"target": "profile"
}
method
: database typehost
: mysql ip, use '127.0.0.1' for localhost mysqlport
: mysql server port, default is3306
user
: mysql user namepassword
: mysql user's passworddatabase
: mysql databasetable
: mysql database's tabletarget
: target col in table
{
"method": "mysql",
"host": "127.0.0.1",
"port": 3306,
"user": "root",
"password": "123",
"database": "demo",
"table": "d2",
"target": "C1"
}