From a348bc577cc1402320340fdf9c94f7ab20b14afb Mon Sep 17 00:00:00 2001 From: guille <guillermopolito@gmail.com> Date: Fri, 28 Oct 2016 12:05:06 +0200 Subject: [PATCH] Removed unused InternalWinnerTakeAllConnection --- .../InternalWinnerTakeAllConnection.scala | 31 ------------------- 1 file changed, 31 deletions(-) delete mode 100644 n2s3/src/main/scala/fr/univ_lille/cristal/emeraude/n2s3/features/builder/connection/types/InternalWinnerTakeAllConnection.scala diff --git a/n2s3/src/main/scala/fr/univ_lille/cristal/emeraude/n2s3/features/builder/connection/types/InternalWinnerTakeAllConnection.scala b/n2s3/src/main/scala/fr/univ_lille/cristal/emeraude/n2s3/features/builder/connection/types/InternalWinnerTakeAllConnection.scala deleted file mode 100644 index b286fb5f..00000000 --- a/n2s3/src/main/scala/fr/univ_lille/cristal/emeraude/n2s3/features/builder/connection/types/InternalWinnerTakeAllConnection.scala +++ /dev/null @@ -1,31 +0,0 @@ -package fr.univ_lille.cristal.emeraude.n2s3.features.builder.connection.types - -import fr.univ_lille.cristal.emeraude.n2s3.core.NeuronConnection -import fr.univ_lille.cristal.emeraude.n2s3.features.builder.{NeuronGroupRef, NeuronIterable} -import fr.univ_lille.cristal.emeraude.n2s3.features.builder.connection.{Connection, InternalConnectionPolicy} - -/** - * Created by falezp on 23/05/16. - */ -class InternalWinnerTakeAllConnection(inhibitorNeuron : () => NeuronConnection) extends InternalConnectionPolicy { - - def generate(layer: NeuronIterable) = { - for{ - (from, from_index) <- layer.toSeq.zipWithIndex - (to, to_index) <- layer.toSeq.zipWithIndex - if from_index != to_index - } yield { - Connection(to, from, Some(inhibitorNeuron())) - } - } - - override def generate(layer: NeuronGroupRef): Traversable[Connection] = { - for{ - (from, from_index) <- layer.neuronPaths.zipWithIndex - (to, to_index) <- layer.neuronPaths.zipWithIndex - if from_index != to_index - } yield { - Connection(to, from, Some(inhibitorNeuron())) - } - } -} -- GitLab