We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b74f65c commit 8740a20Copy full SHA for 8740a20
static/js/components/Models.jsx
@@ -178,7 +178,8 @@ const ModelInfo = props => (
178
<tr>
179
<th>Model Type</th>
180
<th>Hyperparameters</th>
181
- {Object.keys(props.model.metrics).map(metric => <th>{metric}</th>)}
+ {Object.keys(props.model.metrics).map(metric =>
182
+ <th style={{ textAlign: "center" }} key={`th_${metric}`}>{metric}</th>)}
183
</tr>
184
</thead>
185
<tbody>
@@ -202,11 +203,11 @@ const ModelInfo = props => (
202
203
</td>
204
{
205
Object.keys(props.model.metrics).map(metric => (
- <td>
206
+ <td key={`td_${metric}`}>
207
208
metric == 'feature_importances' ?
209
<FeatureImportances data={props.model.metrics[metric]} /> :
- props.model.metrics[metric]
210
+ props.model.metrics[metric].toFixed(3)
211
}
212
</td>))
213
0 commit comments