This is the new version of the rtemis R package and remains under active development.
The new version (0.99+) features:
setup_() functions, to
offer increased transparency of configuration options.
Using pak from GitHub:
pak::pak("rtemis-org/rtemis")Using install.packages from r-universe:
install.packages(
'rtemis',
repos = c('https://rtemis-org.r-universe.dev', 'https://cloud.r-project.org')
)Using pak from r-universe:
pak::repo_add(myuniverse = "https://rtemis-org.r-universe.dev")
pak::pak("rtemis")Every rtemis call that uses external packages includes a
check for required dependencies and will print a message if any are
missing.
It is essential to maintain transparency of operations at all times.
rtemis functions often call multiple other functions,
sometime recursively. The package uses a formatted messaging system to
provide logging output which includes:
Most function include a verbosity argument to control
the level of messaging output, with support for three levels:
0: silent1: normal messaging2: detailed messaging for debuggingrtemis includes an automatic text formatting system,
which supports:
setup_ functionsMachine learning workflows involve multiple steps, each with their own configuration options.
It is essential that a) the user has complete control over each step, while maintaining an intuitive, user-friendly interface, and b) the user input is validated immediately and before a potentially long-running operation is started.
The following setup_ functions are available to
configure each step of the workflow:
setup_CART(),
setup_GAM(), etc.setup_GridSearch()setup_CMeans(),
setup_HardCL(), etc.setup_NMF(), setup_ICA(),
etc.setup_Resampler()setup_Preprocessor()The following will perform hyperparameter tuning and 10-fold
cross-validation.
It will train (3*3*2*5 + 1) * 25 = 2275 models total
(!).
mod <- train(
dat,
hyperparameters = setup_LightGBM(
num_leaves = 2^(1:3),
learning_rate = c(.001, .005, .01),
subsample = c(.6, .9)
),
outer_resampling_config = setup_Resampler(
n_resamples = 25L,
type = "StratSub"
)
)clust <- cluster(
dat,
config = setup_CMeans(k = 4L)
)decomp <- decompose(
dat,
config = setup_ICA(k = 12L)
)The original version included a long list of algorithms for supervised and unsupervised learning for testing and experimentation, many of which were rarely used. The initial release of the new version focuses on a smaller set of core algorithms, that will keep growing.
The original version included the mplot3 family of
visualization functions using base R graphics and the
dplot3 family using plotly. The new release
includes the draw family of functions, the evolution of the
dplot3 family.
The documentation is available at docs.rtemis.org/r, which includes walkthroughs of main features and full API reference.
There is a lot more coming - both within this package and the other packages in the rtemis framework.
The original, unmaintained version of rtemis remains available as
rtemisalpha at rtemis-org/rtemis-legacy.