HasFood is now up/down
This commit is contained in:
parent
c2dc2720b0
commit
a95c685e1e
@ -249,7 +249,7 @@ public class Cluster : Nucleus {
|
||||
UpdateStateIsolated(bias);
|
||||
}
|
||||
public override void UpdateStateIsolated(float3 bias) {
|
||||
float3 sum = bias;
|
||||
Vector3 sum = bias;
|
||||
|
||||
//Applying the weight factors
|
||||
foreach (Synapse synapse in this.synapses) {
|
||||
|
||||
@ -31,7 +31,7 @@ public class MemoryCell : Neuron {
|
||||
}
|
||||
public override void UpdateStateIsolated(float3 bias) {
|
||||
// A memorycell does not have an activation function
|
||||
float3 result = bias;
|
||||
Vector3 result = bias;
|
||||
int n = 0;
|
||||
|
||||
//Applying the weight factgors
|
||||
|
||||
@ -187,7 +187,7 @@ public class Neuron : Nucleus {
|
||||
|
||||
public float3 bias = float3(0, 0, 0);
|
||||
public override void UpdateStateIsolated(float3 bias_unused) {
|
||||
float3 sum = this.bias;
|
||||
Vector3 sum = this.bias;
|
||||
int n = 0;
|
||||
|
||||
//Applying the weight factgors
|
||||
|
||||
@ -18,7 +18,7 @@ public abstract class Nucleus {
|
||||
public Cluster parent { get; set; }
|
||||
|
||||
protected float3 _outputValue;
|
||||
public virtual float3 outputValue {
|
||||
public virtual Vector3 outputValue {
|
||||
get { return _outputValue; }
|
||||
set {
|
||||
//Debug.Log($"{this.name}: stale is reset, was: {this.stale}");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user