View source: R/01_ModelSetup.R
DoModelSetupFromIntLim | R Documentation |
This function performs the following tasks: (IntLIM models of interest have already been run and passed in) 3. Predict the phenotype of all training data given each pairwise model. 4. Build the co-regulation graph using the set of pairwise models. 5. Initialize model with parameters.
DoModelSetupFromIntLim(
inputData,
intLimResults,
stype,
outcomeType = 1,
independentVarType = 2,
continuous = TRUE,
metaFeatureList = c("pdf", "interactionpval", "interactioncoef", "analytecoef",
"localerr"),
k = 2,
eigStep = 1,
colIdInd = "databaseId",
colIdOut = "databaseId",
edgeTypeList = c("shared.outcome.analyte", "shared.independent.analyte"),
learningRate = 0.2,
covar = c(),
maxIterations = 1000,
convergenceCutoff = 0.001,
optimizationType = "SGD",
initialMetaFeatureWeights = 0,
corrCutoff = 0.7
)
inputData |
An object with the following fields: |
intLimResults |
A data frame including the results of the IntLIM models, post-filtering. |
stype |
The phenotype (outcome) to predict. This can be either a categorical or numeric outcome. |
outcomeType |
The outcome type (1 or 2) |
independentVarType |
The independent variable type (1 or 2) |
continuous |
Whether or not the outcome is continuous. Default is TRUE. |
metaFeatureList |
A list of the valid metrics to include. Valid metrics are "pdf", "localerr", "globalerr", and "pathway". |
k |
The number of nearest neighbors to consider in localerr. |
eigStep |
The number of eigenvectors to step by during the evaluation in localerr. Note that this must be less than the number of samples in localerr. Default = 10. |
colIdInd |
The ID of the column that has the analyte ID's for the independent variable. If blank, then the existing ID's are used. |
colIdOut |
The ID of the column that has the analyte ID's for the outcome variable. If blank, then the existing ID's are used. |
edgeTypeList |
List containing one or more of the following to include in the line graph: - "shared.outcome.analyte" - "shared.independent.analyte" - "analyte.chain" |
learningRate |
Learning rate to use during training. Default is 0.2 |
covar |
The clinical covariates to include in the model. These should be the same covariates that were included when running the IntLIM linear models. |
maxIterations |
Maximum number of iterations. Default is 1,000. |
convergenceCutoff |
Cutoff for convergence. Default is 0.001. |
optimizationType |
Type of optimization. May be "SGD", "momentum", "adagrad", or "adam". Default is "SGD". |
initialMetaFeatureWeights |
Initial weights for model meta-features. Default is 0, which results in each meta-feature being given equal weight. |
coeffPercentile |
Predictors with interaction coefficient percentiles below this cutoff will be discarded. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.