如要下载NI软件(包括以下所示产品),请访问ni.com/downloads。
This example shows how to use the deep learning API to perform numeric classification using the Python Keras library. The model is of sequential type and is compiled using the optimizer provided by Keras. Trained using the mnist dataset, this model recognizes and classifies numbers you draw on the front panel.
This example compiles and trains the model defined in main.py. The model uses a mnist dataset of 28x28 size images provided by Keras and outputs the result by predicting the number drawn on the front panel.
Jinho Choi
Staff Technical Support Engineer
NI社区“代码范例交流区”(Example Code Exchange)中的代码范例已获得MIT许可。