Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

ToContinuous and ToCategorical components #273

Open
Shoeboxam opened this issue Jul 23, 2020 · 0 comments
Open

ToContinuous and ToCategorical components #273

Shoeboxam opened this issue Jul 23, 2020 · 0 comments

Comments

@Shoeboxam
Copy link
Member

Some utility components that manipulate properties.

ToContinuous takes in categorical integers, and outputs continuous integers. Pseudocode:

Nature::Continuous { lower: min(categories), upper: max(categories) }

ToCategorical takes in continuous integers, and outputs categorical integers. Pseudocode:

Nature::Categorical {categories: (lower..upper).collect() }

Given the recent refactorings to release ownership in the runtime, this takes zero allocations and is a no-op in the runtime.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant