Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test for NA or NULL values #79

Merged
merged 3 commits into from
Jan 8, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions reports/performance/_outliers.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -477,3 +477,32 @@ outlier_decile_breakout(training_data, 1)
```

:::

## Possible Output Errors

::: panel-tabset

### Card Level
```{r _outliers_output_errors_card}
assessment_card %>%
summarize(
"NA Card FMV" = sum(is.na(pred_card_initial_fmv)),
"Negative Card FMV" = sum(pred_card_initial_fmv < 0, na.rm = TRUE)
) %>%
datatable()
```

### Pin Level
```{r _outliers_output_errors_pin}
assessment_pin %>%
summarize(
"NA Pin FMV" = sum(is.na(pred_pin_final_fmv)),
"Negative Pin FMV" = sum(pred_pin_final_fmv < 0, na.rm = TRUE),
"NA Building FMV" = sum(is.na(pred_pin_final_fmv_bldg)),
"Negative Building FMV" = sum(pred_pin_final_fmv_bldg < 0, na.rm = TRUE),
"NA Land FMV" = sum(is.na(pred_pin_final_fmv_land)),
"Negative Land FMV" = sum(pred_pin_final_fmv_land < 0, na.rm = TRUE)
) %>%
datatable()
```
Damonamajor marked this conversation as resolved.
Show resolved Hide resolved
:::
Loading