edge-ml python
Python package for edge-ml.org.
Usage
Installation
Install edge-ml using the follwing command.
pip install edge-ml
Retrieve Project
This functionality comes in handy if you would like to train a machine learning model from edge-ml data.
from edgeml import edgeml
# get the API key from the settings of your project
project = edgeml.getProject("https://app.edge-ml.org", PROJECT_API_KEY)
Push Data from Python
from edgeml import edgeml
import time
key = "YOUR_API_KEY"
startTime = time.time()
collector = edgeml.datasetCollector("https://app.edge-ml.org",
key,
"Example Dataset", # name the dataset you would like to upload
False) # do not use server timestamps
for i in range(500):
current_time = startTime + i * 10 # adding samples at 10 ms time steps
collector.addDataPoint("Accelerometer X", random.randint(1,50) / 10.0, current_time)
collector.addDataPoint("Accelerometer Y", random.randint(1,50) / 10.0, current_time)
collector.addDataPoint("Accelerometer Z", random.randint(1,50) / 10.0, current_time)
collector.onComplete()
Development
Testing
To run the tests please enter:
python -m unittest -v tests/all.py
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
edge-ml-0.1.1.tar.gz
(4.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file edge-ml-0.1.1.tar.gz.
File metadata
- Download URL: edge-ml-0.1.1.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9505afb5a48d786f5b7fb6a8918e23d480cf5b2cbff5767fbafd00a0e6342a28
|
|
| MD5 |
23d25502c5d97d9c567409c567e3b6a8
|
|
| BLAKE2b-256 |
649f9d49eee52b11230563fbaa4dee385f039a67cec742cb5a85d3313a8d4a0b
|
File details
Details for the file edge_ml-0.1.1-py3-none-any.whl.
File metadata
- Download URL: edge_ml-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ddb023afd2bfe72aeb282a7cfef053a5e7d38fdf45811d443f6c2f81115cac97
|
|
| MD5 |
7de6288bd8d2e92878eba275f54ea4fa
|
|
| BLAKE2b-256 |
bc43b23f6bb200b53bc00752d68560aebb96a41275d93978a5c283c73c16aaba
|