constructor()

in frontend/webapp/src/containers/InferencePage.js [16:64]


  constructor(props) {
    super(props);

    const initialRatio = [];
    for (let i = 0.2; i <= 1.0; i += 0.1) {
      initialRatio.push(i.toFixed(2));
    }


    let xAxis = [];
    for (let j = 1.1; j < 3.1; j += 0.1) {
      xAxis.push(j.toFixed(1));
    }

    this.state = {
      modelEndpoints: ['Loading...'],
      selectedEndpoint: 'Loading...',
      inferenceInputs: [
        //18 input, the last input (19th) will be a range
        0.1,
        0.2,
        0.3,
        0.4,
        0.5,
        0.1,
        0.2,
        0.3,
        0.4,
        0.5,
        0.1,
        0.2,
        0.3,
        0.4,
        0.5,
        0.1,
        0.2,
        0.3,
      ],
      rangeInput: {
        start: 1.1,
        end: 3.1,
        step: 0.1,
      },
      xAxis: xAxis,
      predictions: [],
      isInfering: false,
    };

  }