From e51ee2731cc7a6449dd718142df17458caf5c0ab Mon Sep 17 00:00:00 2001 From: samael Date: Mon, 12 Feb 2018 11:29:02 +0800 Subject: [PATCH] update --- mxnet/mxnet-101-5.ipynb | 64 ++++++++++++++++++++--------------------- 1 file changed, 32 insertions(+), 32 deletions(-) diff --git a/mxnet/mxnet-101-5.ipynb b/mxnet/mxnet-101-5.ipynb index 76ff842f..dbf72ef1 100755 --- a/mxnet/mxnet-101-5.ipynb +++ b/mxnet/mxnet-101-5.ipynb @@ -5,8 +5,8 @@ "execution_count": 1, "metadata": { "ExecuteTime": { - "end_time": "2018-02-12T02:47:10.131896Z", - "start_time": "2018-02-12T02:47:08.726214Z" + "end_time": "2018-02-12T03:43:22.487932Z", + "start_time": "2018-02-12T03:43:21.210137Z" } }, "outputs": [], @@ -26,8 +26,8 @@ "execution_count": 2, "metadata": { "ExecuteTime": { - "end_time": "2018-02-12T02:47:10.145325Z", - "start_time": "2018-02-12T02:47:10.135416Z" + "end_time": "2018-02-12T03:43:22.496613Z", + "start_time": "2018-02-12T03:43:22.490467Z" } }, "outputs": [], @@ -49,8 +49,8 @@ "execution_count": 3, "metadata": { "ExecuteTime": { - "end_time": "2018-02-12T02:47:10.411853Z", - "start_time": "2018-02-12T02:47:10.148094Z" + "end_time": "2018-02-12T03:43:22.761515Z", + "start_time": "2018-02-12T03:43:22.498258Z" } }, "outputs": [ @@ -58,7 +58,7 @@ "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAWoAAAD6CAYAAACIyQ0UAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDIuMS4xLCBodHRwOi8vbWF0cGxvdGxpYi5vcmcvAOZPmwAAD+BJREFUeJzt3X2MHHd9x/H37MP5IXf22TEOCbYDITysi4BArbQEmmxQKE7FRkpIKUiA0tJKVQotUFJoGpUCgjQUiMKDgCClRVQCkQYxVVqgQROeoT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L4cnluSlrJVdDv0GFGWZQVkkST1ypOJkhQ4i1qSAmdRS1LgLGpJCtxAXT0vTtJlwIeAFwPrgR3Ahxv12s2FButzcZKuAO4H1jXqtdGi8/SrOElfBvwT8HRgAnh/o157b7Gp+lOcpOcAHwQuBiLg68C1jXptzo6KfjBoK+oKMAa8hO42mKuBt8VJ+opCU/W/dzDPliL1Lk7SlwIfBd4CjALPAP670FD97SNAFXgKsBE4ANxaaKLTMFAr6ka9dgC4Ydahe+IkvRO4CPhMMan6W5ykzwMuB96E/4an453Auxr12pdnHu8DflRgnn53HvDPjXptAiBO0n8HPlZspFM3UEV9vDhJK8ALgZuKztKPZv79bgWuLTpLP4uT9Azg+cCn4yR9EDgT+Cbw14167eFCw/Wv9wN/PLMQawOvBu4sNtKpG7TRx/FuoftWzU8WHaRPvRm4r1Gv3V10kD63hu4c9bV0fzt5CrAT+I8iQ/W5bwBrgXFgD925/1sLTXQaBrao4yR9H93V9NZGvTZddJ5+EyfpU+mupP+26CxLwMTMx1sa9dovG/XaQeB64HdnTorpJMRJWgL+B/gWMAyMAHfRxzP/gSzqOElvpntC8cWNem130Xn61IuAJwAPxEk6BtwBrIqTdCxO0hcUG62/NOq1vcCvgNnXc/DaDqduLXAu3R98B2d+8H0QuDBO0nXFRjs1A3etjzhJbwEuBeqNem1X0Xn61cyWvNWzDr0AuI3uboVxf0s5OXGSvhV4FfBHwC66M9YtjXptS6HB+lScpD8Fbqe73RG6O5Ne2ajXNhaX6tQN1MnEOEnPBV4PTAG/iJP08Ke+1qjXthYWrA816rVJYPLw4zhJx4GsUa+NFZeqr91Ed1b9A7q/6X4duKrQRP3tCuADwK/pzv/vARqFJjoNA7eilqR+M5AzaknqJxa1JAXOopakwFnUkhQ4i1qSAmdRS1LgLGpJCpxFLUmBs6glKXD/D3BSaJm6WeqvAAAAAElFTkSuQmCC\n", "text/plain": [ - "" + "" ] }, "metadata": {}, @@ -75,8 +75,8 @@ "execution_count": 4, "metadata": { "ExecuteTime": { - "end_time": "2018-02-12T02:47:10.420135Z", - "start_time": "2018-02-12T02:47:10.414511Z" + "end_time": "2018-02-12T03:43:22.771449Z", + "start_time": "2018-02-12T03:43:22.764705Z" } }, "outputs": [], @@ -91,8 +91,8 @@ "execution_count": 5, "metadata": { "ExecuteTime": { - "end_time": "2018-02-12T02:47:10.553726Z", - "start_time": "2018-02-12T02:47:10.422398Z" + "end_time": "2018-02-12T03:43:22.900689Z", + "start_time": "2018-02-12T03:43:22.774101Z" } }, "outputs": [], @@ -107,8 +107,8 @@ "execution_count": 6, "metadata": { "ExecuteTime": { - "end_time": "2018-02-12T02:47:10.638220Z", - "start_time": "2018-02-12T02:47:10.556180Z" + "end_time": "2018-02-12T03:43:22.994868Z", + "start_time": "2018-02-12T03:43:22.902549Z" } }, "outputs": [], @@ -123,8 +123,8 @@ "execution_count": 7, "metadata": { "ExecuteTime": { - "end_time": "2018-02-12T02:47:10.733230Z", - "start_time": "2018-02-12T02:47:10.640618Z" + "end_time": "2018-02-12T03:43:23.090312Z", + "start_time": "2018-02-12T03:43:22.996959Z" } }, "outputs": [], @@ -138,8 +138,8 @@ "execution_count": 8, "metadata": { "ExecuteTime": { - "end_time": "2018-02-12T02:47:10.833470Z", - "start_time": "2018-02-12T02:47:10.735585Z" + "end_time": "2018-02-12T03:43:23.206348Z", + "start_time": "2018-02-12T03:43:23.093023Z" } }, "outputs": [], @@ -157,8 +157,8 @@ "execution_count": 9, "metadata": { "ExecuteTime": { - "end_time": "2018-02-12T02:47:10.954934Z", - "start_time": "2018-02-12T02:47:10.836208Z" + "end_time": "2018-02-12T03:43:23.328601Z", + "start_time": "2018-02-12T03:43:23.209111Z" } }, "outputs": [], @@ -169,10 +169,10 @@ " outputs_derivative = []\n", " next_inputs = inputs\n", " for i in range(len(network)):\n", - " input_data.append(np.dot(next_inputs, network[i]))\n", " output = sigmoid(network[i], next_inputs)\n", " output_d = sigmoid_derivative(network[i], next_inputs)\n", " outputs.append(output)\n", + " input_data.append(output)\n", " outputs_derivative.append(output_d)\n", " next_inputs = output.copy()\n", " return outputs, outputs_derivative, input_data[:len(network)]" @@ -183,8 +183,8 @@ "execution_count": 10, "metadata": { "ExecuteTime": { - "end_time": "2018-02-12T02:47:11.080927Z", - "start_time": "2018-02-12T02:47:10.957031Z" + "end_time": "2018-02-12T03:43:23.444513Z", + "start_time": "2018-02-12T03:43:23.330617Z" } }, "outputs": [], @@ -214,8 +214,8 @@ "execution_count": 11, "metadata": { "ExecuteTime": { - "end_time": "2018-02-12T02:47:11.205887Z", - "start_time": "2018-02-12T02:47:11.083684Z" + "end_time": "2018-02-12T03:43:23.570300Z", + "start_time": "2018-02-12T03:43:23.446412Z" } }, "outputs": [], @@ -231,8 +231,8 @@ "execution_count": 12, "metadata": { "ExecuteTime": { - "end_time": "2018-02-12T02:47:11.314725Z", - "start_time": "2018-02-12T02:47:11.208686Z" + "end_time": "2018-02-12T03:43:23.669298Z", + "start_time": "2018-02-12T03:43:23.573071Z" }, "scrolled": true }, @@ -243,12 +243,12 @@ "text": [ "Epoch 0, Accu 50.00%\n", "Epoch 1, Accu 50.00%\n", - "Epoch 2, Accu 50.00%\n", - "Epoch 3, Accu 50.00%\n", - "Epoch 4, Accu 50.00%\n", - "Epoch 5, Accu 60.00%\n", - "Epoch 6, Accu 60.00%\n", - "Epoch 7, Accu 90.00%\n", + "Epoch 2, Accu 70.00%\n", + "Epoch 3, Accu 100.00%\n", + "Epoch 4, Accu 100.00%\n", + "Epoch 5, Accu 100.00%\n", + "Epoch 6, Accu 100.00%\n", + "Epoch 7, Accu 100.00%\n", "Epoch 8, Accu 100.00%\n", "Epoch 9, Accu 100.00%\n", "Epoch 10, Accu 100.00%\n",