CNTK C# API - How to set learner module and number of iteration in learner module for training

放肆的年华 提交于 2019-12-12 23:44:40

问题


I am using CNTK C# API (Latest 2.2 release) and have following questions. (using the logisticsRegression example from GitHub and modifying it to set it for my usecase.

Using SGD and also tried SGDMomentim learners.

1. How can I set number of max iteration per sample for training. I can see LR and MR variables in SGDMomentum but nothing for iterations.

2. Is there a way to monitor how each neuron is progressing/stuck as training progresses thru each sample per iteration in the network. Or how the weight parameters were evolving in each iteration?

3. When are other learner modules expected to be released in C#? (Other then SGD and SGD momentum)?

Thanks for your help.


回答1:


  1. use TrainingParameterScheduleDouble(VectorPairSizeTDouble schedule, uint epochSize) to specify rate per multiple of epochs. (Yes the API shall be more C# friendly.) Use the input vector to specify a rate for each number of Epochs. For example: {{1, 0.05}, {2, 0.1}, {1, 0.005}} and epochSize = 100.

It means: '0.05' is used for the first 100 samples, then '0.1' is used for the second 200 samples, after which the values is switched to '0.005'

  1. To monitor parameter update: see answer to this
  2. Most learners are released in 2.2. Do you have a specific learner that is not available from C# API?


来源:https://stackoverflow.com/questions/46903350/cntk-c-sharp-api-how-to-set-learner-module-and-number-of-iteration-in-learner

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!