Skip to content

Commit 62a370b

Browse files
committed
add some comments
1 parent 2d777d0 commit 62a370b

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

hyperengine/examples/1_1_hello_word_with_mnist.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@
66
so that hyper-engine could find them. By convention, hyper-engine looks up the following:
77
- input
88
- label
9-
- loss
10-
- accuracy
9+
- mode (optional)
1110
- minimize
11+
- loss (optional)
12+
- accuracy (optional)
1213
These are the defaults and they are customizable.
1314
The whole integration is creation and start of the solver.
1415
"""

hyperengine/examples/1_2_getting_started_with_tuning.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
#! /usr/bin/env python
22
# -*- coding: utf-8 -*-
33

4+
"""Optimizing a simple CNN model with one hyper-parameter (learning rate).
5+
6+
The model itself isn't different from "Hello World Example", except for the hyper-parameter that
7+
is now taken from the input dictionary: `params['learning_rate']`.
8+
9+
Also pay attention to `strategy_params` argument that dictates to save Bayesian optimization parameters
10+
automatically and continue from the last saved state on subsequent runs.
11+
"""
12+
413
__author__ = 'maxim'
514

615
import tensorflow as tf

0 commit comments

Comments
 (0)