联系方式

  • QQ:99515681
  • 邮箱:99515681@qq.com
  • 工作时间:8:00-21:00
  • 微信:codinghelp

您当前位置:首页 >> C/C++编程C/C++编程

日期:2018-06-24 02:39

For this assignment, you need to implement one function to complete the basic neural network for handwriting recognition by deep learning: numPrediction( ) to predict the number for an input handwriting image. This function will be called during the testing stage. You just need to focus on the implementation and don’t worry about where to call or use them. You can find this function definition (with empty body) at the top of the “main.cpp” file, with the following comments:

/******************** Implementation Here *******************/

Your code will be just in this region (so you only need to modify the “main.cpp” file)

/**************** End of Implementation ******************/

Please refer to the code file (in the comment) to see the details about how to implement this function.

If you want to test your function, you can add the following code in your main() function to load the trained parameters for the prediction. You can find the "*.xml" files in the attachment. Download them about place them in your project folder.

-----------------------------------------------------  prediction testing: load from ".xml" files -------------------------------------------------------------------------------

   FileStorage fs1("theta_1.xml", FileStorage::READ);

   FileStorage fs2("theta_2.xml", FileStorage::READ);

   fs1["theta_1"] >> theta_1;

   fs2["theta_2"] >> theta_2;

   fs1.release();

   fs2.release();


版权所有:编程辅导网 2021 All Rights Reserved 联系方式:QQ:99515681 微信:codinghelp 电子信箱:99515681@qq.com
免责声明:本站部分内容从网络整理而来,只供参考!如有版权问题可联系本站删除。 站长地图

python代写
微信客服:codinghelp