Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
kfino
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Isabelle Sanchez
kfino
Commits
d503dc2e
Commit
d503dc2e
authored
2 years ago
by
Isabelle Sanchez
Browse files
Options
Downloads
Patches
Plain Diff
MaJ issue
#12
rems 2/ et 3/
parent
f5e90b6d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#60075
passed
2 years ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
R/kfino.R
+16
-4
16 additions, 4 deletions
R/kfino.R
man/kfino_fit.Rd
+12
-3
12 additions, 3 deletions
man/kfino_fit.Rd
with
28 additions
and
7 deletions
R/kfino.R
+
16
−
4
View file @
d503dc2e
...
...
@@ -54,9 +54,18 @@
#' @return a S3 list with two data frames and a list of vectors of
#' kfino results
#' \describe{
#' \item{detectOutlier}{The whole dataset with the detected outliers flagged
#' and prediction}
#' \item{PredictionOK}{A dataset with the predictions on possible values}
#' \item{detectOutlier}{The whole input data set with the detected outliers
#' flagged and prediction}
#' \describe{
#' \item{prediction}{the parameter of interest - Yvar - predicted}
#' \item{label_pred}{the probability of the value being well predicted}
#' \item{lwr}{lower bound of the confidence interval of the predicted value}
#' \item{upper}{upper bound of the confidence interval of the predicted value}
#' \item{flag}{flag of the value (OK value, KO value (outlier), OOR value
#' (out of range values defined by the user in `kfino_fit`)}
#' }
#' \item{PredictionOK}{A dataset with the predictions on possible values (OK
#' and KO values)}
#' \item{kfino.results}{kfino results (a list of vectors) on optimized input
#' parameters or not}
#' }
...
...
@@ -594,7 +603,9 @@ kfino_fit<-function(datain,Tvar,Yvar,
# useful for the kfino_plot() function
#---------------------------------------------------------------------------
if
(
is.null
(
resultat
)){
dt.out
<-
datain
%>%
mutate
(
flag
=
.data
$
flag1
)
dt.out
<-
datain
%>%
mutate
(
flag
=
.data
$
flag1
)
%>%
select
(
-
.data
$
flag1
)
dt.pred
<-
NULL
resultat
<-
NULL
...
...
@@ -617,6 +628,7 @@ kfino_fit<-function(datain,Tvar,Yvar,
dt.out
<-
mutate
(
dt.out
,
flag
=
if_else
(
.data
$
flag1
==
"OOR"
,
.data
$
flag1
,
.data
$
flag
))
dt.out
<-
arrange
(
dt.out
,
.data
$
rowNum
)
dt.out
<-
select
(
dt.out
,
-
.data
$
flag1
)
#--------------------------------------
# return a S3 list object
...
...
This diff is collapsed.
Click to expand it.
man/kfino_fit.Rd
+
12
−
3
View file @
d503dc2e
...
...
@@ -46,9 +46,18 @@ optimization, default 7}
a S3 list with two data frames and a list of vectors of
kfino results
\describe{
\item{detectOutlier}{The whole dataset with the detected outliers flagged
and prediction}
\item{PredictionOK}{A dataset with the predictions on possible values}
\item{detectOutlier}{The whole input data set with the detected outliers
flagged and prediction}
\describe{
\item{prediction}{the parameter of interest - Yvar - predicted}
\item{label_pred}{the probability of the value being well predicted}
\item{lwr}{lower bound of the confidence interval of the predicted value}
\item{upper}{upper bound of the confidence interval of the predicted value}
\item{flag}{flag of the value (OK value, KO value (outlier), OOR value
(out of range values defined by the user in `kfino_fit`)}
}
\item{PredictionOK}{A dataset with the predictions on possible values (OK
and KO values)}
\item{kfino.results}{kfino results (a list of vectors) on optimized input
parameters or not}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment