Skip to content

Commit 6ca5ea6

Browse files
author
Lukas Molzberger
committed
added missing model label setters
1 parent 16d8f2c commit 6ca5ea6

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<groupId>org.aika-software</groupId>
66
<artifactId>aika</artifactId>
77
<packaging>jar</packaging>
8-
<version>1.4.7</version>
8+
<version>1.4.8</version>
99
<name>aika</name>
1010
<url>http://aika.network</url>
1111
<description>An artificial intelligence for knowledge acquisition</description>

src/main/java/network/aika/neuron/INeuron.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,15 @@ public INeuron(Model m, String label, String outputText, Type type, ActivationFu
402402
OrNode node = new OrNode(m);
403403
InputNode iNode = new InputNode(m);
404404

405+
if(m.getModelLabelCallback() != null) {
406+
String ml = m.getModelLabelCallback().getCurrentModelLabel();
407+
if(ml != null) {
408+
getModelLabels().add(ml);
409+
node.getModelLabels().add(ml);
410+
iNode.getModelLabels().add(ml);
411+
}
412+
}
413+
405414
node.setOutputNeuron(provider);
406415
inputNode = node.getProvider();
407416

0 commit comments

Comments
 (0)