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
| [ | |
| { | |
| "constant": false, | |
| "inputs": [ | |
| { | |
| "internalType": "string", | |
| "name": "data", | |
| "type": "string" | |
| } | |
| ], |
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
| from sklearn.linear_model import SGDClassifier | |
| X = np.array([[0,0], [0,1]]) | |
| y = np.array([[0], [1]]) | |
| clf = SGDClassifier(loss="hinge", penalty="l2") | |
| clf.fit(X, y) | |
| X_new = np.array([[1,0], [1,1]]) | |
| y_new = np.array([[1], [0]]) |
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
| from sklearn.linear_model import SGDClassifier | |
| X = np.array([[0,0], [0,1]]) | |
| y = np.array([[0], [1]]) | |
| clf = SGDClassifier(loss="hinge", penalty="l2") | |
| clf.fit(X, y) | |
| X_new = np.array([[1,0], [1,1]]) | |
| y_new = np.array([[1], [0]]) |
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 | |
| Class View { | |
| private $valor; | |
| public function __construct($valor) { | |
| $this->valor = $valor; | |
| } | |
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 | |
| include_once 'controller.php'; | |
| Class Model { | |
| public function getJson() { | |
| $controller = new Controller(); | |
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 | |
| include_once 'view.php'; | |
| include_once 'model.php'; | |
| class Controller { | |
| private $url; | |
| public function setUrl($coin) { |