Davis Vaughan

Results 710 comments of Davis Vaughan
trafficstars

First thoughts using the binary case: `Informedness = Recall + Inverse Recall – 1`, but i think it generalizes to multiclass, which I didn't implement. The binary case is also...

Try something like this: ```r fly_initialize

Does polars not have the concept of "local time zone"?

I looked over the implementation of `zone_current()` again and it is very very likely that it will return `Sys.timezone()` unless: - The `TZ` env var is set to something else,...

I have a use case where I'd like to: - create a temporary library, `custom_lib` - install a package into it - run an R expression with `lib = c(custom_lib,...

Yea I'd like to add `clock::year_quarter_day_parse()` (like `year_month_day_parse()`) that would allow you to handle this, which you could then convert to date/posixct with `as_date()` or `as_date_time()`

I imagine this is probably the fastest way in the meantime ``` r library(clock) library(stringr) dat [1,] "2021" "2" #> [2,] "2021" "3" year [1] "2021-04-01" "2021-07-01" ``` That method...

I like this as a general principle for writing functions, and vctrs's lossy cast warning functions are pretty nice for this. What's nice about it is that integerish things like...

Oh I see how it is working now and I see how we get the current output. It seems ok to keep as is now that I understand it a...

Maybe one alternative is to not round at all, and instead add a grey coloring to the non-important digits? ``` # original example -0.9090909 0.9090909 # more realistic -0.9190909 -0.90909...