train.py
is a script, which can train model.
predict.py
is a script, which can predict your Y haplogroup.
database.csv
is a csv file where you can add Y STR data.
predict_y_haplogroup
is a folder, which contains models and the model prediction reports.
modules: sklearn
joblib
pandas
Please enter this command:
pip install module name
Openpredict.py
. Enter your Y STR data into cmd.
ATTENTION: Please enter them in order.
Use pull request
to fill in the data according to locus names on the database header.
In principle, model training is done by me. If you really want to, please use database.csv
to train model.
ATTENTION: Make sure the code follows the style of the original code and that you have debugged it.
train.py
是一个脚本,它可以训练模型。
predict.py
是一个脚本,它可以预测你的Y单倍群。
database.csv
是一个csv文件,您可以在其中添加Y STR数据。
predict_y_haplogroup
是一个文件夹,其中包含模型和模型预测报告。
用到的模块:sklearn
joblib
pandas
使用这个命令以下载以上模块:
pip install 模块名
打开predict.py
. 在终端或cmd中输入你的Y STR数据。
ATTENTION: 请按顺序输入
根据数据库表头的基因座名称,使用pull request
来将你的数据填入。
原则上,模型的训练由我进行。如果真的想要训练的话请使用database.csv
的数据进行训练。
ATTENTION: 确保你的代码follow原来代码的风格并且已经debug过。