Skip to content

Commit

Permalink
Fix docu
Browse files Browse the repository at this point in the history
  • Loading branch information
fouodo committed Nov 14, 2024
1 parent 31654d2 commit 718187a
Show file tree
Hide file tree
Showing 13 changed files with 48 additions and 31 deletions.
12 changes: 6 additions & 6 deletions R/TrainLayer.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
#'
#' A training layer is structured as followed:
#'
#' * [Lrner]: It is set by the user to be trained on the training data.
#' * [TrainData]: It is set by the user to be used to train the learner.
#' * [Model]: The result of training the learner on the training data, and therefore, not set by the user.
#' * [TestData]: It is set by the user implements new data to be predicted.
#' * [TrainData]: Data to be used to train the learner.
#' * [Lrner]: Includes a learning function and the package implementing the function.
#' * [Model]: The result of training the learner on the training data.
#' * [VarSel]: Includes a variable selection function and the package implementing the function.
#'
#' A layer can train its learner on its training data and store the resulting model. See the public function \code{Layer$train()} below.
#' A training layer can train its learner on its training data and store the resulting model. See the public function \code{Layer$train()} below.
#'
#' A layer can make predictions for a new layer passed as argument to its predict function. See the public function \code{Layer$predict()} below.
#' A training layer can make predictions for a new layer passed as argument to its predict function. See the public function \code{Layer$predict()} below.
#'
#' @export
#' @importFrom R6 R6Class
Expand Down
8 changes: 6 additions & 2 deletions R/createTesting.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#' @title Creates a [Testing] object.
#' @title createTesting
#' @description
#' Creates a [Testing] object.
#'
#' @param id (`character(1)`) \cr
#' Testing id.
Expand All @@ -17,7 +19,9 @@ createTesting = function (id,
}


#' @title Creates and store a [TestLayer] on the [Testing] object passed as argument.
#' @title createTestLayer
#' @description
#' Creates and store a [TestLayer] on the [Testing] object passed as argument.
#'
#' @param testing (`Testing(1)`) \cr
#' Testing object where the created layer will be stored.
Expand Down
29 changes: 21 additions & 8 deletions R/createTraining.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#' @title Creates a [Training] object.
#' @title createTraining
#' @description
#' Creates a [Training] object.
#'
#' @param id (`character(1)`) \cr
#' @param ind_col (`character(1)`) \cr
Expand Down Expand Up @@ -31,8 +33,9 @@ createTraining = function (id,
return(training)
}


#' @title Creates and store a [TrainLayer] on the [Training] object passed as argument.
#' @title createTrainLayer
#' @description
#' Creates and store a [TrainLayer] on the [Training] object passed as argument.
#'
#' @param training (`Training(1)`) \cr
#' Training object where the created layer will be stored.
Expand Down Expand Up @@ -102,7 +105,9 @@ createTrainLayer = function (training,



#' @title Creates and store a [TrainMetaLayer] on the [Training] object passed as argument.
#' @title createTrainMetaLayer
#' @description
#' Creates and store a [TrainMetaLayer] on the [Training] object passed as argument.
#'
#' @param training (`Training(1)`) \cr
#' Training object where the created layer will be stored.
Expand Down Expand Up @@ -146,7 +151,9 @@ createTrainMetaLayer = function (training,
return(training)
}

#' @title Variable selection on the current training object.
#' @title varSelection
#' @description
#' Variable selection on the current training object.
#'
#' @param training (`Training(1)`) \cr
#' Training object where the created layer will be stored.
Expand All @@ -166,7 +173,9 @@ varSelection = function (training,
return(selected)
}

#' @title Trains the [Training] object passed as argument. All leaners and the meta learner are trained.
#' @title fusemlr
#' @description
#' Trains the [Training] object passed as argument. All leaners and the meta learner are trained.
#'
#' @param training (`Training(1)`) \cr
#' Training object where the created layer will be stored.
Expand Down Expand Up @@ -201,7 +210,9 @@ fusemlr = function (training,



#' @title Computes predictions for the [Testing] object passed as argument.
#' @title predict.Training
#' @description
#' Computes predictions for the [Testing] object passed as argument.
#'
#' @param object (`Training(1)`) \cr
#' Training object to be used to compute predictions.
Expand All @@ -221,7 +232,9 @@ predict.Training = function (object,
return(predictions)
}

#' @title An upset plot of overlapping individuals.
#' @title upsetplot
#' @description
#' An upset plot of overlapping individuals.
#'
#' @param object (`Training(1) or Testing(1)`) \cr
#' Training or testing object for each the upset plot will be created.
Expand Down
12 changes: 6 additions & 6 deletions man/TrainLayer.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/createTestLayer.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/createTesting.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/createTrainLayer.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/createTrainMetaLayer.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/createTraining.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/fusemlr.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/predict.Training.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/upsetplot.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/varSelection.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 718187a

Please sign in to comment.