Spaces:
Sleeping
Sleeping
Commit ·
ace09ad
1
Parent(s): 347ce93
Add usage
Browse files- frontends/gradio/main.py +4 -0
- usage.md +2 -2
frontends/gradio/main.py
CHANGED
|
@@ -536,6 +536,10 @@ def launch():
|
|
| 536 |
outputs=[plot],
|
| 537 |
)
|
| 538 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 539 |
demo.launch()
|
| 540 |
|
| 541 |
|
|
|
|
| 536 |
outputs=[plot],
|
| 537 |
)
|
| 538 |
|
| 539 |
+
with gr.Tab("Usage"):
|
| 540 |
+
with open(root_dir / "usage.md", "r") as f:
|
| 541 |
+
gr.Markdown(f.read())
|
| 542 |
+
|
| 543 |
demo.launch()
|
| 544 |
|
| 545 |
|
usage.md
CHANGED
|
@@ -2,9 +2,9 @@
|
|
| 2 |
In this visualizer you can train an MLP to fit the data points.
|
| 3 |
|
| 4 |
### Dataset - Generate or upload a dataset to train on.
|
| 5 |
-
If generating, enter a function and the visualizer will sample points uniformly in the domain based on the settings. If uploading, make sure to upload a csv file with
|
| 6 |
|
| 7 |
-
###
|
| 8 |
You can choose one of the presets or use a custom one by editing the text. Each layer must be in square brackets and the last layer must always be `[output_units: 1]`. Supported activation functions are: `{relu, sigmoid, tanh, leaky_relu, elu, gelu, identity}`.
|
| 9 |
|
| 10 |
### Train - Train the MLP on the dataset
|
|
|
|
| 2 |
In this visualizer you can train an MLP to fit the data points.
|
| 3 |
|
| 4 |
### Dataset - Generate or upload a dataset to train on.
|
| 5 |
+
If generating, enter a function and the visualizer will sample points uniformly in the domain based on the settings. If uploading, make sure to upload a csv file with at least two columns.
|
| 6 |
|
| 7 |
+
### Model - Specify MLP architecture
|
| 8 |
You can choose one of the presets or use a custom one by editing the text. Each layer must be in square brackets and the last layer must always be `[output_units: 1]`. Supported activation functions are: `{relu, sigmoid, tanh, leaky_relu, elu, gelu, identity}`.
|
| 9 |
|
| 10 |
### Train - Train the MLP on the dataset
|