data.py 8.7 KB
Newer Older
Y
Yan Chunwei 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104
def sequence_data():
    return [[1465980660.726887, 1, 0.07000000029802322],
            [1465980660.767164, 2, 0.18000000715255737],
            [1465980660.799817, 3, 0.3199999928474426],
            [1465980660.831853, 4, 0.33000001311302185],
            [1465980660.86555, 5, 0.3400000035762787],
            [1465980660.898716, 6, 0.6000000238418579],
            [1465980660.930804, 7, 0.6299999952316284],
            [1465980660.963156, 8, 0.6299999952316284],
            [1465980660.995727, 9, 0.6299999952316284],
            [1465980661.603699, 11, 0.75],
            [1465980661.641232, 12, 0.7900000214576721],
            [1465980661.674311, 13, 0.7099999785423279],
            [1465980661.704281, 14, 0.7099999785423279],
            [1465980661.737259, 15, 0.7200000286102295],
            [1465980661.768047, 16, 0.75],
            [1465980661.801236, 17, 0.8600000143051147],
            [1465980661.832749, 18, 0.7799999713897705],
            [1465980661.862822, 19, 0.8399999737739563],
            [1465980662.481258, 21, 0.699999988079071],
            [1465980662.521448, 22, 0.6700000166893005],
            [1465980662.557197, 23, 0.7699999809265137],
            [1465980662.593898, 24, 0.7900000214576721],
            [1465980662.629991, 25, 0.7200000286102295],
            [1465980662.671198, 26, 0.8100000023841858],
            [1465980662.711186, 27, 0.7599999904632568],
            [1465980662.750267, 28, 0.7799999713897705],
            [1465980662.791909, 29, 0.8299999833106995],
            [1465980663.47027, 31, 0.8100000023841858],
            [1465980663.538732, 32, 0.8500000238418579],
            [1465980663.57077, 33, 0.8600000143051147],
            [1465980663.60126, 34, 0.8199999928474426],
            [1465980663.631059, 35, 0.7900000214576721],
            [1465980663.665972, 36, 0.7799999713897705],
            [1465980663.697275, 37, 0.9100000262260437],
            [1465980663.726395, 38, 0.8700000047683716],
            [1465980663.760169, 39, 0.9200000166893005],
            [1465980664.45205, 41, 0.8299999833106995],
            [1465980664.484207, 42, 0.7599999904632568],
            [1465980664.515375, 43, 0.7699999809265137],
            [1465980664.547608, 44, 0.8299999833106995],
            [1465980664.580122, 45, 0.949999988079071],
            [1465980664.611019, 46, 0.8999999761581421],
            [1465980664.642956, 47, 0.8700000047683716],
            [1465980664.674636, 48, 0.8500000238418579],
            [1465980664.705622, 49, 0.8899999856948853],
            [1465980665.379549, 51, 0.8399999737739563],
            [1465980665.422869, 52, 0.8500000238418579],
            [1465980665.466136, 53, 0.8199999928474426],
            [1465980665.508361, 54, 0.9300000071525574],
            [1465980665.544331, 55, 0.9399999976158142],
            [1465980665.589887, 56, 0.8700000047683716],
            [1465980665.633466, 57, 0.9300000071525574],
            [1465980665.674978, 58, 0.7799999713897705],
            [1465980665.716878, 59, 0.9300000071525574],
            [1465980666.653456, 61, 0.8799999952316284],
            [1465980666.697294, 62, 0.9300000071525574],
            [1465980666.742066, 63, 0.8700000047683716],
            [1465980666.780127, 64, 0.8299999833106995],
            [1465980666.818287, 65, 0.9200000166893005],
            [1465980666.855386, 66, 0.9399999976158142],
            [1465980666.897352, 67, 0.9300000071525574],
            [1465980666.931322, 68, 0.8899999856948853],
            [1465980666.96562, 69, 0.8600000143051147],
            [1465980667.619625, 71, 0.8700000047683716],
            [1465980667.655166, 72, 0.9200000166893005], [
                1465980667.687101, 73, 0.8199999928474426
            ], [1465980667.720176, 74, 0.8100000023841858],
            [1465980667.751985, 75, 0.8500000238418579], [
                1465980667.785244, 76, 0.8600000143051147
            ], [1465980667.820445, 77, 0.9200000166893005], [
                1465980667.857163, 78, 0.8899999856948853
            ], [1465980667.891868, 79, 0.8999999761581421], [
                1465980668.56409, 81, 0.8500000238418579
            ], [1465980668.599529, 82, 0.8299999833106995], [
                1465980668.630751, 83, 0.8500000238418579
            ], [1465980668.665135, 84, 0.8199999928474426], [
                1465980668.697928, 85, 0.8199999928474426
            ], [1465980668.730525, 86, 0.8799999952316284], [
                1465980668.769772, 87, 0.9200000166893005
            ], [1465980668.803344, 88, 0.8299999833106995], [
                1465980668.834414, 89, 0.800000011920929
            ], [1465980669.814826, 91, 0.8600000143051147], [
                1465980669.851511, 92, 0.8899999856948853
            ], [1465980669.891407, 93, 0.8799999952316284], [
                1465980669.927507, 94, 0.9399999976158142
            ], [1465980669.968384, 95, 0.9300000071525574], [
                1465980670.007071, 96, 0.8500000238418579
            ], [1465980670.044314, 97, 0.8500000238418579], [
                1465980670.083472, 98, 0.9100000262260437
            ], [1465980670.214597, 99, 0.8600000143051147], [
                1465980670.934513, 101, 0.8799999952316284
            ], [1465980670.971317, 102, 0.8700000047683716], [
                1465980671.003626, 103, 0.8600000143051147
            ], [1465980671.037037, 104, 0.8399999737739563], [
                1465980671.070037, 105, 0.9200000166893005
            ], [1465980671.104992, 106, 0.8600000143051147], [
                1465980671.137882, 107, 0.8100000023841858
            ], [1465980671.173917, 108, 0.7400000095367432], [
                1465980671.205898, 109, 0.8799999952316284
            ], [1465980671.833723, 111, 0.9100000262260437]]


