Skip to content

Commit

Permalink
Handle special case for tensorflow cat input
Browse files Browse the repository at this point in the history
  • Loading branch information
minimaxir committed Mar 23, 2019
1 parent c0e4fc5 commit 1dcb9e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -14,6 +14,7 @@ Nowadays, the cost of computing many different models and hyperparameters is muc
* Correct serialization of data pipeline encoders on disk (i.e. no pickled Python objects!)
* Retrain the generated model on new data without making any code/pipeline changes.
* Quit the hyperparameter search at any time, as the results are saved after each trial.
* Training progress bars with ETAs for both the overall experiment and per-epoch during the experiment.

The models generated by automl-gs are intended to give a very strong *baseline* for solving a given problem; they're not the end-all-be-all that often accompanies the AutoML hype, but the resulting code is easily tweakable to improve from the baseline.

Expand Down
3 changes: 2 additions & 1 deletion automl-gs/templates/models/tensorflow/categorical.py
@@ -1,3 +1,4 @@
# {{ field_raw }}
input_{{ field }} = Input(shape=(len(encoders['{{ field }}_encoder'].classes_),), name="input_{{ field }}")
input_{{ field }}_size = len(encoders['{{ field }}_encoder'].classes_)
input_{{ field }} = Input(shape=(input_{{ field }}_size if input_{{ field }}_size != 2 else 1,), name="input_{{ field }}")

0 comments on commit 1dcb9e2

Please sign in to comment.