You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Running the Perceptron to generate scores

If all goes well, the ["Perceptron"] will take over from the GeneticAlgorithm (GA) as the main way we generate scores. (This text was copied from RescoreTenFcv and needs editing.)

Change these lines:

  make clean >> make.output
  make >> make.output 2>&1
  ./evolve
  pwd; date

to

  make clean >> make.output
  make -C perceptron_c clean >> make.output
  make tmp/tests.h >> make.output 2>&1
  rm -rf perceptron_c/tmp; cp -r tmp perceptron_c/tmp
  make -C perceptron_c >> make.output
  ( cd perceptron_c ; ./perceptron -p 0.75 -e 100 )
  pwd; date

Change

  cp craig-evolve.scores [output]

to

  perl -pe 's/^(score\s+\S+\s+)0\s+/$1/gs;' \
      < perceptron_c/perceptron.scores \
      > [output]

(required to work around an extra digit output by the perceptron app).

  • No labels