@ant-design/icons#ReadOutlined JavaScript Examples

The following examples show how to use @ant-design/icons#ReadOutlined. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AiTrain.js    From network-rc with Apache License 2.0 4 votes vote down vote up
render() {
    const {
      state: { learnArgument, loss, loading },
      props: { sampleList, ai },
      train,
    } = this;
    return (
      <div className="ai-train">
        <Spin spinning={loading} tip={loading}>
          <Form {...layout} initialValues={learnArgument} onFinish={train}>
            <Form.Item label="Learning rate" name="learnRate">
              <Select>
                <Option value={0.00001}>0.00001</Option>
                <Option value={0.0001}>0.0001</Option>
                <Option value={0.001}>0.001</Option>
                <Option value={0.003}>0.003</Option>
              </Select>
            </Form.Item>
            <Form.Item label="Batch Size" name="batchSize">
              <Select>
                <Option value={0.05}>0.05</Option>
                <Option value={0.1}>0.1</Option>
                <Option value={0.4}>0.4</Option>
                <Option value={1}>1</Option>
              </Select>
            </Form.Item>
            <Form.Item label="Epochs" name="epochs">
              <Select>
                <Option value={10}>10</Option>
                <Option value={20}>20</Option>
                <Option value={40}>40</Option>
              </Select>
            </Form.Item>
            <Form.Item label="Hidden units" name="hiddenUnits">
              <Select>
                <Option value={100}>100</Option>
                <Option value={200}>200</Option>
                <Option value={300}>300</Option>
                <Option value={400}>400</Option>
                <Option value={500}>500</Option>
              </Select>
            </Form.Item>
            <Form.Item label="loss">
              <InputNumber value={loss} disabled />
            </Form.Item>
            <Form.Item {...tailLayout}>
              <Button
                key="fit"
                loading={loading}
                disabled={!sampleList.length}
                icon={<ReadOutlined />}
                htmlType="submit"
              >
                学习(样本{sampleList.length})
              </Button>
              &nbsp; &nbsp; &nbsp; &nbsp;
              <Button
                onClick={async () => {
                  await ai.save("test");
                  message.success("模型已经保存");
                }}
                icon={<ExportOutlined />}
                disabled={!sampleList.length}
              >
                导出模型
              </Button>
            </Form.Item>
          </Form>
          <Form>
            <Form.Item {...tailLayout}>
              <Link to="../drive">
                <Button type="primary" disabled={!ai || !ai.model}>
                  下一步
                </Button>
              </Link>
            </Form.Item>
          </Form>
        </Spin>
      </div>
    );
  }