-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGenerative Python File
153 lines (153 loc) · 4.07 KB
/
Generative Python File
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"id": "0330fc9f",
"metadata": {
"_cell_guid": "b1076dfc-b9ad-4769-8c92-a6c4dae69d19",
"_uuid": "8f2839f25d086af736a60e9eeb907d3b93b6e0e5",
"execution": {
"iopub.execute_input": "2024-07-25T12:58:24.998853Z",
"iopub.status.busy": "2024-07-25T12:58:24.998393Z",
"iopub.status.idle": "2024-07-25T12:58:26.035746Z",
"shell.execute_reply": "2024-07-25T12:58:26.034622Z"
},
"papermill": {
"duration": 1.045204,
"end_time": "2024-07-25T12:58:26.038850",
"exception": false,
"start_time": "2024-07-25T12:58:24.993646",
"status": "completed"
},
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"/kaggle/input/token-txt/Token.txt\n"
]
}
],
"source": [
"# This Python 3 environment comes with many helpful analytics libraries installed\n",
"# It is defined by the kaggle/python Docker image: https://github.com/kaggle/docker-python\n",
"# For example, here's several helpful packages to load\n",
"\n",
"import numpy as np # linear algebra\n",
"import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)\n",
"\n",
"# Input data files are available in the read-only \"../input/\" directory\n",
"# For example, running this (by clicking run or pressing Shift+Enter) will list all files under the input directory\n",
"\n",
"import os\n",
"for dirname, _, filenames in os.walk('/kaggle/input'):\n",
" for filename in filenames:\n",
" print(os.path.join(dirname, filename))\n",
"\n",
"# You can write up to 20GB to the current directory (/kaggle/working/) that gets preserved as output when you create a version using \"Save & Run All\" \n",
"# You can also write temporary files to /kaggle/temp/, but they won't be saved outside of the current session"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "d2791523",
"metadata": {
"execution": {
"iopub.execute_input": "2024-07-25T12:58:26.046862Z",
"iopub.status.busy": "2024-07-25T12:58:26.046255Z",
"iopub.status.idle": "2024-07-25T12:58:26.053437Z",
"shell.execute_reply": "2024-07-25T12:58:26.052052Z"
},
"papermill": {
"duration": 0.014364,
"end_time": "2024-07-25T12:58:26.056175",
"exception": false,
"start_time": "2024-07-25T12:58:26.041811",
"status": "completed"
},
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Runing The Code\n"
]
}
],
"source": [
"print(\"Runing The Code\")"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "418a68e6",
"metadata": {
"papermill": {
"duration": 0.002186,
"end_time": "2024-07-25T12:58:26.060975",
"exception": false,
"start_time": "2024-07-25T12:58:26.058789",
"status": "completed"
},
"tags": []
},
"outputs": [],
"source": []
}
],
"metadata": {
"kaggle": {
"accelerator": "none",
"dataSources": [
{
"datasetId": 5436839,
"sourceId": 9022040,
"sourceType": "datasetVersion"
}
],
"dockerImageVersionId": 30746,
"isGpuEnabled": false,
"isInternetEnabled": true,
"language": "python",
"sourceType": "notebook"
},
"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.10.13"
},
"papermill": {
"default_parameters": {},
"duration": 5.081495,
"end_time": "2024-07-25T12:58:26.789435",
"environment_variables": {},
"exception": null,
"input_path": "__notebook__.ipynb",
"output_path": "__notebook__.ipynb",
"parameters": {},
"start_time": "2024-07-25T12:58:21.707940",
"version": "2.5.0"
}
},
"nbformat": 4,
"nbformat_minor": 5
}