Visible vs. hidden test-cases

Visible vs. hidden test-cases

Erel Segal-Halevi發表於
Number of replies: 3
I have about 10 test-cases for my assignment. I would like to make the first 5 of them visible to the students, so that they can be used as examples. The last 5 cases should remain hidden, so that the students do not "overfit" their solutions to the test-cases. How can I do this?
評比平均分數: -
In reply to Erel Segal-Halevi

Re: Visible vs. hidden test-cases

Garth Brady發表於
Particularly helpful Moodlers的相片

What do you mean by overfit? How can students determine a solution without knowing the required output?

are you looking for randomized output?

In reply to Erel Segal-Halevi

Re: Visible vs. hidden test-cases

Astor Bizard發表於
Plugin developers的相片
Hello,

You can use the "Fail message" option in vpl_evaluate.cases to override the default evaluation output (which displays program input and expected output).
Here is the documentation: https://vpl.dis.ulpgc.es/documentation/vpl-3.4.3+/biotes.html#controlling-the-messages-in-the-output-report

Best regards,
Astor
評比平均分數:Useful (1)