Fix grid to make prediction point in centre of cells

This commit is contained in:
Starbeamrainbowlabs 2019-07-30 19:09:45 +01:00
parent f18023cf1a
commit 121da46b5e
2 changed files with 8 additions and 5 deletions

View File

@ -174,6 +174,9 @@ class LayerAI {
for(let value of next_result.result) {
let c_lat = lat - Config.step.lat,
c_lng = lng - Config.step.lng;
// Generate the GeoJSON feature for this cell of the map
this.geojson.push({
type: "Feature",
@ -181,10 +184,10 @@ class LayerAI {
type: "Polygon",
coordinates: [
[ // Outer shape
[lng, lat],
[lng, lat + Config.step.lat],
[lng + Config.step.lng, lat + Config.step.lat],
[lng + Config.step.lng, lat]
[c_lng, c_lat],
[c_lng, c_lat + Config.step.lat],
[c_lng + Config.step.lng, c_lat + Config.step.lat],
[c_lng + Config.step.lng, c_lat]
]
// If there were any holes in the shape, we'd put them here
]

View File

@ -56,7 +56,7 @@ devices = [
# The architecture of the neural network, as an arary of integers.
# Each integer represents the number of nodes in a layer of the neural network.
network_arch = [ 64 ]
network_arch = [ 32, 32 ]
# The number of epochs to train for.
epochs = 1000