Skip to content

Commit 00961aa

Browse files
major_upgrade_training_working
1 parent c0d06c7 commit 00961aa

18 files changed

+3125
-97
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -127,3 +127,4 @@ dmypy.json
127127

128128
# Pyre type checker
129129
.pyre/
130+
kite_session.pkl

Inference/inference_notebook-Copy1.ipynb

+3-3
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
},
8585
{
8686
"cell_type": "code",
87-
"execution_count": 35,
87+
"execution_count": 2,
8888
"metadata": {
8989
"ExecuteTime": {
9090
"end_time": "2021-07-03T14:26:58.213760Z",
@@ -98,14 +98,14 @@
9898
"'Hemang Atulkumar Joshi'"
9999
]
100100
},
101-
"execution_count": 35,
101+
"execution_count": 2,
102102
"metadata": {},
103103
"output_type": "execute_result"
104104
}
105105
],
106106
"source": [
107107
"from jugaad_trader import Zerodha\n",
108-
"kite = Zerodha(user_id='ZERODHA_CLIENT_ID',password='ZERODHA_PASSWORD',twofa='ZERODHA_PIN')\n",
108+
"kite = Zerodha(user_id='user_id',password='password',twofa='twofa')\n",
109109
"kite.login()\n",
110110
"kite.profile()['user_name']"
111111
]

Training/notebook62326ade97_1X.ipynb

+12-2
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,17 @@
6262
"device"
6363
]
6464
},
65+
{
66+
"cell_type": "code",
67+
"execution_count": 3,
68+
"metadata": {},
69+
"outputs": [],
70+
"source": [
71+
"# import joblib\n",
72+
"# this_inst_df = joblib.load(f'./dt11112222/1793.p')\n",
73+
"# this_inst_df"
74+
]
75+
},
6576
{
6677
"cell_type": "code",
6778
"execution_count": 3,
@@ -233,7 +244,6 @@
233244
" pyplot.grid(True, which='both')\n",
234245
" pyplot.axhline(y=0, color='k')\n",
235246
" pyplot.savefig(f'./plots2/transformer-epoch_{plot_counter}_{epoch}_{tknip}.png')\n",
236-
" \n",
237247
" pyplot.close()\n",
238248
" \n",
239249
" return total_loss / i\n",
@@ -1045,7 +1055,7 @@
10451055
"name": "python",
10461056
"nbconvert_exporter": "python",
10471057
"pygments_lexer": "ipython3",
1048-
"version": "3.9.5"
1058+
"version": "3.8.10"
10491059
},
10501060
"varInspector": {
10511061
"cols": {

Training/notebook62326ade97_5X.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1200,7 +1200,7 @@
12001200
"name": "python",
12011201
"nbconvert_exporter": "python",
12021202
"pygments_lexer": "ipython3",
1203-
"version": "3.9.5"
1203+
"version": "3.8.10"
12041204
},
12051205
"varInspector": {
12061206
"cols": {

agenda.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# this is a github python repo in which user can install this using pip. to use this repo you have to load the data using `data_loader.py` and train the model using `trainer.py` file and infer the trained model using `inferencer.py` file. all the files should contain appropriate comments and docstring for better readability of the code.
1+
# this is a github python repo in which user can install this using pip. to use this repo you have to load the data using `data_loader.py` and train the model using `trainer.py` file and infer the trained model using `inferencer.py` file. all the files should contain appropriate comments and docstring for better readability of the code
22

3-
# the `data_loader.py` file should have three functionalites in it's code , first is to autheniutacte user by prompitng for entering user auth details of zerodha account, then ask for the stock symbol for which a user is using this repo. then download the data using zerodha kite class. then saving it approriately in a local file for furhter model training usecases. here the file `notebook62326ade97_1X.ipynb` and `inference_notebook-Copy1.ipynb` can be referenced for this .
3+
# the `data_loader.py` file should have three functionalites in it's code , first is to autheniutacte user by prompitng for entering user auth details of zerodha account, then ask for the stock symbol for which a user is using this repo. then download the data using zerodha kite class. then saving it approriately in a local file for furhter model training usecases. here the file `notebook62326ade97_1X.ipynb` and `inference_notebook-Copy1.ipynb` can be referenced for this
44

5-
# the `trainer.py` file should have code for this . this file should contain code for loading local file that is saved by the `data_loader.py` file's code execution , if not found then give assering error for this . then asking user for transofrmer parameters for training the model. then one method for starting the training process with live plot display and saving the plots . after completion of training of this model it should saved locally with well defined name.
5+
# the `trainer.py` file should have code for this . this file should contain code for loading local file that is saved by the `data_loader.py` file's code execution , if not found then give assering error for this . then asking user for transofrmer parameters for training the model. then one method for starting the training process with live plot display and saving the plots . after completion of training of this model it should saved locally with well defined name
66

7-
# here in the file `inferencer.py` it should have code for loading the model that is saved by the file `trainer.py` and then for inferring this model it should ask for authenticating using zerodha using preovious files if not already logged in. and then ask in a prompt for inferring the stock symbol for this . then after getting name of the symbol that the user want to infer it should get data and load the model and run inference code and how the results in a plot and analytical table.
7+
# here in the file `inferencer.py` it should have code for loading the model that is saved by the file `trainer.py` and then for inferring this model it should ask for authenticating using zerodha using preovious files if not already logged in. and then ask in a prompt for inferring the stock symbol for this . then after getting name of the symbol that the user want to infer it should get data and load the model and run inference code and how the results in a plot and analytical table

0 commit comments

Comments
 (0)