Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 51231e62 authored by Jérôme Euzenat's avatar Jérôme Euzenat
Browse files

Added cellFormant and expanded it in tableDisplay

parent 9d3483d2
No related branches found
No related tags found
No related merge requests found
......@@ -134,6 +134,8 @@ standardStyles6 = [
## dict(selector="td:nth-child(2)", props=barleft)
]
cellFormat = {'Size': '{:0.0f}','Success rate': '{:0.2f}','Incoherence': '{:0.2f}','Semantic precision': '{:0.2f}','Semantic F-measure': '{:0.2f}','Semantic recall': '{:0.2f}','Syntactic F-measure': '{:0.2f}','Convergence': '{:0.0f}'}
def formatTableStandard( style, size=0 ):
standardStyles = [
dict(selector="th:last-of-type", props=barright)
......@@ -142,5 +144,5 @@ def formatTableStandard( style, size=0 ):
dict(selector="tr:nth-child("+str(size)+"n)", props=barbelow)
]
style.set_table_styles( standardStyles )
style.format({'Size': '{:0.0f}','Success rate': '{:0.2f}','Incoherence': '{:0.2f}','Semantic precision': '{:0.2f}','Semantic F-measure': '{:0.2f}','Semantic recall': '{:0.2f}','Convergence': '{:0.0f}'} )
style.format( cellFormat )
return style
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment