You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

45 lines
967 B

defmodule P2 do
@moduledoc """
Documentation for `P2`.
"""
def start(_type, _args) do
IO.puts "starting"
a = [[0.49532488],
[0.47369649],
[0.48620785],
[0.49991253],
[0.53079108],
[0.51792299]] |> Matrex.new
b = [[0],
[0],
[1],
[1],
[0],
[1]] |> Matrex.new
c = [[ 0.49532488],
[ 0.47369649],
[-0.51379215],
[-0.50008747],
[ 0.53079108],
[-0.48207701]] |> Matrex.new
d = [[0.24997814],
[0.24930813],
[0.24980978],
[0.24999999],
[0.24905191],
[0.24967877]] |> Matrex.new
# IO.puts inspect [multiply(cost_i(a, transpose(y)), Matrex.Algorithms.sigmoid_gradient(a))]
IO.puts "1//////////////"
IO.puts inspect Matrex.multiply(c, d)
IO.puts "Ending"
:timer.sleep(1000)
Task.start(fn -> :timer.sleep(1000); IO.puts("done sleeping") end)
end
end