Interact with ML models in the browser so that we can better understand their strengths and weaknesses on real world data
Project description
tensorboardY
The easier it is to interact with ML models, the faster we'll be able to figure out their current limitations. The goal of this library is to make it as easy as possible to build demo websites for ML.
This library seeks to automate the creation of successful ML demo websites like
Examples
python examples/simple_example.py
import tensorboardY as ty
import matplotlib.pyplot as plt
def forward(x, title):
plt.imshow(x)
plt.title(title)
return plt.gcf()
inputs = [ty.Image(var='x', exs=['imgs/curve.jpg']),
ty.Text(var='title', exs=["EXAMPLE"])]
ty.show(forward, inputs)
python examples/full_example.py
import tensorboardY as ty
import os
def forward(z):
return z
inputs = [ty.Widget("z", name="Choose your input",
camera=True,
image_upload=True,
image_list=['imgs/curve.jpg'], image_names=['Curve example'],
text_input=True,
text_list=['This is an example text!'], text_names=['Random'],
option_list=["This is an example option!"], option_names=['Resnet50'],
boolean=True,
slider=(5, 20, 0.5), slider_default=10.3)]
ty.show(forward, inputs)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tensorboardY-0.1.5.tar.gz
(46.6 kB
view hashes)
Built Distribution
Close
Hashes for tensorboardY-0.1.5-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 627ebf1894ee08bbca2cf928d5f387bec462bd3a6447a3f4e9645fc438fd2673 |
|
MD5 | 4e2baf9708bdd239981cc0f9d1b78f80 |
|
BLAKE2b-256 | abe3104db30ee9b15289ae18dc9c7b5eee0d150d3e7274e5043ef7c396a1ea8b |