* fix: add fragment * fix: deletes unnecessary whitespaces
This commit is contained in:
Родитель
030b922d84
Коммит
8cc421c3fe
|
@ -15,31 +15,31 @@ export interface ITrainRecordProps {
|
|||
};
|
||||
}
|
||||
|
||||
export interface ITrainRecordState {}
|
||||
export interface ITrainRecordState { }
|
||||
|
||||
export default class TrainRecord extends React.Component<ITrainRecordProps, ITrainRecordState> {
|
||||
public render() {
|
||||
return (
|
||||
<aside className="mt-3">
|
||||
<h5> Model information </h5>
|
||||
<h5>Model information</h5>
|
||||
<div>
|
||||
<h6> Model ID: </h6>
|
||||
<h6>Model ID:</h6>
|
||||
<p>
|
||||
{this.props.modelInfo.modelId}
|
||||
</p>
|
||||
{this.props.modelInfo.modelName &&
|
||||
[
|
||||
<h6> Model Name: </h6>,
|
||||
<>
|
||||
<h6>Model Name:</h6>
|
||||
<p>
|
||||
{this.props.modelInfo.modelName}
|
||||
</p>
|
||||
]
|
||||
</>
|
||||
}
|
||||
<h6> Created date and time: </h6>
|
||||
<h6>Created date and time:</h6>
|
||||
<p>
|
||||
{new Date(this.props.modelInfo.createdDateTime).toLocaleString()}
|
||||
</p>
|
||||
<h6> Average accuracy: </h6>
|
||||
<h6>Average accuracy:</h6>
|
||||
<p>
|
||||
{(this.props.averageAccuracy * 100).toFixed(2) + "%"}
|
||||
</p>
|
||||
|
|
Загрузка…
Ссылка в новой задаче