- Scala Machine Learning Projects
- Md. Rezaul Karim
- 51字
- 2021-06-30 19:05:41
TraderActor
TraderActor receives the prediction and, based on the label, writes a log message. It can trigger an HTTP request to the specified endpoint:
override def receive: Receive = {
case data: CurrentDataWithShortTermPrediction =>
Logger.debug("received short-term prediction" + data)
data.prediction match {
case "0" => notifySellShortTerm()
case "1" => notifyHoldShortTerm()
}
推薦閱讀
- Ansible Configuration Management
- Mastering VMware vSphere 6.5
- 可編程控制器技術(shù)應(yīng)用(西門子S7系列)
- Associations and Correlations
- ESP8266 Home Automation Projects
- 悟透AutoCAD 2009完全自學(xué)手冊(cè)
- 網(wǎng)絡(luò)服務(wù)搭建、配置與管理大全(Linux版)
- 經(jīng)典Java EE企業(yè)應(yīng)用實(shí)戰(zhàn)
- HBase Essentials
- 數(shù)據(jù)要素:全球經(jīng)濟(jì)社會(huì)發(fā)展的新動(dòng)力
- 筆記本電腦使用與維護(hù)
- 仿蛛機(jī)器人的設(shè)計(jì)與制作
- 系統(tǒng)與服務(wù)監(jiān)控技術(shù)實(shí)踐
- Orange'S:一個(gè)操作系統(tǒng)的實(shí)現(xiàn)
- 嵌入式系統(tǒng)原理與接口技術(shù)