set relevance equation for subquestions #971
Answered
by
edgarrmondragon
Deusdeorum
asked this question in
Q&A
-
Great package! Do you know if it is possible to add "relevance equation" for subquestions? Suppose we have a "multiple choice" question in a survey, with some subquestions. Using |
Beta Was this translation helpful? Give feedback.
Answered by
edgarrmondragon
Sep 12, 2023
Replies: 1 comment 1 reply
-
Hi @Deusdeorum! Yes, each subquestion has its own question ID that you can retrieve with >>> for qid, sub in client.get_question_properties(176)["subquestions"].items():
... print(qid, sub["title"], sub["question"])
188 SQ003 Object Relational Mappers (SQLAlchemy, etc.)
187 SQ002 Web frameworks (FastAPI, Flask, Django, etc.)
186 SQ001 Data manipulation libraries (Pandas, Numpy, Polars, etc.) You can then call client.set_question_properties(186, relevance='< your custom relevance equation >') |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
edgarrmondragon
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @Deusdeorum!
Yes, each subquestion has its own question ID that you can retrieve with
client.get_question_properties(<parent question ID>)
:You can then call
set_question_properties
with each of the subquestions: