For our assignment we need to write the code for a neural network. The way I planned to do this was write a node
class, which is a node within the network; A layer
class, which is a layer of node and a neuralnet
class, which is a network of layers.
I have a lot of things to do with understanding the way Java is designed to work. It seems to me that this is my node
class to me < In my layer
class, my neuralnet
class is included in the code> Layer class, however Java does not like to import from the default package.
Whatever I have read, I suggest that whatever you are importing should be in the package and the package has its own subdirectory, the way I plan to organize my classes, For this reason, I think, what I think is, an unwieldy and unnecessary complex directory structure that leaves me.
neuralpkg.layerpkg.nodepkg.Node
Can someone explain to me whether this is the only way to implement the structure, which I want Am I a very easy way to remember what I missed?
Would not it be a problem writing in C / C ++ for its price, but trying to import into this type of style has given me heartache.
You do not need to layer packages such as neuralpkg.layerpkg.nodepkg
, Where subpages are for "neural", "layer", and "node" related classes.
You can simply create a package named "Ben" and put all your classes in there. So within your source directory you will have a layout:
- / ben ---- Layer.java ---- National Network.Java ---- Nowad.Java
The definition of each class should then start with line package Ben;
.
Classes do not need to import each other in the same package
Comments
Post a Comment