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