Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
arogozhnikov committed Oct 26, 2015
2 parents d046f82 + 182e920 commit 5febbc0
Showing 1 changed file with 35 additions and 33 deletions.
68 changes: 35 additions & 33 deletions howto/06-howto-neural-nets.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -424,11 +424,12 @@
"text/plain": [
"TheanetsClassifier(decode_from=1,\n",
" features=['feature_0', 'feature_1', 'feature_2', 'feature_3', 'feature_4', 'feature_5', 'feature_6', 'feature_7', 'feature_8', 'feature_9', 'feature_10', 'feature_11', 'feature_12', 'feature_13', 'feature_14', 'feature_15', 'feature_16', 'feature_17', 'feature_18', 'feature_19', 'feature_20', 'feature_21', 'feature_22', 'feature_23', 'feature_24'],\n",
" hidden_activation='logistic', hidden_dropouts=0, hidden_noise=0,\n",
" input_dropouts=0, input_layer=-1, input_noise=0, layers=[20],\n",
" hidden_activation='logistic', hidden_dropout=0, hidden_noise=0,\n",
" input_dropout=0, input_layer=-1, input_noise=0, layers=[20],\n",
" output_activation='linear', output_layer=-1, random_state=42,\n",
" scaler=StandardScaler(copy=True, with_mean=True, with_std=True),\n",
" trainers=[{'learning_rate': 0.1, 'optimize': 'nag'}])"
" trainers=[{'learning_rate': 0.1, 'optimize': 'nag'}],\n",
" weight_l1=0.01, weight_l2=0.01)"
]
},
"execution_count": 7,
Expand Down Expand Up @@ -461,13 +462,13 @@
"name": "stdout",
"output_type": "stream",
"text": [
"[[ 9.99993392e-01 6.60761688e-06]\n",
" [ 9.95828440e-01 4.17156041e-03]\n",
" [ 9.98712603e-01 1.28739672e-03]\n",
"[[ 0.99862726 0.00137274]\n",
" [ 0.98459337 0.01540663]\n",
" [ 0.90196655 0.09803345]\n",
" ..., \n",
" [ 2.93668988e-02 9.70633101e-01]\n",
" [ 4.31545797e-02 9.56845420e-01]\n",
" [ 9.83591977e-01 1.64080228e-02]]\n"
" [ 0.68998114 0.31001886]\n",
" [ 0.9966981 0.0033019 ]\n",
" [ 0.96552616 0.03447384]]\n"
]
}
],
Expand All @@ -488,7 +489,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"ROC AUC 0.968521307474\n"
"ROC AUC 0.959304277996\n"
]
}
],
Expand Down Expand Up @@ -551,11 +552,12 @@
"text/plain": [
"TheanetsClassifier(decode_from=1,\n",
" features=['feature_0', 'feature_1', 'feature_2', 'feature_3', 'feature_4', 'feature_5', 'feature_6', 'feature_7', 'feature_8', 'feature_9', 'feature_10', 'feature_11', 'feature_12', 'feature_13', 'feature_14', 'feature_15', 'feature_16', 'feature_17', 'feature_18', 'feature_19', 'feature_20', 'feature_21', 'feature_22', 'feature_23', 'feature_24'],\n",
" hidden_activation='logistic', hidden_dropouts=0, hidden_noise=0,\n",
" input_dropouts=0, input_layer=-1, input_noise=0, layers=[10, 10],\n",
" hidden_activation='logistic', hidden_dropout=0, hidden_noise=0,\n",
" input_dropout=0, input_layer=-1, input_noise=0, layers=[10, 10],\n",
" output_activation='linear', output_layer=-1, random_state=42,\n",
" scaler=StandardScaler(copy=True, with_mean=True, with_std=True),\n",
" trainers=[{'optimize': 'rprop'}, {'optimize': 'adadelta'}])"
" trainers=[{'optimize': 'rprop'}, {'optimize': 'adadelta'}],\n",
" weight_l1=0.01, weight_l2=0.01)"
]
},
"execution_count": 11,
Expand All @@ -578,13 +580,13 @@
"name": "stdout",
"output_type": "stream",
"text": [
"[[ 9.99986221e-01 1.37794727e-05]\n",
" [ 9.92701202e-01 7.29879815e-03]\n",
" [ 9.98978601e-01 1.02139857e-03]\n",
"[[ 0.99830753 0.00169247]\n",
" [ 0.98051297 0.01948703]\n",
" [ 0.91355655 0.08644345]\n",
" ..., \n",
" [ 2.84311507e-02 9.71568849e-01]\n",
" [ 5.24384102e-02 9.47561590e-01]\n",
" [ 9.98630206e-01 1.36979353e-03]]\n"
" [ 0.67038129 0.32961871]\n",
" [ 0.9956313 0.0043687 ]\n",
" [ 0.96430832 0.03569168]]\n"
]
}
],
Expand All @@ -605,7 +607,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"ROC AUC 0.972865326502\n"
"ROC AUC 0.961685711842\n"
]
}
],
Expand All @@ -630,7 +632,7 @@
{
"data": {
"text/plain": [
"array([0, 0, 0, ..., 1, 1, 0])"
"array([0, 0, 0, ..., 0, 0, 0])"
]
},
"execution_count": 14,
Expand Down Expand Up @@ -746,13 +748,13 @@
"name": "stdout",
"output_type": "stream",
"text": [
"[[ 0.84435794 0.15564206]\n",
" [ 0.79152686 0.20847314]\n",
" [ 0.71490757 0.28509243]\n",
"[[ 0.80248179 0.19751821]\n",
" [ 0.77035923 0.22964077]\n",
" [ 0.70103808 0.29896192]\n",
" ..., \n",
" [ 0.86552839 0.13447161]\n",
" [ 0.3284865 0.6715135 ]\n",
" [ 0.5704165 0.4295835 ]]\n"
" [ 0.70096542 0.29903458]\n",
" [ 0.80149878 0.19850122]\n",
" [ 0.73104934 0.26895066]]\n"
]
}
],
Expand All @@ -773,7 +775,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"ROC AUC 0.795605217389\n"
"ROC AUC 0.801023606313\n"
]
}
],
Expand All @@ -791,7 +793,7 @@
{
"data": {
"text/plain": [
"array([0, 0, 0, ..., 0, 1, 0])"
"array([0, 0, 0, ..., 0, 0, 0])"
]
},
"execution_count": 19,
Expand Down Expand Up @@ -924,7 +926,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"ROC AUC: 0.953264820626\n"
"ROC AUC: 0.95609464457\n"
]
}
],
Expand All @@ -950,7 +952,7 @@
{
"data": {
"text/plain": [
"array([0, 0, 0, ..., 1, 1, 0])"
"array([0, 0, 0, ..., 0, 0, 0])"
]
},
"execution_count": 23,
Expand Down Expand Up @@ -982,7 +984,7 @@
{
"data": {
"text/plain": [
"NeurolabClassifier(initf=<function init_rand at 0x10f43a668>, layers=[10],\n",
"NeurolabClassifier(initf=<function init_rand at 0x10a416b90>, layers=[10],\n",
" net_type='feed-forward', random_state=None, scaler=False,\n",
" trainf=None)"
]
Expand Down Expand Up @@ -1054,7 +1056,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"AUC 0.967263310024\n"
"AUC 0.950074484171\n"
]
}
],
Expand Down

0 comments on commit 5febbc0

Please sign in to comment.