File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -178,7 +178,8 @@ const ModelInfo = props => (
178178 < tr >
179179 < th > Model Type</ th >
180180 < th > Hyperparameters</ th >
181- { Object . keys ( props . model . metrics ) . map ( metric => < th > { metric } </ th > ) }
181+ { Object . keys ( props . model . metrics ) . map ( metric =>
182+ < th style = { { textAlign : "center" } } key = { `th_${ metric } ` } > { metric } </ th > ) }
182183 </ tr >
183184 </ thead >
184185 < tbody >
@@ -202,11 +203,11 @@ const ModelInfo = props => (
202203 </ td >
203204 {
204205 Object . keys ( props . model . metrics ) . map ( metric => (
205- < td >
206+ < td key = { `td_ ${ metric } ` } >
206207 {
207208 metric == 'feature_importances' ?
208209 < FeatureImportances data = { props . model . metrics [ metric ] } /> :
209- props . model . metrics [ metric ]
210+ props . model . metrics [ metric ] . toFixed ( 3 )
210211 }
211212 </ td > ) )
212213 }
You can’t perform that action at this time.
0 commit comments