Hi,
Even though this is not an elligant solution, but it works.
Here u go.
expand(p(A,B,C),List,Result):-setof([p(A,B,C)], exp(p(A,B,C), List),Result).
exp(p(A,B,C),List):-member(B,List),member(C,List).
?- List=[e,f],expand(p(a,X,Z),List,Result).
List = [e, f]
X = _G167
Z = _G168
Result =...
Um....even though the activation fuction is kind of odd...and you didn't seem do use the variable 'bias', here is a possible solution ....
neuron([Input|InputTail],[Weight|WeightTail],Result):-neuron([Input|InputTail],[Weight|WeightTail],Result,0).
neuron([Input|InputTail],[Weight|WeightTail]...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.