@@ -98,36 +98,11 @@ public static Neuron init(Neuron n, Builder... inputs) {
9898
9999
100100 public static Neuron init (Document doc , Neuron n , Builder ... inputs ) {
101- if (n .init (doc , null , null , null , getSynapseBuilders (inputs ), getRelationBuilders (inputs ))) {
101+ if (n .init (doc , null , getSynapseBuilders (inputs ), getRelationBuilders (inputs ))) {
102102 return n ;
103103 } else return null ;
104104 }
105105
106- /**
107- * Creates a neuron with the given bias.
108- *
109- * @param n
110- * @param bias
111- * @param inputs
112- * @return
113- */
114- public static Neuron init (Neuron n , double bias , Type type , Builder ... inputs ) {
115- return init (n , bias , type , getSynapseBuilders (inputs ), getRelationBuilders (inputs ));
116- }
117-
118-
119- /**
120- * Creates a neuron with the given bias.
121- *
122- * @param n
123- * @param bias
124- * @param inputs
125- * @return
126- */
127- public static Neuron init (Document doc , Neuron n , double bias , Type type , Builder ... inputs ) {
128- return init (doc , n , bias , null , type , getSynapseBuilders (inputs ), getRelationBuilders (inputs ));
129- }
130-
131106
132107 /**
133108 * Creates a neuron with the given bias.
@@ -137,8 +112,8 @@ public static Neuron init(Document doc, Neuron n, double bias, Type type, Builde
137112 * @param inputs
138113 * @return
139114 */
140- public static Neuron init (Neuron n , double bias , ActivationFunction activationFunction , Type type , Builder ... inputs ) {
141- return init (n , bias , activationFunction , type , getSynapseBuilders (inputs ), getRelationBuilders (inputs ));
115+ public static Neuron init (Neuron n , double bias , Builder ... inputs ) {
116+ return init (n , bias , getSynapseBuilders (inputs ), getRelationBuilders (inputs ));
142117 }
143118
144119
@@ -150,28 +125,10 @@ public static Neuron init(Neuron n, double bias, ActivationFunction activationFu
150125 * @param inputs
151126 * @return
152127 */
153- public static Neuron init (Document doc , Neuron n , double bias , ActivationFunction activationFunction , Type type , Builder ... inputs ) {
154- return init (doc , n , bias , activationFunction , type , getSynapseBuilders (inputs ), getRelationBuilders (inputs ));
128+ public static Neuron init (Document doc , Neuron n , double bias , Builder ... inputs ) {
129+ return init (doc , n , bias , getSynapseBuilders (inputs ), getRelationBuilders (inputs ));
155130 }
156131
157-
158- /**
159- * Creates a neuron with the given bias.
160- *
161- * @param n
162- * @param bias
163- * @param synapseBuilders
164- * @param relationBuilders
165- * @return
166- */
167- public static Neuron init (Neuron n , double bias , Type type , Collection <Synapse .Builder > synapseBuilders , Collection <Relation .Builder > relationBuilders ) {
168- return init (n , bias , null , type , synapseBuilders , relationBuilders );
169- }
170-
171-
172- public static Neuron init (Neuron n , double bias , Type type , Collection <Neuron .Builder > inputs ) {
173- return init (n , bias , null , type , getSynapseBuilders (inputs ), getRelationBuilders (inputs ));
174- }
175132
176133
177134 /**
@@ -183,14 +140,14 @@ public static Neuron init(Neuron n, double bias, Type type, Collection<Neuron.Bu
183140 * @param relationBuilders
184141 * @return
185142 */
186- public static Neuron init (Neuron n , double bias , ActivationFunction activationFunction , Type type , Collection <Synapse .Builder > synapseBuilders , Collection <Relation .Builder > relationBuilders ) {
187- if (n .init ((Document ) null , bias , activationFunction , type , synapseBuilders , relationBuilders )) return n ;
143+ public static Neuron init (Neuron n , double bias , Collection <Synapse .Builder > synapseBuilders , Collection <Relation .Builder > relationBuilders ) {
144+ if (n .init ((Document ) null , bias , synapseBuilders , relationBuilders )) return n ;
188145 return null ;
189146 }
190147
191148
192- public static Neuron init (Neuron n , double bias , ActivationFunction activationFunction , Type type , Collection <Neuron .Builder > inputs ) {
193- if (n .init ((Document ) null , bias , activationFunction , type , getSynapseBuilders (inputs ), getRelationBuilders (inputs ))) return n ;
149+ public static Neuron init (Neuron n , double bias , Collection <Neuron .Builder > inputs ) {
150+ if (n .init ((Document ) null , bias , getSynapseBuilders (inputs ), getRelationBuilders (inputs ))) return n ;
194151 return null ;
195152 }
196153
@@ -203,29 +160,21 @@ public static Neuron init(Neuron n, double bias, ActivationFunction activationFu
203160 * @param relationBuilders
204161 * @return
205162 */
206- public static Neuron init (Document doc , Neuron n , double bias , ActivationFunction activationFunction , Type type , Collection <Synapse .Builder > synapseBuilders , Collection <Relation .Builder > relationBuilders ) {
207- if (n .init (doc , bias , activationFunction , type , synapseBuilders , relationBuilders )) return n ;
163+ public static Neuron init (Document doc , Neuron n , double bias , Collection <Synapse .Builder > synapseBuilders , Collection <Relation .Builder > relationBuilders ) {
164+ if (n .init (doc , bias , synapseBuilders , relationBuilders )) return n ;
208165 return null ;
209166 }
210167
211168
212- public static Neuron init (Document doc , Neuron n , double bias , ActivationFunction activationFunction , Type type , Collection <Neuron .Builder > inputs ) {
213- if (n .init (doc , bias , activationFunction , type , getSynapseBuilders (inputs ), getRelationBuilders (inputs ))) return n ;
169+ public static Neuron init (Document doc , Neuron n , double bias , Collection <Neuron .Builder > inputs ) {
170+ if (n .init (doc , bias , getSynapseBuilders (inputs ), getRelationBuilders (inputs ))) return n ;
214171 return null ;
215172 }
216173
217174
218- private boolean init (Document doc , Double bias , ActivationFunction activationFunction , Type type , Collection <Synapse .Builder > synapseBuilders , Collection <Relation .Builder > relationBuilders ) {
175+ private boolean init (Document doc , Double bias , Collection <Synapse .Builder > synapseBuilders , Collection <Relation .Builder > relationBuilders ) {
219176 INeuron n = get ();
220177
221- if (activationFunction != null ) {
222- n .activationFunction = activationFunction ;
223- }
224-
225- if (type != null ) {
226- n .type = type ;
227- }
228-
229178 if (bias != null ) {
230179 n .setBias (bias );
231180 }
0 commit comments