Spaces:
Sleeping
Sleeping
Data Mining from scratch backend
Currently living here
Since the API is hosted using render's free tier,
every time 15 minutes goes by it gets shut down.
If a request is made while it is shut down, the web service
has to spin back up again which takes roughly 1 minute
Example Useage
import requests
import json
request_params = {
"algorithm": "neural-network",
"arguments": {
"epochs": 100,
"activation_func": "tanh",
"hidden_size": 8,
"learning_rate": 0.01
}
}
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)
Parameter Options
**Algorithm:
"neural-network"
"kmeans-clustering"
"kmedoid-clustering"
"heirarchical-clustering"
**Algorithm Specific Parameters