Skip to content

Instantly share code, notes, and snippets.

View LucasOliveiraS's full-sized avatar
:octocat:
Solving problems

Lucas Oliveira LucasOliveiraS

:octocat:
Solving problems
View GitHub Profile
[
{
"constant": false,
"inputs": [
{
"internalType": "string",
"name": "data",
"type": "string"
}
],
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]])
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]])
@LucasOliveiraS
LucasOliveiraS / view.php
Last active August 7, 2018 17:32
Embed on Medium
<?php
Class View {
private $valor;
public function __construct($valor) {
$this->valor = $valor;
}
@LucasOliveiraS
LucasOliveiraS / model.php
Last active August 7, 2018 17:49
Embed on Medium
<?php
include_once 'controller.php';
Class Model {
public function getJson() {
$controller = new Controller();
@LucasOliveiraS
LucasOliveiraS / controller.php
Last active August 7, 2018 17:40
Embeds on Medium
<?php
include_once 'view.php';
include_once 'model.php';
class Controller {
private $url;
public function setUrl($coin) {