Skip to content

add safelog to log-semirings#395

Open
adrianjav wants to merge 3 commits intoapril-tools:mainfrom
adrianjav:safelog-semiring
Open

add safelog to log-semirings#395
adrianjav wants to merge 3 commits intoapril-tools:mainfrom
adrianjav:safelog-semiring

Conversation

@adrianjav
Copy link
Contributor

As per the title.

Please @loreloc check that everything is correct and feel free to merge it.

PS: I rather explicitly put the -708 value for clamping rather than invoking numpy everywhere, but this is a matter of taste. If you really want to change it lmk.

@loreloc
Copy link
Member

loreloc commented Feb 20, 2026

Ehi this looks good to me. But maybe better to use a global constant, let's say LOG_CLAMP_MIN = -708.3964185322641.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants