title: Using SVMs for Regression
body: <p>I need to use SVMs for regression. 
  I have y: a 261x1 vector and x: a 261x10 vector.</p>
  
  <p>I would like to calculate 10 weights such that the weighted 10 values of x at each of the 261 data points mimic the y value.</p>
  
  <p>However, when I run this using the libsvm package, I am getting 261 weights and not the 10 I want. </p>
  
  <p>From my understanding, libsvm requires the x and y vector to be the same length and hence inputting the transpose of x and y will not work.</p>
  
  <p>(Note: this is a portfolio optimization problem and 261 is the number of days, and 10 is the number of stocks) </p>