[ 
https://issues.apache.org/jira/browse/MATH-1267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14731338#comment-14731338
 ] 

Ole Ersoy commented on MATH-1267:
---------------------------------

It might be better to return a Coordinate instance, so that we can use 
`getRow()` and `getColumn()` methods.

Is the validation check on the ID just defensive coding or is it possible for 
the org.apache.commons.math3.ml.neuralnet.Network to get constructed without 
unique identifiers? 


> Grid coordinate of "Neuron" that belongs to a "NeuronSquareMesh2D"
> ------------------------------------------------------------------
>
>                 Key: MATH-1267
>                 URL: https://issues.apache.org/jira/browse/MATH-1267
>             Project: Commons Math
>          Issue Type: Wish
>            Reporter: Gilles
>            Assignee: Gilles
>            Priority: Minor
>             Fix For: 4.0, 3.6
>
>         Attachments: LocationFinder.java
>
>
> When the network layout is a 2D grid, it useful to be able to retrieve the 
> grid coordinate (row, column) of a a neuron.
> I propose to define a new class "LocationFinder" (in package 
> "o.a.c.m.ml.neuralnet.twod.util") that will provide the functionality through 
> a "getLocation(Neuron n)" method.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to