def graph_data():
T
Thuan Nguyen 已提交
105
    return """{
Y
Yan Chunwei 已提交
106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227
    "title": {
        "text": "MLP"
    },
    "tooltip": {},
    "animationDurationUpdate": 1500,
    "animationEasingUpdate": "quinticInOut",
    "series": [
        {
            "type": "graph",
            "layout": "none",
            "symbolSize": 50,
            "roam": true,
            "label": {
                "normal": {
                    "show": true
                }
            },
            "edgeSymbol": [
                "circle",
                "arrow"
            ],
            "edgeSymbolSize": [
                4,
                10
            ],
            "edgeLabel": {
                "normal": {
                    "textStyle": {
                        "fontSize": 20
                    }
                }
            },
            "data": [
                {
                    "name": "X",
                    "x": 450,
                    "y": 600
                },
                {
                    "name": "W1",
                    "x": 750,
                    "y": 600
                },
                {
                    "name": "B1",
                    "x": 650,
                    "y": 600
                },
                {
                    "name": "W2",
                    "x": 650,
                    "y": 800
                },
                {
                    "name": "B2",
                    "x": 750,
                    "y": 800
                },
                {
                    "name": "FC1",
                    "x": 550,
                    "y": 700
                },
                {
                    "name": "RELU",
                    "x": 550,
                    "y": 800
                },
                {
                    "name": "FC2",
                    "x": 550,
                    "y": 900
                },
                {
                    "name": "Y",
                    "x": 550,
                    "y": 1000
                }
            ],
            "links": [
                {
                    "source": "X",
                    "target": "FC1"
                },
                {
                    "source": "W1",
                    "target": "FC1"
                },
                {
                    "source": "B1",
                    "target": "FC1"
                },
                {
                    "source": "FC1",
                    "target": "RELU"
                },
                {
                    "source": "RELU",
                    "target": "FC2"
                },
                {
                    "source": "W2",
                    "target": "FC2"
                },
                {
                    "source": "B2",
                    "target": "FC2"
                },
                {
                    "source": "FC2",
                    "target": "Y"
                }
            ],
            "lineStyle": {
                "normal": {
                    "opacity": 0.9,
                    "width": 2,
                    "curveness": 0
                }
            }
        }
    ]
228
}"""