Skip to content

Commit

Permalink
comment how to do ensemble
Browse files Browse the repository at this point in the history
  • Loading branch information
floft committed Apr 30, 2020
1 parent 7cfe55e commit 6b9c09b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions models.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,7 @@ class InceptionTimeModelMaker(CodatsModelMakerBase):
Paper: https://arxiv.org/pdf/1909.04939.pdf
Keras code: https://towardsdatascience.com/deep-learning-for-time-series-classification-inceptiontime-245703f422db
Paper's code: https://github.com/hfawaz/InceptionTime
and in particular: https://github.com/hfawaz/InceptionTime/blob/master/classifiers/inception.py
Inherit from FCN model since we'll use the same TC/DC maker functions.
InceptionTime is not designed for domain adaptation, just for time series
Expand All @@ -395,6 +396,9 @@ def make_feature_extractor(self):
every third has a skip connection. Thus, that's the same as 2 blocks.
"""
# TODO ensemble of 5 of these? Maybe 5 task classifiers?
# See: https://github.com/hfawaz/InceptionTime/blob/master/classifiers/nne.py
# TODO Looks like they train each model separately then at test time
# average the softmax outputs then take argmax to predict.
return tf.keras.Sequential([
InceptionBlock(),
InceptionBlock(),
Expand Down

0 comments on commit 6b9c09b

Please sign in to comment.