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 @@ -179,7 +179,8 @@ const ModelInfo = props => (
179
179
< tr >
180
180
< th > Model Type</ th >
181
181
< th > Hyperparameters</ th >
182
- { Object . keys ( props . model . metrics ) . map ( metric => < th > { metric } </ th > ) }
182
+ { Object . keys ( props . model . metrics ) . map ( metric =>
183
+ < th style = { { textAlign : "center" } } key = { `th_${ metric } ` } > { metric } </ th > ) }
183
184
</ tr >
184
185
</ thead >
185
186
< tbody >
@@ -203,11 +204,11 @@ const ModelInfo = props => (
203
204
</ td >
204
205
{
205
206
Object . keys ( props . model . metrics ) . map ( metric => (
206
- < td >
207
+ < td key = { `td_ ${ metric } ` } >
207
208
{
208
209
metric == 'feature_importances' ?
209
210
< FeatureImportances data = { props . model . metrics [ metric ] } /> :
210
- props . model . metrics [ metric ]
211
+ props . model . metrics [ metric ] . toFixed ( 3 )
211
212
}
212
213
</ td > ) )
213
214
}
You can’t perform that action at this time.
0 commit comments