Skip to content

Commit

Permalink
Merge pull request #6 from godatadriven/dev
Browse files Browse the repository at this point in the history
docs: update readme
  • Loading branch information
JasperHG90 authored Jan 5, 2021
2 parents 79c2b36 + 1587477 commit de6769c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ This will save the metrics, keras model, and model predictions to the folder.

For additional examples, see the 'tests' and 'notebooks' folders.

## Creating your own model with Piven layer
## Creating your own model with a piven output layer

You can use a Piven layer on any neural network architecture. The authors of the Piven paper use it on top of
[a pre-trained CNN](https://github.com/elisim/piven/blob/master/imdb/main.py) to predict people's age.
Expand Down Expand Up @@ -128,7 +128,7 @@ class MyPivenModel(PivenBaseModel):
def load(cls, path: str):
model_config = MyPivenModel.load_model_config(path)
model = MyPivenModel.load_model_from_disk(build_fn=piven_model, path)
run = cls(**Model_config)
run = cls(**model_config)
run.model = model
return run
```
Expand Down

0 comments on commit de6769c

Please sign in to comment.