AdvaProgR-2324 / mlrmini

mlrmini - A mini version of the mlr package.
https://advaprogr-2324.github.io/mlrmini/
GNU General Public License v3.0
0 stars 1 forks source link

mlrmini

mlrmini A mini-package for Machine Learning in R.

Package website: mlrmini

R-CMD-check test-coverage lint

Short description

mlrmini is a package developed to provide a simpler and consistent way for using machine learning algorithms in R. It allows therefore simplified evaluation and optimization of algorithms and is oriented on the mlr package. Currently it supports learners like xgboost, linear models and rpart

Installation

Install the last release from CRAN:

install.packages("mlrmini")

Install the development version from GitHub:

remotes::install_github("AdvaProgR-2324/mlrmini")

What ChatGPT says this package is made for

In the realm of data, where patterns hide,
A tool emerges, mlrmini, with knowledge as its guide.

With features rich and functions grand,
A powerhouse it is, across the data land.

Ensemble models, they dance in sync,
A symphony of predictions, no room for a jinx.

Preprocessing magic, transforming the raw,
Into insights profound, without a flaw.

Cross-validation, a trustworthy guide,
Ensuring robustness, standing by your side.

In the heart of machine learning's domain,
mlrmini reigns, its excellence to sustain.

And behold, mlrmini, a companion so true,
Mini but mighty, enhancing what's due.

So into the world of data, let's venture and spin,
With mlrmini, let the learning begin!

Example

defining an Inducer

library(mlrmini)
inducerxgb <- InducerXGBoost(nrounds = 4)

fitting a model

cars.data <- Dataset(data = cars, target = "dist")
fitxgb <- fit(inducerxgb, .data = cars.data)

reviewing the results

modelObject(fitxgb)
fitxgb$modelInfo

evaluate the performance of the model

predictions <- predict(model.xgb, newdata = cars.data)
EvaluatorMSE(predictions)