File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -170,7 +170,8 @@ let ModelInfo = props => (
170170 < tr >
171171 < th > Model Type</ th >
172172 < th > Hyperparameters</ th >
173- { Object . keys ( props . model . metrics ) . map ( metric => < th > { metric } </ th > ) }
173+ { Object . keys ( props . model . metrics ) . map ( metric =>
174+ < th style = { { textAlign : "center" } } key = { `th_${ metric } ` } > { metric } </ th > ) }
174175 </ tr >
175176 </ thead >
176177 < tbody >
@@ -183,7 +184,7 @@ let ModelInfo = props => (
183184 < tbody >
184185 {
185186 Object . keys ( props . model . params ) . map ( param => (
186- < tr >
187+ < tr key = { `tr_ ${ param } ` } >
187188 < td > { param } </ td >
188189 < td style = { { paddingLeft : "5px" } } > { JSON . stringify ( props . model . params [ param ] ) } </ td >
189190 </ tr >
@@ -194,11 +195,11 @@ let ModelInfo = props => (
194195 </ td >
195196 {
196197 Object . keys ( props . model . metrics ) . map ( metric => (
197- < td >
198+ < td key = { `td_ ${ metric } ` } >
198199 {
199200 metric == 'feature_importances' ?
200201 < FeatureImportances data = { props . model . metrics [ metric ] } /> :
201- props . model . metrics [ metric ]
202+ props . model . metrics [ metric ] . toFixed ( 3 )
202203 }
203204 </ td > ) )
204205 }
You can’t perform that action at this time.
0 commit comments