   constructor: ->
     super
 
-    @TRAINING_SUBJECT = new Subject
-      location:
-        standard: [
-          "./dev-subjects-images/01_12DEC02_N04066_0001-50-scaled.png",
-          "./dev-subjects-images/01_12DEC02_N04066_0002-50-scaled.png",
-          "./dev-subjects-images/01_12DEC02_N04066_0003-50-scaled.png",
-          "./dev-subjects-images/01_12DEC02_N04066_0004-50-scaled.png"
-        ]
-        inverted: []
-      metadata: 
-        id: "01_12DEC02_N04066"
-        cutout:
-          x: [
-            1367.04,
-            1879.0400000000002
-          ]
-          y: [
-            1822.72,
-            2334.7200000000003
-          ]
-        
-        asteroids: [
-          {x: 435, y: 39}
-          {x: 432, y: 40}
-          {x: 430, y: 40}
-          {x: 428, y: 42}
-        ]
+    # replace with real subjects + prior asteroid meta data
+    @trainingSubjects = @loadTrainingSubjects()
 
     @asteroidMarkedInFrame = [ null, null, null, null ]
     @playTimeouts = []

class Classifier extends BaseController
  className: 'classifier'
  template: require '../views/classifier'

  TRAINING_SUBJECT = null

  events:
    'click button[name="play-frames"]'      : 'onClickPlay'


  removePriorAsteroids: ->
    priorAsteroid.remove() for priorAsteroid in [@el.find('.prior-asteroid')...]
  
  # REQUIRES: 
  # 1) markingSurfaceList
  # 2) setOfSightings    
  showExistingAsteroids: ->
    return if @trainingSubjects is null
    xs = []
    ys = []
    P = null
    x_sum = null
    y_sum = null
    for priorAsteroid, i in [@trainingSubjects.metadata.asteroids...]
      xs[i] = priorAsteroid.x
      ys[i] = priorAsteroid.y
      x_sum += xs[i]
