import * as React from 'react'; import { Stack, Pivot, PivotItem } from '@fluentui/react'; import { EXPERIMENT, TRIALS } from '@static/datamodel'; import { AppContext } from '@/App'; import DefaultPoint from './chart/DefaultMetricPoint'; import Duration from './chart/Duration'; import Para from './chart/Para'; import Intermediate from './chart/Intermediate'; import TableList from './table/TableList'; import '@style/button.scss'; import '@style/logPath.scss'; import '@style/openRow.scss'; import '@style/pagination.scss'; import '@style/experiment/overview/overviewTitle.scss'; import '@style/experiment/trialdetail/search.scss'; import '@style/experiment/trialdetail/tensorboard.scss'; import '@style/table.scss'; import '@style/common/trialStatus.css'; /** * single experiment * trial detail page */ interface TrialDetailState { whichChart: string; } class TrialsDetail extends React.Component<{}, TrialDetailState> { static contextType = AppContext; context!: React.ContextType; public interAccuracy = 0; public interAllTableList = 2; public tableList!: TableList | null; public searchInput!: HTMLInputElement | null; constructor(props) { super(props); this.state = { whichChart: 'Default metric' }; } handleWhichTabs = (item: any): void => { this.setState({ whichChart: item.props.headerText }); }; render(): React.ReactNode { const { whichChart } = this.state; const source = TRIALS.toArray(); const trialIds = TRIALS.toArray().map(trial => trial.id); return ( {(_value): React.ReactNode => (
{/* doesn't work*/} {/* */} {/* */} {/* */} {/* *why this graph has small footprint? */}
{/* trial table list */}
)}
); } } export default TrialsDetail;