Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Image Data Explorer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
7
Issues
7
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kimberly Isobel Meechan
Image Data Explorer
Commits
05c4f0f7
Commit
05c4f0f7
authored
Nov 19, 2020
by
Jean-Karim Heriche
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Forgot to load package caret.
parent
f5c2c01c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
6 deletions
+9
-6
R/explore_plot.R
R/explore_plot.R
+1
-1
R/feature_selection.R
R/feature_selection.R
+7
-5
image_data_explorer.R
image_data_explorer.R
+1
-0
No files found.
R/explore_plot.R
View file @
05c4f0f7
...
...
@@ -47,7 +47,7 @@ plot_server <- function(input, output, session, rv) {
coord_cartesian
(
expand
=
TRUE
)
if
(
!
is.null
(
rv
$
clusters
))
{
idx.to.na
<-
which
(
clusters
==
""
)
if
(
length
(
idx.to.na
)
>
0
)
{
if
(
length
(
idx.to.na
)
>
0
)
{
clusters
[
idx.to.na
]
<-
NA
}
p
<-
p
+
geom_point
(
aes
(
colour
=
factor
(
clusters
[
1
:
nrow
(
D
)])),
alpha
=
0.5
)
+
...
...
R/feature_selection.R
View file @
05c4f0f7
# Authors: Jean-Karim Heriche
#TODO
##############################
## Feature selection Module ##
##############################
...
...
@@ -217,9 +215,13 @@ feature_selection_server <- function(input, output, session, rv, session_parent
}
tmp
<-
rv
$
data
[,
input
$
featuresToProcess
]
idx.valid.data
<-
which
(
is.finite
(
rowSums
(
tmp
)))
preds
<-
predict
(
classifier.data
$
model
,
newdata
=
tmp
[
idx.valid.data
,])
rv
$
data
[
idx.valid.data
,]
$
xgboost.predictions
<-
classifier.data
$
classes
[
preds
]
showNotification
(
"Model predictions have been added to the data."
,
type
=
"warning"
)
if
(
length
(
idx.valid.data
)
>
0
)
{
preds
<-
predict
(
classifier.data
$
model
,
newdata
=
tmp
[
idx.valid.data
,])
rv
$
data
[
idx.valid.data
,]
$
xgboost.predictions
<-
classifier.data
$
classes
[
preds
]
showNotification
(
"Model predictions have been added to the data."
,
type
=
"warning"
)
}
else
{
showNotification
(
"Invalid data."
,
type
=
"error"
)
}
}
})
...
...
image_data_explorer.R
View file @
05c4f0f7
...
...
@@ -51,6 +51,7 @@ library(RANN)
library
(
MASS
)
library
(
uwot
)
library
(
xgboost
)
library
(
caret
)
## Making data table filtering persistent
## from https://dev.to/awwsmm/reactive-datatables-in-r-with-persistent-filters-l26
...
...
Write
Preview
Markdown
is supported
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