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