Skip to content
Snippets Groups Projects
Commit 1a1992eb authored by POLITO Guillermo Andres's avatar POLITO Guillermo Andres
Browse files

deprecated unused classes

parent efd99df1
No related branches found
No related tags found
No related merge requests found
...@@ -6,6 +6,7 @@ import fr.univ_lille.cristal.emeraude.n2s3.features.io.input.Shape ...@@ -6,6 +6,7 @@ import fr.univ_lille.cristal.emeraude.n2s3.features.io.input.Shape
/** /**
* Created by falezp on 23/05/16. * Created by falezp on 23/05/16.
*/ */
@deprecated("Use the correct Neuron and NeuronGroup refs instead", "4/8/2016")
abstract class NeuronIterable extends Traversable[NetworkEntityPath] { abstract class NeuronIterable extends Traversable[NetworkEntityPath] {
val shape : Shape val shape : Shape
def dimensionNumber = shape.dimensionNumber def dimensionNumber = shape.dimensionNumber
...@@ -16,19 +17,8 @@ abstract class NeuronIterable extends Traversable[NetworkEntityPath] { ...@@ -16,19 +17,8 @@ abstract class NeuronIterable extends Traversable[NetworkEntityPath] {
def apply(index : Int*) = get(index) def apply(index : Int*) = get(index)
} }
abstract class LinearNeuronIterable(neurons : Seq[NetworkEntityPath]) extends NeuronIterable { @deprecated("Use the correct Neuron and NeuronGroup refs instead", "4/8/2016")
val shape : Shape = Shape(neurons.size) case class ShapedNeuronIterable(neurons : Seq[NetworkEntityPath], shape : Shape) extends NeuronIterable {
def get(index : Seq[Int]) : NetworkEntityPath = {
assert(index.size == 1)
neurons(index.head)
}
def getDimension(index : Int*) : NeuronIterable = throw new UnsupportedOperationException
def firstDimension : Seq[NeuronIterable] = throw new UnsupportedOperationException
}
case class ShapedNeuronIterable(neurons : Seq[NetworkEntityPath], val shape : Shape) extends NeuronIterable {
assert(this.shape.product == neurons.size) assert(this.shape.product == neurons.size)
......
...@@ -6,10 +6,11 @@ import fr.univ_lille.cristal.emeraude.n2s3.features.io.input.Shape ...@@ -6,10 +6,11 @@ import fr.univ_lille.cristal.emeraude.n2s3.features.io.input.Shape
import fr.univ_lille.cristal.emeraude.n2s3.features.learning.{BackPropagationMethod, DefaultBackPropagationMethod} import fr.univ_lille.cristal.emeraude.n2s3.features.learning.{BackPropagationMethod, DefaultBackPropagationMethod}
import scala.collection.mutable import scala.collection.mutable
/** /**
* Created by falezp on 23/05/16. * Created by falezp on 23/05/16.
*/ */
@deprecated("Use the correct Neuron and NeuronGroup refs instead", "4/8/2016")
class NeuronLayer(container : Option[NetworkEntityPath], neurons : Seq[NetworkEntityPath], shape : Shape) extends ShapedNeuronIterable(neurons, shape) { class NeuronLayer(container : Option[NetworkEntityPath], neurons : Seq[NetworkEntityPath], shape : Shape) extends ShapedNeuronIterable(neurons, shape) {
var backPropagationMethod : BackPropagationMethod = _ var backPropagationMethod : BackPropagationMethod = _
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment