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
| <?php | |
| /** | |
| * Returns the inverse of the standard normal cumulative distribution. | |
| * The distribution has a mean of zero and a standard deviation of one. | |
| * Resources: | |
| * http://board.phpbuilder.com/showthread.php?10367349-PHP-NORMSINV | |
| * http://www.source-code.biz/snippets/vbasic/9.htm | |
| * @param integer $week number of week | |
| * @return float sales | |
| */ |
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
| <?php | |
| function get_this_location_path() { | |
| $parts = parse_url($_SERVER['PHP_SELF']); | |
| if (!isset($parts['scheme'])) { | |
| $parts['scheme'] = "http"; | |
| if (isset($_SERVER["HTTPS"]) && | |
| $_SERVER["HTTPS"] == "on") | |
| { | |
| $parts['scheme'] .= "s"; |
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
| # Code example for: | |
| # Hello World - Machine Learning Recipes #1 - Google Developers | |
| # https://www.youtube.com/watch?v=cKxRvEZd3Mw | |
| from sklearn import tree | |
| # Bumpy = 0, Smooth = 1 | |
| features = [[140, 1], [130, 1], [150, 0], [170, 0]] | |
| # Apple = 0, Orange = 1 | |
| labels = [0, 0, 1, 1] |
NewerOlder