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) { 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 // Generate the GeoJSON feature for this cell of the map
this.geojson.push({ this.geojson.push({
type: "Feature", type: "Feature",
@ -181,10 +184,10 @@ class LayerAI {
type: "Polygon", type: "Polygon",
coordinates: [ coordinates: [
[ // Outer shape [ // Outer shape
[lng, lat], [c_lng, c_lat],
[lng, lat + Config.step.lat], [c_lng, c_lat + Config.step.lat],
[lng + Config.step.lng, lat + Config.step.lat], [c_lng + Config.step.lng, c_lat + Config.step.lat],
[lng + Config.step.lng, lat] [c_lng + Config.step.lng, c_lat]
] ]
// If there were any holes in the shape, we'd put them here // 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. # 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. # 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. # The number of epochs to train for.
epochs = 1000 epochs = 1000