Created
September 5, 2019 08:58
-
-
Save NMZivkovic/65f48a75f717274dea26f820472a3da0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// Loading the model. | |
public async ngOnInit(): Promise<void> { | |
this.title = 'Loading model, please wait...'; | |
this.model = await tf.loadLayersModel('http://localhost:3000/model.json') | |
console.log(this.model.summary()); | |
this.title = 'Model Trained! Write down digits!'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment