This file contains 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
<? | |
final class SupervisedLearningAlgorithm { | |
public function __construct($processId) { | |
} | |
} |
This file contains 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
<? | |
final class SupervisedLearningStrategy { | |
} |
This file contains 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
<? | |
private function | |
executeAndGetData($processId, $isUsingFastMethod = null) { | |
} | |
private function | |
executeAndGetData($processId, bool $isUsingFastMethod = false) { |
This file contains 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
<? | |
private function executeAndGetData($processId, bool $isUsingFastMethod = false) { | |
} | |
private function executeAndGetData($processId, bool $isUsingFastMethod) { | |
} |
This file contains 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
<? | |
final class SupervisedLearningStrategy { | |
const CONFIDENCE_INTERVAL_THRESHOLD = 0.001; | |
function xx() { | |
if ($estimatedError <= self::CONFIDENDE_INTERVAL_THRESHOLD) { | |
} | |
} | |
} |
This file contains 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
<? | |
final class SupervisedLearningStrategy { | |
const CONFIDENCE_INTERVAL_THRESHOLD = 0.9; | |
private function executeAndGetData($processId, bool $isUsingFastMethod) { | |
// ... | |
if ($estimatedError <= self::CONFIDENDE_INTERVAL_THRESHOLD) { | |
// .. | |
} |
This file contains 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
?> | |
function logInfo(array $infoToLog) { | |
SingletonLogger::info($infoToLog); | |
} |
This file contains 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
<? | |
SingletonLogger::info($infoToLog); |
This file contains 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
<? | |
function logInfo(array $infoToLog) { | |
$loggingFunction = function() use ($infoToLog) { | |
SingletonLogger::info($infoToLog); | |
}; | |
$loggingFunction($infoToLog); | |
} |
This file contains 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
<? | |
final class SupervisedLearningAlgorithm { | |
public function __construct($processId, closure $loggingFunction) { | |
} | |
} |