estimated_standard_deviation:rscript02
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| estimated_standard_deviation:rscript02 [2026/03/17 22:48] – hkimscil | estimated_standard_deviation:rscript02 [2026/03/17 22:58] (current) – hkimscil | ||
|---|---|---|---|
| Line 43: | Line 43: | ||
| msrs <- c() | msrs <- c() | ||
| vs <- c() | vs <- c() | ||
| + | grads <- c() | ||
| msr <- function(x, v) { | msr <- function(x, v) { | ||
| Line 56: | Line 57: | ||
| | | ||
| grad <- gradient(zx, | grad <- gradient(zx, | ||
| + | grads <- grad | ||
| step.v <- grad * learning.rate # | step.v <- grad * learning.rate # | ||
| v <- v - step.v # 그 다음 v값 | v <- v - step.v # 그 다음 v값 | ||
| Line 63: | Line 65: | ||
| tail(msrs) | tail(msrs) | ||
| tail(vs) | tail(vs) | ||
| + | tail(grads) | ||
| plot(vs, msrs, type=' | plot(vs, msrs, type=' | ||
| + | plot(vs, grads, type=' | ||
| # scaled | # scaled | ||
estimated_standard_deviation/rscript02.txt · Last modified: by hkimscil
