Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
Radiant
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wuzekai
Radiant
Commits
c56c5069
Commit
c56c5069
authored
Nov 21, 2025
by
wuzekai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复了神经网络界面的bug
parent
4bde86d7
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
1478 additions
and
1454 deletions
+1478
-1454
NAMESPACE
radiant.model/NAMESPACE
+1
-0
nn.R
radiant.model/R/nn.R
+734
-718
svm.R
radiant.model/R/svm.R
+2
-2
nn_ui.R
radiant.model/inst/app/tools/analysis/nn_ui.R
+729
-729
scale_df.Rd
radiant.model/man/scale_df.Rd
+1
-5
scale_sv.Rd
radiant.model/man/scale_sv.Rd
+11
-0
No files found.
radiant.model/NAMESPACE
View file @
c56c5069
...
@@ -112,6 +112,7 @@ export(repeater)
...
@@ -112,6 +112,7 @@ export(repeater)
export(rforest)
export(rforest)
export(rig)
export(rig)
export(scale_df)
export(scale_df)
export(scale_sv)
export(sdw)
export(sdw)
export(sensitivity)
export(sensitivity)
export(sim_cleaner)
export(sim_cleaner)
...
...
radiant.model/R/nn.R
View file @
c56c5069
This diff is collapsed.
Click to expand it.
radiant.model/R/svm.R
View file @
c56c5069
...
@@ -60,7 +60,7 @@ svm <- function(dataset, rvar, evar,
...
@@ -60,7 +60,7 @@ svm <- function(dataset, rvar, evar,
# 标准化
# 标准化
if
(
"standardize"
%in%
check
)
{
if
(
"standardize"
%in%
check
)
{
dataset
<-
scale_
df
(
dataset
)
dataset
<-
scale_
sv
(
dataset
)
}
}
## ---- 3. 分类任务的响应变量 ----
## ---- 3. 分类任务的响应变量 ----
...
@@ -135,7 +135,7 @@ svm <- function(dataset, rvar, evar,
...
@@ -135,7 +135,7 @@ svm <- function(dataset, rvar, evar,
#' Center or standardize variables in a data frame
#' Center or standardize variables in a data frame
#' @export
#' @export
scale_
df
<-
function
(
dataset
,
center
=
TRUE
,
scale
=
TRUE
,
scale_
sv
<-
function
(
dataset
,
center
=
TRUE
,
scale
=
TRUE
,
sf
=
2
,
wts
=
NULL
,
calc
=
TRUE
)
{
sf
=
2
,
wts
=
NULL
,
calc
=
TRUE
)
{
isNum
<-
sapply
(
dataset
,
function
(
x
)
is.numeric
(
x
))
isNum
<-
sapply
(
dataset
,
function
(
x
)
is.numeric
(
x
))
if
(
length
(
isNum
)
==
0
||
sum
(
isNum
)
==
0
)
{
if
(
length
(
isNum
)
==
0
||
sum
(
isNum
)
==
0
)
{
...
...
radiant.model/inst/app/tools/analysis/nn_ui.R
View file @
c56c5069
This diff is collapsed.
Click to expand it.
radiant.model/man/scale_df.Rd
View file @
c56c5069
% Generated by roxygen2: do not edit by hand
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nn.R
, R/svm.R
% Please edit documentation in R/nn.R
\name{scale_df}
\name{scale_df}
\alias{scale_df}
\alias{scale_df}
\title{Center or standardize variables in a data frame}
\title{Center or standardize variables in a data frame}
\usage{
\usage{
scale_df(dataset, center = TRUE, scale = TRUE, sf = 2, wts = NULL, calc = TRUE)
scale_df(dataset, center = TRUE, scale = TRUE, sf = 2, wts = NULL, calc = TRUE)
scale_df(dataset, center = TRUE, scale = TRUE, sf = 2, wts = NULL, calc = TRUE)
}
}
\arguments{
\arguments{
...
@@ -25,7 +23,5 @@ scale_df(dataset, center = TRUE, scale = TRUE, sf = 2, wts = NULL, calc = TRUE)
...
@@ -25,7 +23,5 @@ scale_df(dataset, center = TRUE, scale = TRUE, sf = 2, wts = NULL, calc = TRUE)
Scaled data frame
Scaled data frame
}
}
\description{
\description{
Center or standardize variables in a data frame
Center or standardize variables in a data frame
Center or standardize variables in a data frame
}
}
radiant.model/man/scale_sv.Rd
0 → 100644
View file @
c56c5069
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/svm.R
\name{scale_sv}
\alias{scale_sv}
\title{Center or standardize variables in a data frame}
\usage{
scale_sv(dataset, center = TRUE, scale = TRUE, sf = 2, wts = NULL, calc = TRUE)
}
\description{
Center or standardize variables in a data frame
}
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