Numpy-Neuron / README.md
Jensen-holm's picture
updating example request in readme
0411a47
|
raw
history blame
613 Bytes

Data Mining from scratch backend

Currently living here

Example Useage

import requests
import json

request_params = {
    "algorithm": "neural-network",
    "arguments": {
        "epochs": 100,
        "activation_func": "relu",
        "hidden_size": 8,
        "learning_rate": 0.1,
    }
}

headers = {
    "Content-Type": "application/json",
}

r = requests.post(
    "https://data-mining-from-scratch-backend.onrender.com/",
    headers=headers,
    data=json.dumps(request_params),
)

model_data = r.json()
print(model_data)