Testing error in production
This commit is contained in:
		
							parent
							
								
									e2798436b3
								
							
						
					
					
						commit
						d6c632a361
					
				|  | @ -164,13 +164,14 @@ if __name__ == "__main__": | |||
|     ) | ||||
| 
 | ||||
|     # --- | ||||
| 
 | ||||
|     for strategy in ['uniform', 'quantile']: | ||||
|         for n_bins in range(30, 300, 10): | ||||
|             try: | ||||
|                 fig = plotly_calibration(y_true, y_pred, n_bins=n_bins, strategy=strategy) | ||||
|         st.plotly_chart(fig, use_container_width=True) | ||||
|                 # st.plotly_chart(fig, use_container_width=True) | ||||
| 
 | ||||
|                 fig = plotly_calibration_odds(y_true, y_pred, n_bins=n_bins, strategy=strategy) | ||||
|         st.plotly_chart(fig, use_container_width=True) | ||||
|                 # st.plotly_chart(fig, use_container_width=True) | ||||
|             except Exception as e: | ||||
|                 st.warning("Hey! Unfortunately, a very mysterious error occured. Try refreshing the page or changing the number of bins a bit.") | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user