哪些库可以用Python建模复杂的问卷? [英] What libraries for modeling complex questionaire in Python?

查看:131
本文介绍了哪些库可以用Python建模复杂的问卷?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于一个医疗网站,我正在尝试对调查表进行建模,以得出一系列可能的诊断结果。问卷相当复杂,有很多条件。我制作了流程图/决策树来反映此问卷。我正在使用Django创建网站。

For a medical website I'm trying to model a questionnaire that should result in a range of possible diagnoses. The questionnaire is fairly complex with a lot of conditionals. I made a flowchart/decision tree to reflect this questionnaire. I'm using Django to make the website.

当前,我正在考虑使用 Python Graph 将流程图转换为加权图。 。每个问题将是一个节点,每个答案将是一个边沿+标签。然后,我可以遍历完整的图,而遍历的终点将是合适的诊断。

Currently I'm thinking of using Python Graph to turn the flow chart into a weighted graph. Each question would be a node and each answer would be an edge+label. I could then walk through the complete graph and the endpoint of the walk would be the fitting diagnose.

python graph是建模此问卷的最佳库,还是您愿意做? (以其他方式或其他方式对图形进行建模)?

Is python graph the best library to model this questionnaire or woul you do it differently (other library or other way of modeling the graph)?

推荐答案

您正在为确定性有限状态自动机。看看 python-automata

这篇关于哪些库可以用Python建模复杂的问卷?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