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.2.2.tar.gz
(6.0 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.2.2.tar.gz.
File metadata
- Download URL: edge-ml-0.2.2.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aee859078c1f898eac9af09866c3260e9437be4ac89c4d0b77046f7eaae42847
|
|
| MD5 |
c7e8c170005f4873203c9096b59aab5f
|
|
| BLAKE2b-256 |
40ff5208ae4b486f7f006909cc7fcae13fbce3eaa3c8604a2ea510a174750e0c
|
File details
Details for the file edge_ml-0.2.2-py3-none-any.whl.
File metadata
- Download URL: edge_ml-0.2.2-py3-none-any.whl
- Upload date:
- Size: 6.5 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 |
d7855269c5423ddc5bf87b554f3fd7cf84706b0d33245fa40145f1eac1d98a82
|
|
| MD5 |
74cced785182afe3829c26d2c9bf3f3e
|
|
| BLAKE2b-256 |
924fba8046c392dd0bbcd4684998b78386aa2242d8ae342219cb66bee019ee8f
|