Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Zeller Group
SIAMCAT
Commits
724e37b3
Commit
724e37b3
authored
Jul 28, 2021
by
Jakob Wirbel
Browse files
enforce tab limit for bioconductor.
parent
9daba9d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
R/plm_utils.r
View file @
724e37b3
...
...
@@ -61,7 +61,7 @@ train.plm <-
parameters
<-
NULL
}
else
if
(
'pars'
%in%
names
(
parameters
)){
lrn
<-
makeLearner
(
cl
,
predict.type
=
"prob"
,
nlambda
=
10
,
alpha
=
parameters
$
pars
$
alpha
)
nlambda
=
10
,
alpha
=
parameters
$
pars
$
alpha
)
parameters
<-
NULL
}
else
{
lrn
<-
makeLearner
(
cl
,
predict.type
=
"prob"
,
nlambda
=
10
)
...
...
@@ -132,7 +132,7 @@ train.plm <-
coef
<-
coef
[
-
bias.idx
,
]
model
$
feat.weights
<-
(
-1
)
*
as.numeric
(
coef
)
### check!!!
model
$
learner.model
$
glmnet.fit
$
call
<-
NULL
model
$
learner.model
$
call
<-
NULL
}
else
if
(
cl
==
"classif.LiblineaRL1LogReg"
)
{
model
$
feat.weights
<-
model
$
learner.model
$
W
[
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment