LogisticRegression

Algorithmia Platform License

Run an Example

{
  "std": 0.23570226039551584,
  "prediction": [
    1,
    0,
    1,
    1,
    1
  ],
  "accuracy": 0.6666666666666666
}

Install & Use

Use

curl -X POST -d '{"X_test": [[6.1, 2.9, 4.7, 1.4],
  [4.8, 3.0, 1.4, 0.1],
  [6.4, 2.8, 5.6, 2.1],
  [6.3, 3.3, 4.7, 1.6],
  [6.1, 2.8, 4.7, 1.2]],
 "X_train": [[4.9, 3.0, 1.4, 0.2],
  [7.0, 3.2, 4.7, 1.4],
  [5.5, 2.5, 4.0, 1.3],
  [5.1, 3.5, 1.4, 0.3],
  [6.9, 3.1, 5.4, 2.1]],
"y_train": [0, 1, 0, 0, 1]}' -H 'Content-Type: application/json' -H 'Authorization: Simple YOUR_API_KEY' https://api.algorithmia.com/v1/algo/ryval/LogisticRegression/0.1.2