NNTrainingCharts

NNTrainingCharts

new NNTrainingCharts(config)

Source:
Parameters:
Name Type Description
config Object
Properties
Name Type Description
container HTMLElement | string

— Container element or ID

Members

accCanvas :HTMLCanvasElement

Source:
Type:
  • HTMLCanvasElement

container :HTMLElement

Source:
Type:
  • HTMLElement

lossCanvas :HTMLCanvasElement

Source:
Type:
  • HTMLCanvasElement

Methods

destroy()

Description:
  • Destroys the charts.

Source:

update(lossHistory, accuracyHistory)

Description:
  • Updates both charts with current history data.

Source:
Parameters:
Name Type Description
lossHistory Array.<number>

— Array of loss values per epoch

accuracyHistory Array.<number>

— Array of accuracy values (0–1)