building v0.0.6
This commit is contained in:
@@ -60,7 +60,7 @@ function (kfn::kfn_1)(m::model, input_data::AbstractVector)
|
||||
end
|
||||
|
||||
# generate noise
|
||||
noise = [GeneralUtils.randomChoiceWithProb([true, false],[0.0, 1.0])
|
||||
noise = [GeneralUtils.randomChoiceWithProb([true, false],[0.2, 0.8])
|
||||
for i in 1:length(input_data)]
|
||||
# noise = [rand(rng, Distributions.Binomial(1, 0.5)) for i in 1:10] # another option
|
||||
|
||||
@@ -95,7 +95,7 @@ function (kfn::kfn_1)(m::model, input_data::AbstractVector)
|
||||
|
||||
return sum(kfn.firedNeurons_t1[kfn.kfnParams[:totalInputPort]+1:end])::Int,
|
||||
logit::Array{Float64},
|
||||
[n.v_t1 for n in kfn.outputNeuronsArray],
|
||||
[i for i in kfn.neuronsArray[end].wRec[1:10]],
|
||||
[sum(i.wRec) for i in kfn.outputNeuronsArray],
|
||||
[sum(i.epsilonRec) for i in kfn.outputNeuronsArray],
|
||||
[sum(i.wRecChange) for i in kfn.outputNeuronsArray]
|
||||
|
||||
Reference in New Issue
Block a user