Pawan Mane commited on
Commit
c1d1768
·
1 Parent(s): c0c822a

Examples Changes

Browse files
.gitattributes ADDED
@@ -0,0 +1 @@
 
 
1
+ *.csv filter=lfs diff=lfs merge=lfs -text
app.py CHANGED
@@ -23,35 +23,48 @@ with gr.Blocks() as app:
23
 
24
  with gr.Row(equal_height=True):
25
  with gr.Column():
26
- file_input = gr.File(label="Upload CSV", file_types=[".csv"])
27
- show_preview = gr.Checkbox(
28
- label="Show CSV Preview",
29
- value=False,
30
- )
31
- task_type = gr.Dropdown(
32
- ["Regression", "Classification"],
33
- label="Task Type",
34
- value="Regression",
35
- )
36
- model_group = gr.Dropdown(
37
- label="Model Group",
38
- choices=["Basic", "Bagging", "Boosting", "Stacking"],
39
- value="Basic",
40
- )
41
- model_name = gr.Dropdown(label="Model")
42
- graph_type = gr.Dropdown(label="Graph Type")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
 
44
- with gr.Row(equal_height=True):
45
- run_btn = gr.Button("Train & Evaluate", variant="primary", size="lg")
46
-
47
- with gr.Row(equal_height=True):
48
- with gr.Column():
49
- csv_preview = gr.Dataframe(label="CSV Preview", interactive=False, visible=False,)
50
- output = gr.Dataframe(label="Evaluation Metrics", interactive=False)
51
-
52
- with gr.Row(equal_height=True):
53
  with gr.Column():
54
- plot = gr.Plot(label="Selected Graph")
 
 
 
 
 
 
 
55
 
56
  file_input.change(preview_csv, file_input, csv_preview)
57
  file_input.change(auto_set_task, file_input, task_type)
 
23
 
24
  with gr.Row(equal_height=True):
25
  with gr.Column():
26
+ with gr.Row(equal_height=True):
27
+ with gr.Column():
28
+ file_input = gr.File(label="Upload CSV", file_types=[".csv"])
29
+ show_preview = gr.Checkbox(
30
+ label="Show CSV Preview",
31
+ value=False,
32
+ )
33
+ task_type = gr.Dropdown(
34
+ ["Regression", "Classification"],
35
+ label="Task Type",
36
+ value="Regression",
37
+ )
38
+ model_group = gr.Dropdown(
39
+ label="Model Group",
40
+ choices=["Basic", "Bagging", "Boosting", "Stacking"],
41
+ value="Basic",
42
+ )
43
+ model_name = gr.Dropdown(label="Model")
44
+ graph_type = gr.Dropdown(label="Graph Type")
45
+
46
+ with gr.Row(equal_height=True):
47
+ gr.Examples(
48
+ examples=[
49
+ ["assets/regression_example.csv", "Regression", "Basic"],
50
+ ["assets/classification_example.csv", "Classification", "Basic"],
51
+ ],
52
+ inputs=[file_input, task_type, model_group],
53
+ label="Example Datasets",
54
+ examples_per_page=2,
55
+ )
56
+ with gr.Row(equal_height=True):
57
+ run_btn = gr.Button("Train & Evaluate", variant="primary", size="lg")
58
 
 
 
 
 
 
 
 
 
 
59
  with gr.Column():
60
+ with gr.Row(equal_height=True):
61
+ with gr.Column():
62
+ csv_preview = gr.Dataframe(label="CSV Preview", interactive=False, visible=False,)
63
+ output = gr.Dataframe(label="Evaluation Metrics", interactive=False)
64
+
65
+ with gr.Row(equal_height=True):
66
+ with gr.Column():
67
+ plot = gr.Plot(label="Selected Graph")
68
 
69
  file_input.change(preview_csv, file_input, csv_preview)
70
  file_input.change(auto_set_task, file_input, task_type)
assets/classification_example.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6fc48130780445f4fc9f505cb55aa3945f76ec4386c4582eae60edf99cbb12a7
3
+ size 128316
assets/regression_example.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:806a5947697896597fdb8258dc0a1d6881eac9d96501c3865a0abbb69b341471
3
+ size 10918
core/__pycache__/training.cpython-310.pyc CHANGED
Binary files a/core/__pycache__/training.cpython-310.pyc and b/core/__pycache__/training.cpython-310.pyc differ