title: In LibSVM, svm-scale gives data that is all 1 and -1
body: <p>As is described in the title, when I try to use svm-scale to scale my regression data into [-1, 1], the scaled data is all 1 or -1. I've confirmed that the original data itself has no problem. I'm on Ubuntu and this is my command line.</p>
  <pre><code>./svm-scale data.out &gt; data.out.scale
  </code></pre>
  <p>(data.out is my original data)</p>
  <p>This is my original data:</p>
  <blockquote>
  <p>1.1 1:43.45122 2:30.670488 3:50.121951 4:35.97561 5:45.649512 6:45.041707 7:55.134878 8:44.858049 9:50.183415 10:38.410732 11:56.80878 12:30.821951</p>
  <p>1.0 1:43.465122 2:30.67488 3:50.121951 4:35.97561 5:45.649512 6:45.041707 7:55.134878 8:44.858049 9:50.183415 10:38.410732 11:56.80878 12:30.821951</p>
  <p>9.0 1:43.465122 2:30.670488 3:50.21951 4:35.97561 5:45.649512 6:45.041707 7:55.134878 8:44.858049 9:50.183415 10:38.410732 11:56.80878 12:30.821951</p>
  <p>1.0 1:43.465122 2:30.670488 3:50.121951 4:35.7561 5:45.649512 6:45.041707 7:55.134878 8:44.858049 9:50.183415 10:38.410732 11:56.80878 12:30.821951</p>
  <p>4.5 1:43.465122 2:30.670488 3:50.121951 4:35.97561 5:45.64952 6:45.041707 7:55.134878 8:44.858049 9:50.183415 10:38.410732 11:56.80878 12:30.821951</p>
  <p>3.7 1:43.465122 2:30.670488 3:50.121951 4:35.97561 5:45.649512 6:5.041707 7:55.134878 8:44.858049 9:50.183415 10:38.410732 11:56.80878 12:30.821951</p>
  <p>7.8 1:43.465122 2:30.670488 3:50.121951 4:35.97561 5:45.649512 6:45.041707 7:55134878 8:44.858049 9:50.183415 10:38.410732 11:56.80878 12:30.821951</p>
  <p>2.9 1:43.465122 2:30.670488 3:50.121951 4:35.97561 5:45.649512 6:45.041707 7:55.134878 8:44.58049 9:50.183415 10:38.410732 11:56.80878 12:30.821951</p>
  <p>0.2 1:43.465122 2:30.670488 3:50.121951 4:35.97561 5:45.649512 6:45.041707 7:55.134878 8:44.858049 9:5.183415 10:38.410732 11:56.80878 12:30.821951</p>
  <p>13.8 1:43.465122 2:30.670488 3:50.121951 4:35.97561 5:45.649512 6:45.041707 7:55.134878 8:44.858049 9:50.183415 10:8.410732 11:56.80878 12:30.821951</p>
  <p>1.2 1:43.465122 2:30.670488 3:50.121951 4:35.97561 5:45.649512 6:45.041707 7:55.134878 8:44.858049 9:50.183415 10:38.410732 11:56.0878 12:30.821951</p>
  <p>1.8 1:43.465122 2:30.670488 3:50.121951 4:35.97561 5:45.649512 6:45.041707 7:55.134878 8:44.858049 9:50.183415 10:38.410732 11:56.80878 12:30.8211</p>
  </blockquote>
  <p>And this is the scaled data:</p>
  <blockquote>
  <p>1.1 1:-1 2:-1 3:-1 4:1 5:-1 6:1 7:-1 8:1 9:1 10:1 11:1 12:1</p>
  <p>1 1:1 2:1 3:-1 4:1 5:-1 6:1 7:-1 8:1 9:1 10:1 11:1 12:1</p>
  <p>9 1:1 2:-1 3:1 4:1 5:-1 6:1 7:-1 8:1 9:1 10:1 11:1 12:1</p>
  <p>1 1:1 2:-1 3:-1 4:-1 5:-1 6:1 7:-1 8:1 9:1 10:1 11:1 12:1</p>
  <p>4.5 1:1 2:-1 3:-1 4:1 5:1 6:1 7:-1 8:1 9:1 10:1 11:1 12:1</p>
  <p>3.7 1:1 2:-1 3:-1 4:1 5:-1 6:-1 7:-1 8:1 9:1 10:1 11:1 12:1</p>
  <p>7.8 1:1 2:-1 3:-1 4:1 5:-1 6:1 7:1 8:1 9:1 10:1 11:1 12:1</p>
  <p>2.9 1:1 2:-1 3:-1 4:1 5:-1 6:1 7:-1 8:-1 9:1 10:1 11:1 12:1</p>
  <p>0.2 1:1 2:-1 3:-1 4:1 5:-1 6:1 7:-1 8:1 9:-1 10:1 11:1 12:1</p>
  <p>13.8 1:1 2:-1 3:-1 4:1 5:-1 6:1 7:-1 8:1 9:1 10:-1 11:1 12:1</p>
  <p>1.2 1:1 2:-1 3:-1 4:1 5:-1 6:1 7:-1 8:1 9:1 10:1 11:-1 12:1</p>
  <p>1.8 1:1 2:-1 3:-1 4:1 5:-1 6:1 7:-1 8:1 9:1 10:1 11:1 12:-1</p>
  </blockquote>
  <p>Am I wrong about the parameters or the data? Pls help. Thx.</p>