Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
lhuang-pvamu committed Mar 7, 2019
1 parent fc8a374 commit 23b6d81
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ data
*.eggs/
testdata
tmpdata
models
output
*.json
output
Expand Down
4 changes: 2 additions & 2 deletions bin/preprocess/create_dataset_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@


def distance_to_station(lat, long, depth):
# station GPS coordinates
# station GPS coordinates of GS OK029 station - Liberty Lake, Oklahoma, USA
lat0 = 35.796570
long0 = -97.454860
depth0 = -0.333
depth0 = -0.333 # elevation: 333m
# return distance of the event to the station
return distance(long, lat, depth, long0, lat0, depth0)

Expand Down
4 changes: 2 additions & 2 deletions quakenet/Keras_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ def set_model(self):
depth = 8
x = inputs
for i in range(depth):
x = Conv1D(c, ksize, activation='relu', padding='same', strides=1)(x)
x = MaxPool1D(pool_size=2)(x)
x = Conv1D(c, ksize, activation='relu', padding='same', strides=2)(x)
#x = MaxPool1D(pool_size=2)(x)
x = Flatten()(x)
x = Dense(128, activation='relu')(x)
x = Dropout(0.5)(x)
Expand Down

0 comments on commit 23b6d81

Please sign in to comment.