简体   繁体   English

调整参数-机器学习

[英]Adjusting parameter - Machine learning

I am transfering some data remotely packet by packet. 我正在逐个数据包远程传输一些数据。 Before sending each packet I need to have a sleep for some time (milliseconds). 在发送每个数据包之前,我需要睡眠一段时间(毫秒)。 After transferring each file I have a feedback: fail or success. 传输每个文件后,我都会收到反馈:失败或成功。 Of course as smaller delay I have as smaller success rate will be however time for transferring will be less. 当然,延迟越小,成功率就越小,但是转移的时间会更少。 My goal is to adjust automatically current delay to make average SUCCESS RATE equal some constant (say 98%). 我的目标是自动调整电流延迟,以使平均成功率等于某个常数(例如98%)。 Intuitevly I assume: 凭直觉我假设:

  1. After each success transfer I'll increase current delay 每次成功转移后,我都会增加电流延迟
  2. After each unsuccess transfer I'll decrease current delay 每次传输失败后,我都会减少电流延迟
  3. In time I'll modify current delay less (fade) 随着时间的流逝,我将修改电流延迟减小

What algorithms would you suggest for efficient (from viewpoint of time to learn, memory) finding optimal parameter value? 您会建议使用哪些算法来有效地(从学习时间,记忆的角度)找到最佳参数值?

成功率取决于延迟

You are essentially describing a network congestion solution. 您实质上是在描述网络拥塞解决方案。 Look at http://en.wikipedia.org/wiki/Network_congestion_avoidance#Avoidance for much more information on the subject. 有关该主题的更多信息,请参见http://en.wikipedia.org/wiki/Network_congestion_avoidance#Avoidance

One algorithm that might suit you well is to decrease the time you wait after each successful transfer. 一种最适合您的算法是减少每次成功传输后的等待时间。 After an unsuccessful transfer increase the time (either by a set amount or dynamically) and repeat indefinitely. 传输失败后,请增加时间(增加一定数量或动态增加),然后无限期地重复。 I wish I could remember the specific name for this algorithm but at the moment it is escaping me. 我希望我能记住该算法的具体名称,但此刻它在逃避我。

Note if you are truly sending packages over a network and not just a play network "optimal" is not a constant as the network is always in a state of change. 请注意,如果您确实是通过网络发送数据包,而不仅仅是播放网络,则“最优”不是一个常数,因为网络始终处于变化状态。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM