binomial_mgcv

Binomial regression with GAMs

(no tags)

    Algorithmia Platform License
    apl
    · Internet Access

    This algorithm has Internet access.

    This is necessary for algorithms that rely on external services, however it also implies that this algorithm is able to send your input data outside of the Algorithmia platform.
    · Calls Other Algorithms

    This algorithm has permission to call other algorithms.

    This allows an algorithm to compose sophisticated functionality using other algorithms as building blocks, however it also carries the potential of incurring additional royalty and usage costs from any algorithm that it calls.

    Run an Example

    Copy
    Copy
    {
      "lng": [
        31.9572,
        31.9281,
        31.9361,
        31.4505,
        31.419,
        31.4247,
        31.4,
        31.4065,
        31.4127,
        31.3999,
        31.2944,
        31.4352,
        31.3692,
        31.3008,
        31.3942,
        31.3624,
        31.3309,
        31.3664,
        31.3894,
        31.2944,
        31.3245,
        31.9298,
        31.8976,
        31.9356,
        31.9509,
        31.9343,
        31.8799,
        31.9564,
        31.9164,
        31.9164,
        31.9531,
        31.9161,
        31.9034,
        31.9269,
        31.9439,
        31.9077,
        31.9401,
        31.9064,
        31.9409,
        31.924,
        31.9161,
        31.9483,
        31.9183,
        31.9324,
        31.9505,
        31.7901,
        31.7846,
        31.8091,
        31.7502,
        31.7746,
        31.8546,
        31.7229,
        31.8094,
        31.863,
        31.8273,
        31.675,
        31.8422,
        31.7205,
        31.8442,
        31.6675,
        31.7119,
        31.8256,
        31.6906,
        31.7724,
        31.7163,
        31.8308,
        31.7339,
        31.8252,
        31.8627,
        31.8191,
        31.7459,
        31.7927,
        31.6947,
        31.8171,
        31.8301,
        31.7602,
        31.8197,
        31.8423,
        31.7199,
        31.7437
      ],
      "lat": [
        -26.1142,
        -26.1334,
        -26.1407,
        -26.6834,
        -26.7025,
        -26.6642,
        -26.6406,
        -26.6426,
        -26.6841,
        -26.6742,
        -26.6892,
        -26.7106,
        -26.6406,
        -26.6905,
        -26.7083,
        -26.6341,
        -26.6815,
        -26.6372,
        -26.6796,
        -26.7182,
        -26.6667,
        -26.2179,
        -26.1271,
        -26.0993,
        -26.2366,
        -26.1747,
        -26.1624,
        -26.2382,
        -26.2228,
        -26.1705,
        -26.159,
        -26.2149,
        -26.1498,
        -26.2597,
        -26.1307,
        -26.1867,
        -26.223,
        -26.1483,
        -26.201,
        -26.1358,
        -26.183,
        -26.237,
        -26.4933,
        -26.4199,
        -26.4753,
        -26.1416,
        -26.0574,
        -26.1604,
        -26.0808,
        -26.1641,
        -26.064,
        -26.069,
        -26.1513,
        -26.1258,
        -26.174,
        -26.0681,
        -26.0616,
        -26.1313,
        -26.068,
        -26.1225,
        -26.096,
        -26.0865,
        -26.1558,
        -26.1322,
        -26.1405,
        -26.0938,
        -26.0812,
        -26.0581,
        -26.0905,
        -26.189,
        -26.0681,
        -26.161,
        -26.0632,
        -26.102,
        -26.0832,
        -26.1465,
        -26.0783,
        -26.0689,
        -26.1583,
        -26.0923
      ],
      "predicted_prevalence": [
        0.0048,
        0.0024,
        0.0025,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        0.0016,
        0.0016,
        0.0042,
        0.0015,
        0.002,
        0.0012,
        0.0015,
        0.0016,
        0.0017,
        0.0026,
        0.0016,
        0.0016,
        0.0014,
        0.003,
        0.0016,
        0.0016,
        0.0016,
        0.0018,
        0.0022,
        0.0017,
        0.0015,
        0.0008,
        0.0007,
        0.0003,
        0.0004,
        0,
        0.0006,
        0,
        0.0004,
        0.0004,
        0.0000040535,
        0.0005,
        0.0009,
        0.0008,
        6.6836e-7,
        0.0002,
        0.0001,
        0.0003,
        0,
        0,
        0.0003,
        0.0002,
        0.0003,
        0.0001,
        0.0004,
        0,
        0.0001,
        0.0008,
        0.0009,
        0.0000085935,
        0.0005,
        8.2577e-7,
        0.0003,
        0.0003,
        0.0003,
        0.0002,
        0.0003,
        0.0002,
        0
      ]
    }
    Running algorithm...

    Install & Use

    Use
    
    curl -X POST -d '{
      "lng": [31.9363, 31.9189, 31.9539, 31.9209, 31.9403, 31.9485, 31.955, 31.9037, 31.9148, 31.9239, 31.9352, 31.9183, 31.9237, 31.9331, 31.9434, 31.9221, 31.9025, 31.9505, 31.8954, 31.9184, 31.9572, 31.9281, 31.9361, 31.4505, 31.419, 31.4247, 31.4, 31.4065, 31.4127, 31.3999, 31.2944, 31.4352, 31.3692, 31.3008, 31.3942, 31.3624, 31.3309, 31.3664, 31.3894, 31.2944, 31.3245, 31.9298, 31.8976, 31.9356, 31.9509, 31.9343, 31.8799, 31.9564, 31.9164, 31.9164, 31.9531, 31.9161, 31.9034, 31.9269, 31.9439, 31.9077, 31.9401, 31.9064, 31.9409, 31.924, 31.9161, 31.9483, 31.9183, 31.9324, 31.9505, 31.7901, 31.7846, 31.8091, 31.7502, 31.7746, 31.8546, 31.7229, 31.8094, 31.863, 31.8273, 31.675, 31.8422, 31.7205, 31.8442, 31.6675, 31.7119, 31.8256, 31.6906, 31.7724, 31.7163, 31.8308, 31.7339, 31.8252, 31.8627, 31.8191, 31.7459, 31.7927, 31.6947, 31.8171, 31.8301, 31.7602, 31.8197, 31.8423, 31.7199, 31.7437],
      "lat": [-26.1559, -26.0782, -26.0909, -26.1266, -26.1805, -26.1266, -26.0957, -26.169, -26.1433, -26.1722, -26.1246, -26.1703, -26.1814, -26.1401, -26.0517, -26.1619, -26.1657, -26.1407, -26.0912, -26.0948, -26.1142, -26.1334, -26.1407, -26.6834, -26.7025, -26.6642, -26.6406, -26.6426, -26.6841, -26.6742, -26.6892, -26.7106, -26.6406, -26.6905, -26.7083, -26.6341, -26.6815, -26.6372, -26.6796, -26.7182, -26.6667, -26.2179, -26.1271, -26.0993, -26.2366, -26.1747, -26.1624, -26.2382, -26.2228, -26.1705, -26.159, -26.2149, -26.1498, -26.2597, -26.1307, -26.1867, -26.223, -26.1483, -26.201, -26.1358, -26.183, -26.237, -26.4933, -26.4199, -26.4753, -26.1416, -26.0574, -26.1604, -26.0808, -26.1641, -26.064, -26.069, -26.1513, -26.1258, -26.174, -26.0681, -26.0616, -26.1313, -26.068, -26.1225, -26.096, -26.0865, -26.1558, -26.1322, -26.1405, -26.0938, -26.0812, -26.0581, -26.0905, -26.189, -26.0681, -26.161, -26.0632, -26.102, -26.0832, -26.1465, -26.0783, -26.0689, -26.1583, -26.0923],
      "n_positive": [2, 0, 1, 0, 1, 1, 3, 1, 0, 0, 0, 1, 1, 2, 9, 0, 0, 1, 1, 2, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1],
      "n_trials": [433, 205, 268, 455, 293, 429, 308, 257, 342, 274, 484, 262, 468, 488, 493, 220, 209, 333, 296, 416, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
    }' -H 'Content-Type: application/json' -H 'Authorization: Simple YOUR_API_KEY' https://api.algorithmia.com/v1/algo/ric70x7/binomial_mgcv/0.1.5