Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
0x00b1 committed Jun 21, 2017
1 parent 233e114 commit 059aca8
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 19 deletions.
2 changes: 2 additions & 0 deletions docs/source/autoencoder.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Autoencoder
-----------
2 changes: 2 additions & 0 deletions docs/source/ensemble_learning.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Ensemble learning
-----------------
3 changes: 3 additions & 0 deletions docs/source/feature_extraction.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Feature extraction
------------------

31 changes: 19 additions & 12 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,37 @@
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
.. toctree::
:maxdepth: 2

statistical_classification
ensemble_learning
feature_extraction
transfer_learning
autoencoder

.. module:: keras_resnet

Layers
Blocks
------

.. autofunction:: keras_resnet.basic

.. autofunction:: keras_resnet.bottleneck
.. autofunction:: keras_resnet.blocks.basic_2d

.. autofunction:: keras_resnet.shortcut
.. autofunction:: keras_resnet.blocks.bottleneck_2d

Models
------

.. autoclass:: keras_resnet.ResNet
.. autoclass:: keras_resnet.models.ResNet

.. autoclass:: keras_resnet.ResNet18
.. autoclass:: keras_resnet.models.ResNet18

.. autoclass:: keras_resnet.ResNet34
.. autoclass:: keras_resnet.models.ResNet34

.. autoclass:: keras_resnet.ResNet50
.. autoclass:: keras_resnet.models.ResNet50

.. autoclass:: keras_resnet.ResNet101
.. autoclass:: keras_resnet.models.ResNet101

.. autoclass:: keras_resnet.ResNet152
.. autoclass:: keras_resnet.models.ResNet152

.. autoclass:: keras_resnet.ResNet200
.. autoclass:: keras_resnet.models.ResNet200
11 changes: 11 additions & 0 deletions docs/source/statistical_classification.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Statistical classification
--------------------------

Audio
~~~~~

Image
~~~~~

Video
~~~~~
3 changes: 3 additions & 0 deletions docs/source/transfer_learning.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Transfer learning
-----------------

9 changes: 2 additions & 7 deletions keras_resnet/benchmarks/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ def __main__(benchmark, device, name):
training_x, validation_x, training_y, validation_y = sklearn.model_selection.train_test_split(training_x, training_y)

generator = keras.preprocessing.image.ImageDataGenerator(
featurewise_center=True,
featurewise_std_normalization=True,
horizontal_flip=True
)

Expand All @@ -88,10 +86,7 @@ def __main__(benchmark, device, name):
batch_size=256
)

validation_data = keras.preprocessing.image.ImageDataGenerator(
featurewise_center=True,
featurewise_std_normalization=True
)
validation_data = keras.preprocessing.image.ImageDataGenerator()

validation_data.fit(validation_x)

Expand All @@ -111,7 +106,7 @@ def __main__(benchmark, device, name):

pathname = os.path.join("data", "checkpoints", benchmark, "{}.hdf5".format(name))

pathname = pkg_resources.resource_filename("keras_resnet.data", pathname)
pathname = pkg_resources.resource_filename("keras_resnet", pathname)

model_checkpoint = keras.callbacks.ModelCheckpoint(pathname)

Expand Down

0 comments on commit 059aca8

Please sign in to comment.