Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -103,7 +103,7 @@ with gr.Blocks() as demo:
|
|
| 103 |
input_data = gr.Radio(choices=["Central Blob", "Two Blobs", "Blob with Noise", "Moons", "Noise"], value="Moons", label="Dataset")
|
| 104 |
feature_x = gr.Dropdown(choices=["Feature1", "Feature2"], value="Feature1", label="Feature 1")
|
| 105 |
feature_y = gr.Dropdown(choices=["Feature1", "Feature2"], value="Feature2", label="Feature 2")
|
| 106 |
-
n_samples = gr.Slider(minimum=
|
| 107 |
scatter_plot_button = gr.Button("Generate Scatter Plot")
|
| 108 |
scatter_plot = gr.Plot(label="Feature Scatter Plot")
|
| 109 |
|
|
@@ -115,7 +115,7 @@ with gr.Blocks() as demo:
|
|
| 115 |
|
| 116 |
# Compare Anomaly Detection Algorithms
|
| 117 |
gr.Markdown("### Compare Anomaly Detection Algorithms")
|
| 118 |
-
outliers_fraction = gr.Slider(minimum=0.
|
| 119 |
input_models = gr.Radio(
|
| 120 |
choices=["Robust covariance", "One-Class SVM", "One-Class SVM (SGD)", "Isolation Forest", "Local Outlier Factor", "Autoencoders"],
|
| 121 |
value="Isolation Forest",
|
|
|
|
| 103 |
input_data = gr.Radio(choices=["Central Blob", "Two Blobs", "Blob with Noise", "Moons", "Noise"], value="Moons", label="Dataset")
|
| 104 |
feature_x = gr.Dropdown(choices=["Feature1", "Feature2"], value="Feature1", label="Feature 1")
|
| 105 |
feature_y = gr.Dropdown(choices=["Feature1", "Feature2"], value="Feature2", label="Feature 2")
|
| 106 |
+
n_samples = gr.Slider(minimum=10, maximum=10000, step=100, value=500, label="Number of Samples")
|
| 107 |
scatter_plot_button = gr.Button("Generate Scatter Plot")
|
| 108 |
scatter_plot = gr.Plot(label="Feature Scatter Plot")
|
| 109 |
|
|
|
|
| 115 |
|
| 116 |
# Compare Anomaly Detection Algorithms
|
| 117 |
gr.Markdown("### Compare Anomaly Detection Algorithms")
|
| 118 |
+
outliers_fraction = gr.Slider(minimum=0.001, maximum=0.999, step=0.01, value=0.01, label="Fraction of Outliers")
|
| 119 |
input_models = gr.Radio(
|
| 120 |
choices=["Robust covariance", "One-Class SVM", "One-Class SVM (SGD)", "Isolation Forest", "Local Outlier Factor", "Autoencoders"],
|
| 121 |
value="Isolation Forest",
|