Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR R

r optim

# Optimize the metric
optim(
  # Initially guess 0 intercept and 0 slope
  par = c(intercept = 0, slope = 0), 
  # Use calc_sum_of_squares as the optimization function
  fn = calc_sum_of_squares
)
 
PREVIOUS NEXT
Tagged: #optim
ADD COMMENT
Topic
Name
4+1 =