tidymodels / desirability2 Goto Github PK
View Code? Open in Web Editor NEWDesirability Functions for Multiparameter Optimization
Home Page: https://desirability2.tidymodels.org
License: Other
Desirability Functions for Multiparameter Optimization
Home Page: https://desirability2.tidymodels.org
License: Other
I don't find it intuitive what use_data
did without looking at the source. Maybe add an example, or note that use_data
is only used if low
, high
, or target
is missing.
Right now it says the following in the documentation
Lines 16 to 17 in b8547b2
{desirability} wrote
Values less than one make the criteria more difficult to satisfy while values greater than one make it easier.
In addition, is it not documented what the difference between scale
, scale_low
, and scale_high
are.
I would like to see documented how exactly the scale affects the desirability, which as far as I can tell is just a power
Some check functions return invisible(NULL)
and some return invisible(TRUE)
. Ideally these should all return the same.
2023
Necessary:
person(given = "Posit Software, PBC", role = c("cph", "fnd"))
use_mit_license()
use_tidy_logo()
usethis::use_tidy_coc()
usethis::use_tidy_github_actions()
Optional:
pak::pak("org/pkg")
over devtools::install_github("org/pkg")
in READMEuse_tidy_dependencies()
and/or replace compat files with use_standalone()
use_standalone("r-lib/rlang", "types-check")
instead of home grown argument checkersI haven't read too much about desirability functions. But is there a reason why the scaling is limited to powers and not any order-preserving transformation that maps the region [0, 1] to [0, 1]?
There is no checking for the scale
argument so you could end up with weird things happening.
library(desirability2)
d_max(5, 0, 10, scale = 1)
#> [1] 0.5
d_max(5, 0, 10, scale = 1:2)
#> Warning in out[middle] <- ((x[middle] - low)/(high - low))^scale: number of
#> items to replace is not a multiple of replacement length
#> [1] 0.5
d_max(5, 0, 10, scale = -2)
#> [1] 4
d_max(5, 0, 10, scale = NA)
#> [1] NA
Created on 2021-10-16 by the reprex package (v2.0.1)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.