This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| MAX_DISTANCE = sqrt(25000.0 ** 2 + 25000.0 ** 2) | |
| def score_mine_commodity_label(predicted, actual): | |
| """ | |
| Score the predictions for commodity label against the actual values | |
| Parameters: | |
| predicted, actual - predicted and actual deposit info | |
| """ | |
| # Handle zero deposit case |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| typedef MapApi<K,V> = { | |
| public function set(key:K,value:V) : Void; | |
| public function get(key:K) : Null<V>; | |
| }; | |
| @:generic | |
| extern abstract Checker<Typedef, Instance:Typedef> (Dynamic) | |
| { | |
| static var instance:Instance; | |
| inline public function new() { this = null; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class IScheduleClient | |
| { | |
| public function getNextWake():Float; | |
| public function onPoll():Void; | |
| } | |
| class Scheduler | |
| { |