Spaces:
Runtime error
Runtime error
Update app.py
Browse files8 unmodified lines91011121314151617181920212223276 unmodified lines3003013023033043053063073083098 unmodified linesimport gradio as grset_input = gr.inputs.Dataframe(type="numpy", row_count=10, col_count=3, headers=['Sample Index', 'Predicted Prob', 'Label (Y)'], datatype=["number", "number", "number"])set_input2 = gr.inputs.Slider(0, 1, step = 0.1, default=0.4, label="Set Probability Threshold (Default = 0.5)")#set_output = gr.inputs.Textbox(label ='test')set_output1 = gr.outputs.Dataframe(type="pandas", label = 'Predicted Labels',max_rows=10)set_output2 = gr.outputs.Image(label="Confusion Matrix")set_output3 = gr.outputs.Image(label="ROC curve")set_output4 = gr.outputs.Image(label="Threshold Tuning curve")def perf_measure(y_actual, y_hat):TP = 0276 unmodified lines[0.5,get_example()],[0.7,get_example()],],title="CSCI4750/5750: Demo for Receiver Operating Characteristic (ROC) curve",description= "Click examples below for a quick demo",theme = 'huggingface',layout = 'horizontal',live=True)8 unmodified lines91011121314151617181920212223276 unmodified lines3003013023033043053063073083098 unmodified linesimport gradio as grset_input = gr.Dataframe(type="numpy", row_count=10, col_count=3, headers=['Sample Index', 'Predicted Prob', 'Label (Y)'], datatype=["number", "number", "number"])set_input2 = gr.Slider(0, 1, step = 0.1, value=0.4, label="Set Probability Threshold (Default = 0.5)")#set_output = gr.Textbox(label ='test')set_output1 = gr.Dataframe(type="pandas", label = 'Predicted Labels',max_rows=10)set_output2 = gr.Image(label="Confusion Matrix")set_output3 = gr.Image(label="ROC curve")set_output4 = gr.Image(label="Threshold Tuning curve")def perf_measure(y_actual, y_hat):TP = 0276 unmodified lines[0.5,get_example()],[0.7,get_example()],],title="ML Demo for Receiver Operating Characteristic (ROC) curve",description= "Click examples below for a quick demo",theme = 'huggingface',#layout = 'horizontal',live=True)
app.py+9-9