| ... | ... | @@ -5,7 +5,7 @@ In VS2N, we use MongoDB to store all the collected data from SNN simulations. Th |
|
|
|
|
|
|
|
Each type of collected data is stored in one collection (the equivalent of a table in a relational database system), and all the collections on one simulation are stored in one MongoDB database.
|
|
|
|
|
|
|
|
In VS2N, the types of collected data from each SNN simulation (which are stored as collection each) are:
|
|
|
|
In VS2N, the types of collected data from each SNN simulation (which are stored as a collection each) are:
|
|
|
|
|
|
|
|
**Required**
|
|
|
|
- General information on the network.
|
| ... | ... | @@ -16,12 +16,12 @@ In VS2N, the types of collected data from each SNN simulation (which are stored |
|
|
|
**Optional**
|
|
|
|
- Labels of each input to the network (if possible).
|
|
|
|
|
|
|
|
Each collection contains documents (the equivalent of a row in a table of a relational database system), each document has a specific schema that need to be respected by any simulator, in order for VS2N to work properly.
|
|
|
|
Each collection contains documents (the equivalent of a row in a table of a relational database system), each document has a specific schema that needs to be respected by any simulator, in order for VS2N to work properly.
|
|
|
|
|
|
|
|
## Document schemas
|
|
|
|
A document schema is a JSON object that contains information about the shape, fields and type of data stored in that document.
|
|
|
|
A document schema is a JSON object that contains information about the shape, fields, and type of data stored in that document.
|
|
|
|
|
|
|
|
```JSON
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"properties" : {
|
|
|
|
"_id" : { "bsonType" : "objectId" },
|
| ... | ... | @@ -29,6 +29,7 @@ A document schema is a JSON object that contains information about the shape, fi |
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
<center>Example of a document schema</center>
|
|
|
|
<br>
|
|
|
|
|
| ... | ... | @@ -41,7 +42,7 @@ In this collection, there are two schemas, the first one contains information ab |
|
|
|
- Number of layers
|
|
|
|
- Number of neurons per layer
|
|
|
|
|
|
|
|
```JSON
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"properties" : {
|
|
|
|
"_id" : { "bsonType": "objectId" }, // id
|
| ... | ... | @@ -55,7 +56,7 @@ In this collection, there are two schemas, the first one contains information ab |
|
|
|
<center>General information schema - 1</center>
|
|
|
|
<br>
|
|
|
|
|
|
|
|
```JSON
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"_id" : ObjectId("603834c376e245cd78319032"),
|
|
|
|
"n" : "My network",
|
| ... | ... | @@ -66,11 +67,11 @@ In this collection, there are two schemas, the first one contains information ab |
|
|
|
```
|
|
|
|
<center>Example</center>
|
|
|
|
|
|
|
|
The second one contains optional information, which are collected if there was test phase after training:
|
|
|
|
The second one contains optional information, which is collected if there was a test phase after training:
|
|
|
|
- Network accuracy
|
|
|
|
- final neuron classes (for non supervised learning)
|
|
|
|
|
|
|
|
```JSON
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"properties" : {
|
|
|
|
"_id" : { "bsonType": "objectId" }, // id
|
| ... | ... | @@ -82,7 +83,7 @@ The second one contains optional information, which are collected if there was t |
|
|
|
<center>General information schema - 2</center>
|
|
|
|
<br>
|
|
|
|
|
|
|
|
```JSON
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"_id" : ObjectId("60163a04dec986560a8d907a"),
|
|
|
|
"MaxS" : 83.51,
|
| ... | ... | |