CNTK icon indicating copy to clipboard operation
CNTK copied to clipboard

Training and Evaluate simplified API

Open Arvinds-ds opened this issue 9 years ago • 3 comments

I am new to CNTK. While model creation is a breeze, there seems to be a lot of boilerplate code for training and testing models. Is there a Keras like fit, evaluate, predict api for CNTK? . If not, can some one post their code for us to use. The API needs to work for CNTK readers as well as numpy arrays. Sorry of this has already been posted/addressed.

Arvinds-ds avatar May 29 '17 03:05 Arvinds-ds

Yes. Check this tutorial: https://github.com/Microsoft/CNTK/blob/master/Tutorials/CNTK_200_GuidedTour.ipynb

We will add more this kind of tutorials in the next few weeks.

cha-zhang avatar Jun 01 '17 22:06 cha-zhang

Great!. I also noticed today that there is a Keras API. How do these 2 compare? Which do you think should a beginner focus on..CNTK functional API or Keras API? Are there any features which are fundamentally not supported in keras API

Arvinds-ds avatar Jun 01 '17 22:06 Arvinds-ds

Yes, we have to sacrifice performance to comply with Keras API. If you care about speed, use native CNTK API.

Keras API is in beta, so we are continuing working on it.

cha-zhang avatar Jun 01 '17 22:06 cha-zhang