Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

abcd #70

Open
wants to merge 103 commits into
base: agrawalarpit14-patch-1
Choose a base branch
from
Open

abcd #70

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
103 commits
Select commit Hold shift + click to select a range
637ac52
Merge pull request #1 from oss2019/agrawalarpit14-patch-1
akshatkarani Apr 17, 2019
2511a20
Create a new folder for Python assignment (Phase 1)
Sedherthe May 6, 2019
e6c0ebb
Add files via upload
Sedherthe May 6, 2019
4f2de4d
Merge pull request #2 from Sedherthe/Phase--1
Sedherthe May 6, 2019
95b1fc0
[Phase 1] : Create resources folder for Python assignment
Sedherthe May 6, 2019
13eedae
Update file location
Sedherthe May 6, 2019
7f1f722
Rename stopwords. to stopwords.txt
Sedherthe May 6, 2019
754229b
Add files via upload
Sedherthe May 6, 2019
8b0e3ea
Delete 2600-0.txt
Sedherthe May 6, 2019
482c015
[Phase 1] : Update problem statement for Python assignment
Sedherthe May 6, 2019
77b1367
Update README.md
Sedherthe May 6, 2019
4a4b8c6
Update README.md
Sedherthe May 6, 2019
044499a
Update README.md
Sedherthe May 6, 2019
aec14de
Update README.md
Sedherthe May 6, 2019
450c865
Added Top50.txt
DestroyerAlpha May 6, 2019
f20dcc1
Added Top 45 most common words
prajwal72 May 6, 2019
8d1375a
File which consist of the top 5 most common words
Rits1272 May 6, 2019
1df221b
Add Top20.txt
May 8, 2019
95830d9
Added Top60.txt file
peddiashrith May 8, 2019
6d5ab6c
Merge pull request #16 from DestroyerAlpha/master
Sedherthe May 8, 2019
eee4211
Merge pull request #17 from prajwal72/master
Sedherthe May 8, 2019
789dbd8
Merge pull request #18 from Rits1272/master
Sedherthe May 8, 2019
789b96c
Merge pull request #24 from peddiashrith/patch-1
Sedherthe May 8, 2019
9a17dba
Merge pull request #23 from sourabh1031/patch-1
Sedherthe May 8, 2019
1e75728
Added Top35.txt (#22)
Himan13799 May 8, 2019
c4cbf08
Added file for Top 100
DestroyerAlpha May 8, 2019
f2070d9
added top70.txt
rakaar May 9, 2019
974e32b
Merge pull request #37 from rakaar/top-70
Sedherthe May 9, 2019
9feee50
Add Top85.txt
bumblebee1998 May 9, 2019
e40cf1b
Top 75 done
harshaldesai01 May 9, 2019
8397aee
Added top 15 most common words (#19)
avedmala May 10, 2019
820b2b9
Merge pull request #38 from bumblebee1998/master
Sedherthe May 10, 2019
873dc3b
Merge pull request #39 from harshaldesai01/master
Sedherthe May 10, 2019
6a0adc4
Add top 80 words
ayushdubey1998 May 10, 2019
bd3db7c
Merge pull request #1 from oss2019/master
Sedherthe May 10, 2019
7a9ec6f
Create Phase 2 folder
Sedherthe May 10, 2019
c27c356
create images folder for Phase 2
Sedherthe May 10, 2019
7079cac
Add files via upload
Sedherthe May 10, 2019
e19fa8d
Update Supervised_Learning.md
Sedherthe May 10, 2019
8ddf9d9
Create README.md
Sedherthe May 11, 2019
6524588
Add files via upload
Sedherthe May 11, 2019
9bb05f8
Update README.md
Sedherthe May 11, 2019
aabb11e
Merge pull request #42 from Sedherthe/master
Sedherthe May 11, 2019
22fc796
Merge pull request #41 from ayushdubey003/master
Sedherthe May 11, 2019
82c7271
Added Top 100 most common words (#44)
yugaljain1999 Jul 5, 2019
416eb29
Top 10 words (#43)
iharshit009 Jul 5, 2019
266135e
adds top 40 most common words counts (#13)
Shankusu993 Jul 5, 2019
52665e3
Add top 25 most common words (#46)
parammittal16 Jul 9, 2019
127741a
Added Top65.txt (#48)
Akshay184 Jul 9, 2019
a9b6382
Update Top75.txt
Sedherthe Jul 9, 2019
bca70b0
Merge pull request #2 from oss2019/master
Sedherthe Jul 9, 2019
199ee20
create keras assignment
Sedherthe Jul 9, 2019
0f0c825
Create Readme file for keras
Sedherthe Jul 9, 2019
2c2e96b
Create README.md
Sedherthe Jul 9, 2019
02a58ac
Create Task1.md
Sedherthe Jul 9, 2019
e514c79
Delete Task1.md
Sedherthe Jul 9, 2019
2223ccc
Create Task1.md
Sedherthe Jul 9, 2019
480f8f7
Add files via upload
prateekjain2606 Jul 9, 2019
6312a99
Delete notes_for_text.txt
ganeshsamarth Jul 9, 2019
ad03f82
Add info about the framework for text-sum
Sedherthe Jul 9, 2019
e140103
Update info about the framework instructions
Sedherthe Jul 9, 2019
86db6dd
Update README.md for keras assignment
Sedherthe Jul 9, 2019
5b35eae
Update the task1 statement
Sedherthe Jul 9, 2019
e1f079f
Update readme for the framework
Sedherthe Jul 9, 2019
0a22683
Update readme for task1
Sedherthe Jul 9, 2019
9084dcc
create and update readme for task1 folder
Sedherthe Jul 9, 2019
63db074
Merge pull request #52 from Sedherthe/master
Sedherthe Jul 9, 2019
6f34a53
Delete Text Summarization-Python Keras.md
Sedherthe Jul 9, 2019
d196412
Update README.md
Sedherthe Jul 9, 2019
c977cb2
Update readme for framework
Sedherthe Jul 9, 2019
2d6ec63
top55.txt
JainStuti25 Jul 9, 2019
3c78c43
Merge pull request #53 from JainStuti25/patch-2
Sedherthe Jul 9, 2019
a05128c
Update readme for keras
Sedherthe Jul 9, 2019
d061296
adds top 30 commmon words
bvishal8510 Jul 9, 2019
9b1f631
KerasTask1done
harshaldesai01 Jul 10, 2019
3c13f75
Merge pull request #57 from harshaldesai01/branchforkeras
ganeshsamarth Jul 10, 2019
cde8479
keras_task1
Girrajjangid Jul 10, 2019
8217d94
Completed Keras Task 1
Rits1272 Jul 10, 2019
f69ad4c
Merge pull request #60 from Girrajjangid/master
ganeshsamarth Jul 11, 2019
d0d44a6
Keras Task 1
prajwal72 Jul 11, 2019
43edbd7
Delete RitikJain_wihLogs.ipynb
Rits1272 Jul 11, 2019
93dd257
Keras Task 1 : Added Evaluation model
Rits1272 Jul 11, 2019
52c023d
Removing Top100 file
DestroyerAlpha Jul 11, 2019
5460f8e
Merge pull request #1 from oss2019/master
DestroyerAlpha Jul 11, 2019
77f80f6
Create .gitignore
DestroyerAlpha Jul 11, 2019
9b5c013
Added files for Task1
DestroyerAlpha Jul 11, 2019
e9d69d8
Delete .gitignore
DestroyerAlpha Jul 11, 2019
2b97914
Merge pull request #61 from Rits1272/master
ganeshsamarth Jul 12, 2019
cfffa20
Merge pull request #62 from prajwal72/master
ganeshsamarth Jul 12, 2019
8cdec9d
Merge pull request #63 from DestroyerAlpha/master
ganeshsamarth Jul 12, 2019
9b4b6a3
Keras_Task1
yugaljain1999 Jul 13, 2019
faf195e
Keras_Task1
yugaljain1999 Jul 13, 2019
4f0f012
Merge pull request #64 from yugaljain1999/master
ganeshsamarth Jul 14, 2019
0dd8e2f
Create PeddiAshrithKumar_ModelWithLogs.ipynb file
peddiashrith Jul 16, 2019
c331f5c
Merge pull request #65 from peddiashrith/patch-2
Sedherthe Jul 16, 2019
3429b3a
Add files via upload
ganeshsamarth Jul 23, 2019
e69708a
Delete readme_for _text_summarization.txt
ganeshsamarth Jul 23, 2019
926d628
Add files via upload
ganeshsamarth Jul 23, 2019
3073cff
Merge pull request #56 from bvishal8510/top-30
Sedherthe Jul 25, 2019
7fb4872
Top 90 words done. (#45)
Yashpd Jul 25, 2019
e9c8a1a
StutiJain_Task1 (#66)
JainStuti25 Jul 25, 2019
d2c2d4c
Top95 (#68)
harshraj22 Aug 12, 2019
7387e69
Task1 (#69)
harshraj22 Aug 12, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

233 changes: 233 additions & 0 deletions Framework/Keras/Keras Assingment/Harsh_Task1/harsh.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,233 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 28,
"metadata": {},
"outputs": [],
"source": [
"from keras.utils.np_utils import to_categorical"
]
},
{
"cell_type": "code",
"execution_count": 29,
"metadata": {},
"outputs": [],
"source": [
"from keras.datasets import mnist"
]
},
{
"cell_type": "code",
"execution_count": 30,
"metadata": {},
"outputs": [],
"source": [
"from keras.layers import Dense"
]
},
{
"cell_type": "code",
"execution_count": 31,
"metadata": {},
"outputs": [],
"source": [
"from keras.models import Sequential"
]
},
{
"cell_type": "code",
"execution_count": 32,
"metadata": {},
"outputs": [],
"source": [
"from keras.callbacks import CSVLogger"
]
},
{
"cell_type": "code",
"execution_count": 33,
"metadata": {},
"outputs": [],
"source": [
"(X_train, Y_train),(X_test, Y_test) = mnist.load_data()"
]
},
{
"cell_type": "code",
"execution_count": 34,
"metadata": {},
"outputs": [],
"source": [
"model = Sequential()"
]
},
{
"cell_type": "code",
"execution_count": 35,
"metadata": {},
"outputs": [],
"source": [
"X_train = X_train.reshape(X_train.shape[0],784)"
]
},
{
"cell_type": "code",
"execution_count": 36,
"metadata": {},
"outputs": [],
"source": [
"X_test = X_test.reshape(X_test.shape[0], 784)\n"
]
},
{
"cell_type": "code",
"execution_count": 37,
"metadata": {},
"outputs": [],
"source": [
"X_train = X_train / 255\n",
"X_test = X_test / 255"
]
},
{
"cell_type": "code",
"execution_count": 38,
"metadata": {},
"outputs": [],
"source": [
"Y_train = to_categorical(Y_train)\n",
"Y_test = to_categorical(Y_test)"
]
},
{
"cell_type": "code",
"execution_count": 39,
"metadata": {},
"outputs": [],
"source": [
"model.add(Dense(512,input_dim = 784 ,activation = 'relu'))"
]
},
{
"cell_type": "code",
"execution_count": 40,
"metadata": {},
"outputs": [],
"source": [
"model.add(Dense(10,activation = 'softmax'))"
]
},
{
"cell_type": "code",
"execution_count": 41,
"metadata": {},
"outputs": [],
"source": [
"model.compile(optimizer = 'adam',loss = 'categorical_crossentropy', metrics=['accuracy'])"
]
},
{
"cell_type": "code",
"execution_count": 42,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Train on 60000 samples, validate on 10000 samples\n",
"Epoch 1/10\n",
" - 9s - loss: 0.2155 - acc: 0.9375 - val_loss: 0.1092 - val_acc: 0.9667\n",
"Epoch 2/10\n",
" - 8s - loss: 0.0855 - acc: 0.9741 - val_loss: 0.0788 - val_acc: 0.9757\n",
"Epoch 3/10\n",
" - 8s - loss: 0.0547 - acc: 0.9832 - val_loss: 0.0802 - val_acc: 0.9748\n",
"Epoch 4/10\n",
" - 10s - loss: 0.0395 - acc: 0.9875 - val_loss: 0.0900 - val_acc: 0.9727\n",
"Epoch 5/10\n",
" - 11s - loss: 0.0285 - acc: 0.9907 - val_loss: 0.0681 - val_acc: 0.9796\n",
"Epoch 6/10\n",
" - 9s - loss: 0.0215 - acc: 0.9927 - val_loss: 0.0669 - val_acc: 0.9799\n",
"Epoch 7/10\n",
" - 9s - loss: 0.0166 - acc: 0.9949 - val_loss: 0.0857 - val_acc: 0.9759\n",
"Epoch 8/10\n",
" - 8s - loss: 0.0146 - acc: 0.9953 - val_loss: 0.0830 - val_acc: 0.9764\n",
"Epoch 9/10\n",
" - 8s - loss: 0.0107 - acc: 0.9965 - val_loss: 0.0695 - val_acc: 0.9833\n",
"Epoch 10/10\n",
" - 9s - loss: 0.0089 - acc: 0.9972 - val_loss: 0.0844 - val_acc: 0.9795\n"
]
},
{
"data": {
"text/plain": [
"<keras.callbacks.History at 0x7f697dc77ac8>"
]
},
"execution_count": 42,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"model.fit(X_train,Y_train, validation_data=(X_test,Y_test),epochs = 10, batch_size = 50, verbose = 2)"
]
},
{
"cell_type": "code",
"execution_count": 43,
"metadata": {},
"outputs": [],
"source": [
"accuracy = model.evaluate(X_test, Y_test, verbose=0)"
]
},
{
"cell_type": "code",
"execution_count": 44,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"accuracy is 97.95\n"
]
}
],
"source": [
"print(\"accuracy is %0.2f\" % (accuracy[-1]*100)) "
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.3"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Loading