Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 5b8e7771e0
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 16 lines (12 sloc) 0.369 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
require File.dirname(__FILE__) + "/neurosis"

Spec::Runner.configure do |config|
  system "rm /var/hubris/cache/Perceptron.so"
  
  def perceptron
    Neurosis::Perceptron.new
  end
end

describe "actualOutputDerivative given the actual-output" do
  it "returns its derivative" do
    perceptron.actualOutputDerivative(0.5250).should be_close(0.2494, 0.0001)
  end
end
Something went wrong with that request. Please try again.