aclai-lab / aclai-lab/SolePostHoc.jl
`mse` raises `UndefVarError: y_true` on any call
- Linguagem predominante
- Julia
- Estrelas
- 11
- Forks
- 1
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
`src/SolePostHoc.jl`, line 14:
```julia
# Function mse (from Metrics.jl)
mse = (y_pred, t_true) -> (sum((y_true .- y_pred) .^ 2) / length(y_true))
```
The parameter is named `t_true`; the body uses `y_true`, which is not bound in that scope. Any call
raises `UndefVarError: y_true` rather than computing a mean squared error.
Looks like a single-character slip when the helper was written.
### What would close it
Renaming the parameter to `y_true` (or the body to `t_true`), plus a test that calls it - the defect
survives precisely because nothing exercises it.
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Direção de pesquisa
The bug is in src/SolePostHoc.jl at line 14, where the parameter `t_true` should be `y_true` (or the variable in the calculation should be changed). Look for any existing tests for the mse function; if none exist, add a simple test in the test suite to verify the fix. Run the tests to ensure the error is resolved.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- julia
- Domínio
- tooling
- Tipo de issue
- Bug
- Dificuldade
- 1/5
- Tempo estimado
- Menos de uma hora
- Status de atividade
- Ativa
- Clareza
- Claramente especificada
- Facilidade para iniciantes
- 90/100