mitmath / mitmath/computational-thinking
hw1 Ex3.5 noisify test
Open
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 2.8k
- Forks
- 502
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
Just wanted to let you know that the test for the answer to Ex 3.5 in Hw1 doesn't appear to be working properly. I get a correct answer for the following (obviously wrong) code:
function noisify(x::Number, s)
rand_num = rand()
noisy_num = x + rand_num
noisy_num = clamp(noisy_num, 0., 1.)
return noisy_num
end
Afraid I'm not not sure how to fix it though.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the Hw1 Ex 3.5 answer test and reproducing it with the shown noisify implementation. Inspect why this incorrect implementation passes; done means the test rejects it while accepting correct answers.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100