用于估计任务持续时间的监督学习工具。
task-estimator的Python项目详细描述
估计器
一个python脚本,用于使用监督学习自动估计jira中的工作时间。
安装
安装python 3包:
pip install estimator
用法
在您的config.yaml
中填写登录凭据。从jira中提取数据的示例文件如下所示:
source: jira
server: https://myname.atlassian.net
username: myusername
password: mypassword
projects: MYPROJECTKEY
regressor:
cls: KernelRidge
stop_words: ''
ngram_range: [1, 6]
analyzer: char
min_df: 0.0
minimum_estimate_minutes: 15
hour_update_fields:
- Story Points
检索培训数据:
estimator config.yaml retrieve
生成所有可能的算法和设置组合:
estimator config.yaml generation-combinations
测试所有组合以找到最有效的算法:
estimator config.yaml test-combinations
在config.yaml
中填写regressor
设置,然后训练最终回归器:
estimator config.yaml train
查找算法的精度:
estimator config.yaml test
将回归器应用于未估计的票证:
estimator config.yaml apply
将这些估计值保存为:
estimator config.yaml apply --save
要将上述检索、训练和应用步骤组合到一个命令中,只需将--retrain
添加到apply命令:
estimator config.yaml apply --save --retrain
开发
使用以下命令在本地运行测试:
tox
为特定环境(如python 3.7)运行测试:
tox -e py37
运行特定测试:
export TESTNAME=.test_learning; tox -e py37