Skip to content

Commit ea04150

Browse files
committed
Modification of weights
1 parent e4dfa25 commit ea04150

File tree

86 files changed

+450899
-3923
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+450899
-3923
lines changed

CNN model to Recommend Comperhancive DDIs/.ipynb_checkpoints/P04_select and evaluate CNN on triple DDI(-1,+1)-checkpoint.ipynb

+5-82
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@
214214
"model.add(Dropout(0.4))\n",
215215
"model.add(Dense( 16, activation='relu'))\n",
216216
"model.add(Dense(2, activation='sigmoid'))\n",
217-
"# model.add(Softmax(128))\n",
217+
"# model.add(Softmax())\n",
218218
"model.summary()\n",
219219
"\n",
220220
"#compile model using accuracy to measure model performance\n",
@@ -301,7 +301,7 @@
301301
"outputs": [],
302302
"source": [
303303
"### Saveing the Model\n",
304-
"model.save_weights('cnnSelection42702(1and-1)_15_epoch.h5')"
304+
"model.save_weights('Weight/cnnSelection42702(1and-1)_15_epoch.h5')"
305305
]
306306
},
307307
{
@@ -352,81 +352,11 @@
352352
},
353353
{
354354
"cell_type": "code",
355-
"execution_count": 57,
355+
"execution_count": 1,
356356
"metadata": {},
357-
"outputs": [
358-
{
359-
"data": {
360-
"text/plain": [
361-
"{'loss': [0.3907131850719452,\n",
362-
" 0.2690473198890686,\n",
363-
" 0.21946105360984802,\n",
364-
" 0.18230456113815308,\n",
365-
" 0.15816053748130798,\n",
366-
" 0.13941122591495514,\n",
367-
" 0.12324169278144836,\n",
368-
" 0.10643041133880615,\n",
369-
" 0.09168621152639389,\n",
370-
" 0.08443722128868103,\n",
371-
" 0.07511654496192932,\n",
372-
" 0.06909380108118057,\n",
373-
" 0.06320834904909134,\n",
374-
" 0.05833422392606735,\n",
375-
" 0.05364372208714485],\n",
376-
" 'accuracy': [0.826576828956604,\n",
377-
" 0.8799437880516052,\n",
378-
" 0.9090341329574585,\n",
379-
" 0.9259210824966431,\n",
380-
" 0.9377862215042114,\n",
381-
" 0.9454881548881531,\n",
382-
" 0.9512645602226257,\n",
383-
" 0.958628237247467,\n",
384-
" 0.9645087718963623,\n",
385-
" 0.9678653478622437,\n",
386-
" 0.971221923828125,\n",
387-
" 0.973849892616272,\n",
388-
" 0.9760095477104187,\n",
389-
" 0.978351354598999,\n",
390-
" 0.9791319966316223],\n",
391-
" 'val_loss': [0.30254605412483215,\n",
392-
" 0.2570132911205292,\n",
393-
" 0.20715923607349396,\n",
394-
" 0.19037070870399475,\n",
395-
" 0.17407278716564178,\n",
396-
" 0.164819598197937,\n",
397-
" 0.15946325659751892,\n",
398-
" 0.13270674645900726,\n",
399-
" 0.12475927919149399,\n",
400-
" 0.13908205926418304,\n",
401-
" 0.10399913042783737,\n",
402-
" 0.12310915440320969,\n",
403-
" 0.11184985935688019,\n",
404-
" 0.1205950602889061,\n",
405-
" 0.10268103331327438],\n",
406-
" 'val_accuracy': [0.864168643951416,\n",
407-
" 0.8927400708198547,\n",
408-
" 0.9177985787391663,\n",
409-
" 0.9241217970848083,\n",
410-
" 0.933021068572998,\n",
411-
" 0.9402810335159302,\n",
412-
" 0.9454332590103149,\n",
413-
" 0.9501171112060547,\n",
414-
" 0.9573770761489868,\n",
415-
" 0.9548009634017944,\n",
416-
" 0.9613583087921143,\n",
417-
" 0.9599531888961792,\n",
418-
" 0.9641686081886292,\n",
419-
" 0.9646369814872742,\n",
420-
" 0.965573787689209]}"
421-
]
422-
},
423-
"execution_count": 57,
424-
"metadata": {},
425-
"output_type": "execute_result"
426-
}
427-
],
357+
"outputs": [],
428358
"source": [
429-
"history.history"
359+
"# history.history"
430360
]
431361
},
432362
{
@@ -957,13 +887,6 @@
957887
"plt.ylabel('frequency distribution')"
958888
]
959889
},
960-
{
961-
"cell_type": "code",
962-
"execution_count": null,
963-
"metadata": {},
964-
"outputs": [],
965-
"source": []
966-
},
967890
{
968891
"cell_type": "code",
969892
"execution_count": null,

CNN model to Recommend Comperhancive DDIs/.ipynb_checkpoints/P05_10fold CV on CNN on deg and enh DDI.py-checkpoint.ipynb

+455-25
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)