User Tools

Site Tools


estimated_standard_deviation:rscript02

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
estimated_standard_deviation:rscript02 [2026/03/17 22:48] hkimscilestimated_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, v)     grad <- gradient(zx, v)
 +    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='b') plot(vs, msrs, type='b')
 +plot(vs, grads, type='b')
  
 # scaled # scaled
estimated_standard_deviation/rscript02.txt · Last modified: by hkimscil

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki