Spaces:
Sleeping
Sleeping
singhjagpreet
commited on
Commit
·
d7e1d8f
1
Parent(s):
47ff4e9
prediction pipeline
Browse files- app.py +44 -0
- logs/09_12_2023_03_13_01.log/09_12_2023_03_13_01.log +0 -0
- logs/09_12_2023_03_15_21.log/09_12_2023_03_15_21.log +0 -0
- logs/09_12_2023_03_16_33.log/09_12_2023_03_16_33.log +71 -0
- logs/09_12_2023_03_20_53.log/09_12_2023_03_20_53.log +5 -0
- logs/09_12_2023_03_21_12.log/09_12_2023_03_21_12.log +7 -0
- logs/09_12_2023_03_21_13.log/09_12_2023_03_21_13.log +8 -0
- logs/09_12_2023_03_22_42.log/09_12_2023_03_22_42.log +2 -0
- logs/09_12_2023_03_22_48.log/09_12_2023_03_22_48.log +15 -0
- logs/09_12_2023_03_25_37.log/09_12_2023_03_25_37.log +2 -0
- logs/09_12_2023_03_25_42.log/09_12_2023_03_25_42.log +18 -0
- logs/09_12_2023_03_26_14.log/09_12_2023_03_26_14.log +2 -0
- logs/09_12_2023_03_26_24.log/09_12_2023_03_26_24.log +6 -0
- logs/09_12_2023_03_26_25.log/09_12_2023_03_26_25.log +6 -0
- logs/09_12_2023_03_29_04.log/09_12_2023_03_29_04.log +8 -0
- logs/09_12_2023_03_29_05.log/09_12_2023_03_29_05.log +8 -0
- logs/09_12_2023_03_33_25.log/09_12_2023_03_33_25.log +7 -0
- logs/09_12_2023_03_35_31.log/09_12_2023_03_35_31.log +2 -0
- logs/09_12_2023_03_36_33.log/09_12_2023_03_36_33.log +6 -0
- logs/09_12_2023_03_36_34.log/09_12_2023_03_36_34.log +6 -0
- logs/09_13_2023_00_51_25.log/09_13_2023_00_51_25.log +9 -0
- logs/09_13_2023_00_51_27.log/09_13_2023_00_51_27.log +12 -0
- logs/09_13_2023_00_52_34.log/09_13_2023_00_52_34.log +3 -0
- logs/09_13_2023_00_52_38.log/09_13_2023_00_52_38.log +3 -0
- logs/09_13_2023_00_52_41.log/09_13_2023_00_52_41.log +2 -0
- logs/09_13_2023_00_52_48.log/09_13_2023_00_52_48.log +16 -0
- logs/09_13_2023_00_53_11.log/09_13_2023_00_53_11.log +3 -0
- logs/09_13_2023_00_53_16.log/09_13_2023_00_53_16.log +3 -0
- logs/09_13_2023_00_53_18.log/09_13_2023_00_53_18.log +2 -0
- logs/09_13_2023_00_53_43.log/09_13_2023_00_53_43.log +11 -0
- src/__pycache__/utils.cpython-310.pyc +0 -0
- src/components/data_transformation.py +1 -1
- src/pipeline/__pycache__/__init__.cpython-310.pyc +0 -0
- src/pipeline/__pycache__/predict_pipeline.cpython-310.pyc +0 -0
- src/pipeline/predict_pipeline.py +64 -0
- src/utils.py +9 -1
- templates/home.html +111 -0
- templates/index.html +1 -0
app.py
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from flask import Flask,request,render_template
|
2 |
+
import numpy as np
|
3 |
+
import sys
|
4 |
+
|
5 |
+
from sklearn.preprocessing import StandardScaler
|
6 |
+
from src.exception import CustomException
|
7 |
+
|
8 |
+
from src.pipeline.predict_pipeline import CustomData,PredictPipeline
|
9 |
+
|
10 |
+
app = Flask(__name__)
|
11 |
+
|
12 |
+
## route for home page
|
13 |
+
|
14 |
+
@app.route('/')
|
15 |
+
def index():
|
16 |
+
return render_template('index.html')
|
17 |
+
|
18 |
+
@app.route('/predictdata',methods=['GET','POST'])
|
19 |
+
def predict_datapoint():
|
20 |
+
try:
|
21 |
+
if request.method == 'GET':
|
22 |
+
return render_template('home.html')
|
23 |
+
else:
|
24 |
+
|
25 |
+
data=CustomData(
|
26 |
+
gender=request.form.get('gender'),
|
27 |
+
race_ethnicity=request.form.get('race_ethnicity'),
|
28 |
+
parental_level_of_education=request.form.get('parental_level_of_education'),
|
29 |
+
lunch=request.form.get('lunch'),
|
30 |
+
test_preparation_course=request.form.get('test_preparation_course'),
|
31 |
+
reading_score=request.form.get('reading_score'),
|
32 |
+
writing_score=request.form.get('writing_Score')
|
33 |
+
)
|
34 |
+
pred_df = data.get_data_as_data_frame()
|
35 |
+
|
36 |
+
predict_pipeline = PredictPipeline()
|
37 |
+
|
38 |
+
results = predict_pipeline.predict(pred_df)
|
39 |
+
return render_template('home.html',results=results[0])
|
40 |
+
except Exception as e:
|
41 |
+
raise CustomException(e,sys)
|
42 |
+
|
43 |
+
if __name__ == '__main__':
|
44 |
+
app.run(host='0.0.0.0',debug=True)
|
logs/09_12_2023_03_13_01.log/09_12_2023_03_13_01.log
ADDED
File without changes
|
logs/09_12_2023_03_15_21.log/09_12_2023_03_15_21.log
ADDED
File without changes
|
logs/09_12_2023_03_16_33.log/09_12_2023_03_16_33.log
ADDED
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[ 2023-09-12 03:16:34,054 ] 187 werkzeug - INFO - [31m[1mWARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.[0m
|
2 |
+
* Running on all addresses (0.0.0.0)
|
3 |
+
* Running on http://127.0.0.1:5000
|
4 |
+
* Running on http://10.0.0.91:5000
|
5 |
+
[ 2023-09-12 03:16:34,054 ] 187 werkzeug - INFO - [33mPress CTRL+C to quit[0m
|
6 |
+
[ 2023-09-12 03:16:45,310 ] 187 werkzeug - INFO - 127.0.0.1 - - [12/Sep/2023 03:16:45] "GET / HTTP/1.1" 200 -
|
7 |
+
[ 2023-09-12 03:16:45,490 ] 187 werkzeug - INFO - 127.0.0.1 - - [12/Sep/2023 03:16:45] "[33mGET /favicon.ico HTTP/1.1[0m" 404 -
|
8 |
+
[ 2023-09-12 03:17:19,518 ] 187 werkzeug - INFO - 127.0.0.1 - - [12/Sep/2023 03:17:19] "GET / HTTP/1.1" 200 -
|
9 |
+
[ 2023-09-12 03:17:50,580 ] 187 werkzeug - INFO - 127.0.0.1 - - [12/Sep/2023 03:17:50] "GET / HTTP/1.1" 200 -
|
10 |
+
[ 2023-09-12 03:17:52,038 ] 187 werkzeug - INFO - 127.0.0.1 - - [12/Sep/2023 03:17:52] "GET / HTTP/1.1" 200 -
|
11 |
+
[ 2023-09-12 03:18:00,483 ] 1414 app - ERROR - Exception on /predictdata [GET]
|
12 |
+
Traceback (most recent call last):
|
13 |
+
File "/Users/jagpreetsingh/ML_Projects/mlops/venv/lib/python3.10/site-packages/flask/app.py", line 2190, in wsgi_app
|
14 |
+
response = self.full_dispatch_request()
|
15 |
+
File "/Users/jagpreetsingh/ML_Projects/mlops/venv/lib/python3.10/site-packages/flask/app.py", line 1486, in full_dispatch_request
|
16 |
+
rv = self.handle_user_exception(e)
|
17 |
+
File "/Users/jagpreetsingh/ML_Projects/mlops/venv/lib/python3.10/site-packages/flask/app.py", line 1484, in full_dispatch_request
|
18 |
+
rv = self.dispatch_request()
|
19 |
+
File "/Users/jagpreetsingh/ML_Projects/mlops/venv/lib/python3.10/site-packages/flask/app.py", line 1469, in dispatch_request
|
20 |
+
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
|
21 |
+
File "/Users/jagpreetsingh/ML_Projects/mlops/app.py", line 19, in predict_datapopint
|
22 |
+
return render_template('home.html')
|
23 |
+
File "/Users/jagpreetsingh/ML_Projects/mlops/venv/lib/python3.10/site-packages/flask/templating.py", line 151, in render_template
|
24 |
+
return _render(app, template, context)
|
25 |
+
File "/Users/jagpreetsingh/ML_Projects/mlops/venv/lib/python3.10/site-packages/flask/templating.py", line 132, in _render
|
26 |
+
rv = template.render(context)
|
27 |
+
File "/Users/jagpreetsingh/ML_Projects/mlops/venv/lib/python3.10/site-packages/jinja2/environment.py", line 1301, in render
|
28 |
+
self.environment.handle_exception()
|
29 |
+
File "/Users/jagpreetsingh/ML_Projects/mlops/venv/lib/python3.10/site-packages/jinja2/environment.py", line 936, in handle_exception
|
30 |
+
raise rewrite_traceback_stack(source=source)
|
31 |
+
File "/Users/jagpreetsingh/ML_Projects/mlops/templates/home.html", line 6, in top-level template code
|
32 |
+
<form action="{{ url_for('predict_datapoint')}}" method="post">
|
33 |
+
File "/Users/jagpreetsingh/ML_Projects/mlops/venv/lib/python3.10/site-packages/flask/app.py", line 1697, in url_for
|
34 |
+
return self.handle_url_build_error(error, endpoint, values)
|
35 |
+
File "/Users/jagpreetsingh/ML_Projects/mlops/venv/lib/python3.10/site-packages/flask/app.py", line 1686, in url_for
|
36 |
+
rv = url_adapter.build( # type: ignore[union-attr]
|
37 |
+
File "/Users/jagpreetsingh/ML_Projects/mlops/venv/lib/python3.10/site-packages/werkzeug/routing/map.py", line 950, in build
|
38 |
+
raise BuildError(endpoint, values, method, self)
|
39 |
+
werkzeug.routing.exceptions.BuildError: Could not build url for endpoint 'predict_datapoint'. Did you mean 'predict_datapopint' instead?
|
40 |
+
[ 2023-09-12 03:18:00,489 ] 187 werkzeug - INFO - 127.0.0.1 - - [12/Sep/2023 03:18:00] "[35m[1mGET /predictdata HTTP/1.1[0m" 500 -
|
41 |
+
[ 2023-09-12 03:19:02,461 ] 187 werkzeug - INFO - 127.0.0.1 - - [12/Sep/2023 03:19:02] "GET / HTTP/1.1" 200 -
|
42 |
+
[ 2023-09-12 03:19:09,951 ] 1414 app - ERROR - Exception on /predictdata [GET]
|
43 |
+
Traceback (most recent call last):
|
44 |
+
File "/Users/jagpreetsingh/ML_Projects/mlops/venv/lib/python3.10/site-packages/flask/app.py", line 2190, in wsgi_app
|
45 |
+
response = self.full_dispatch_request()
|
46 |
+
File "/Users/jagpreetsingh/ML_Projects/mlops/venv/lib/python3.10/site-packages/flask/app.py", line 1486, in full_dispatch_request
|
47 |
+
rv = self.handle_user_exception(e)
|
48 |
+
File "/Users/jagpreetsingh/ML_Projects/mlops/venv/lib/python3.10/site-packages/flask/app.py", line 1484, in full_dispatch_request
|
49 |
+
rv = self.dispatch_request()
|
50 |
+
File "/Users/jagpreetsingh/ML_Projects/mlops/venv/lib/python3.10/site-packages/flask/app.py", line 1469, in dispatch_request
|
51 |
+
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
|
52 |
+
File "/Users/jagpreetsingh/ML_Projects/mlops/app.py", line 19, in predict_datapopint
|
53 |
+
return render_template('home.html')
|
54 |
+
File "/Users/jagpreetsingh/ML_Projects/mlops/venv/lib/python3.10/site-packages/flask/templating.py", line 151, in render_template
|
55 |
+
return _render(app, template, context)
|
56 |
+
File "/Users/jagpreetsingh/ML_Projects/mlops/venv/lib/python3.10/site-packages/flask/templating.py", line 132, in _render
|
57 |
+
rv = template.render(context)
|
58 |
+
File "/Users/jagpreetsingh/ML_Projects/mlops/venv/lib/python3.10/site-packages/jinja2/environment.py", line 1301, in render
|
59 |
+
self.environment.handle_exception()
|
60 |
+
File "/Users/jagpreetsingh/ML_Projects/mlops/venv/lib/python3.10/site-packages/jinja2/environment.py", line 936, in handle_exception
|
61 |
+
raise rewrite_traceback_stack(source=source)
|
62 |
+
File "/Users/jagpreetsingh/ML_Projects/mlops/templates/home.html", line 6, in top-level template code
|
63 |
+
<form action="{{ url_for('predict_datapoint')}}" method="post">
|
64 |
+
File "/Users/jagpreetsingh/ML_Projects/mlops/venv/lib/python3.10/site-packages/flask/app.py", line 1697, in url_for
|
65 |
+
return self.handle_url_build_error(error, endpoint, values)
|
66 |
+
File "/Users/jagpreetsingh/ML_Projects/mlops/venv/lib/python3.10/site-packages/flask/app.py", line 1686, in url_for
|
67 |
+
rv = url_adapter.build( # type: ignore[union-attr]
|
68 |
+
File "/Users/jagpreetsingh/ML_Projects/mlops/venv/lib/python3.10/site-packages/werkzeug/routing/map.py", line 950, in build
|
69 |
+
raise BuildError(endpoint, values, method, self)
|
70 |
+
werkzeug.routing.exceptions.BuildError: Could not build url for endpoint 'predict_datapoint'. Did you mean 'predict_datapopint' instead?
|
71 |
+
[ 2023-09-12 03:19:09,953 ] 187 werkzeug - INFO - 127.0.0.1 - - [12/Sep/2023 03:19:09] "[35m[1mGET /predictdata HTTP/1.1[0m" 500 -
|
logs/09_12_2023_03_20_53.log/09_12_2023_03_20_53.log
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[ 2023-09-12 03:20:54,266 ] 187 werkzeug - INFO - [31m[1mWARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.[0m
|
2 |
+
* Running on all addresses (0.0.0.0)
|
3 |
+
* Running on http://127.0.0.1:5000
|
4 |
+
* Running on http://10.0.0.91:5000
|
5 |
+
[ 2023-09-12 03:20:54,266 ] 187 werkzeug - INFO - [33mPress CTRL+C to quit[0m
|
logs/09_12_2023_03_21_12.log/09_12_2023_03_21_12.log
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[ 2023-09-12 03:21:12,956 ] 187 werkzeug - INFO - [31m[1mWARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.[0m
|
2 |
+
* Running on all addresses (0.0.0.0)
|
3 |
+
* Running on http://127.0.0.1:5000
|
4 |
+
* Running on http://10.0.0.91:5000
|
5 |
+
[ 2023-09-12 03:21:12,957 ] 187 werkzeug - INFO - [33mPress CTRL+C to quit[0m
|
6 |
+
[ 2023-09-12 03:21:12,957 ] 187 werkzeug - INFO - * Restarting with stat
|
7 |
+
[ 2023-09-12 03:22:41,653 ] 187 werkzeug - INFO - * Restarting with stat
|
logs/09_12_2023_03_21_13.log/09_12_2023_03_21_13.log
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[ 2023-09-12 03:21:13,502 ] 187 werkzeug - WARNING - * Debugger is active!
|
2 |
+
[ 2023-09-12 03:21:13,512 ] 187 werkzeug - INFO - * Debugger PIN: 107-465-610
|
3 |
+
[ 2023-09-12 03:21:33,318 ] 187 werkzeug - INFO - 127.0.0.1 - - [12/Sep/2023 03:21:33] "[35m[1mGET /predictdata HTTP/1.1[0m" 500 -
|
4 |
+
[ 2023-09-12 03:21:33,432 ] 187 werkzeug - INFO - 127.0.0.1 - - [12/Sep/2023 03:21:33] "GET /predictdata?__debugger__=yes&cmd=resource&f=debugger.js HTTP/1.1" 200 -
|
5 |
+
[ 2023-09-12 03:21:33,433 ] 187 werkzeug - INFO - 127.0.0.1 - - [12/Sep/2023 03:21:33] "GET /predictdata?__debugger__=yes&cmd=resource&f=style.css HTTP/1.1" 200 -
|
6 |
+
[ 2023-09-12 03:21:33,442 ] 187 werkzeug - INFO - 127.0.0.1 - - [12/Sep/2023 03:21:33] "GET /predictdata?__debugger__=yes&cmd=resource&f=console.png HTTP/1.1" 200 -
|
7 |
+
[ 2023-09-12 03:21:33,492 ] 187 werkzeug - INFO - 127.0.0.1 - - [12/Sep/2023 03:21:33] "[36mGET /predictdata?__debugger__=yes&cmd=resource&f=console.png HTTP/1.1[0m" 304 -
|
8 |
+
[ 2023-09-12 03:22:41,562 ] 187 werkzeug - INFO - * Detected change in '/Users/jagpreetsingh/ML_Projects/mlops/app.py', reloading
|
logs/09_12_2023_03_22_42.log/09_12_2023_03_22_42.log
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
[ 2023-09-12 03:22:42,401 ] 187 werkzeug - WARNING - * Debugger is active!
|
2 |
+
[ 2023-09-12 03:22:42,407 ] 187 werkzeug - INFO - * Debugger PIN: 107-465-610
|
logs/09_12_2023_03_22_48.log/09_12_2023_03_22_48.log
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[ 2023-09-12 03:22:48,529 ] 187 werkzeug - INFO - [31m[1mWARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.[0m
|
2 |
+
* Running on all addresses (0.0.0.0)
|
3 |
+
* Running on http://127.0.0.1:5000
|
4 |
+
* Running on http://10.0.0.91:5000
|
5 |
+
[ 2023-09-12 03:22:48,529 ] 187 werkzeug - INFO - [33mPress CTRL+C to quit[0m
|
6 |
+
[ 2023-09-12 03:22:48,529 ] 187 werkzeug - INFO - * Restarting with stat
|
7 |
+
[ 2023-09-12 03:22:49,064 ] 187 werkzeug - WARNING - * Debugger is active!
|
8 |
+
[ 2023-09-12 03:22:49,069 ] 187 werkzeug - INFO - * Debugger PIN: 107-465-610
|
9 |
+
[ 2023-09-12 03:22:51,889 ] 187 werkzeug - INFO - 127.0.0.1 - - [12/Sep/2023 03:22:51] "GET /predictdata HTTP/1.1" 200 -
|
10 |
+
[ 2023-09-12 03:23:16,308 ] 187 werkzeug - INFO - 127.0.0.1 - - [12/Sep/2023 03:23:16] "[35m[1mPOST /predictdata HTTP/1.1[0m" 500 -
|
11 |
+
[ 2023-09-12 03:23:16,393 ] 187 werkzeug - INFO - 127.0.0.1 - - [12/Sep/2023 03:23:16] "[36mGET /predictdata?__debugger__=yes&cmd=resource&f=debugger.js HTTP/1.1[0m" 304 -
|
12 |
+
[ 2023-09-12 03:23:16,396 ] 187 werkzeug - INFO - 127.0.0.1 - - [12/Sep/2023 03:23:16] "[36mGET /predictdata?__debugger__=yes&cmd=resource&f=style.css HTTP/1.1[0m" 304 -
|
13 |
+
[ 2023-09-12 03:23:16,403 ] 187 werkzeug - INFO - 127.0.0.1 - - [12/Sep/2023 03:23:16] "[36mGET /predictdata?__debugger__=yes&cmd=resource&f=console.png HTTP/1.1[0m" 304 -
|
14 |
+
[ 2023-09-12 03:25:36,978 ] 187 werkzeug - INFO - * Detected change in '/Users/jagpreetsingh/ML_Projects/mlops/src/pipeline/predict_pipeline.py', reloading
|
15 |
+
[ 2023-09-12 03:25:37,064 ] 187 werkzeug - INFO - * Restarting with stat
|
logs/09_12_2023_03_25_37.log/09_12_2023_03_25_37.log
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
[ 2023-09-12 03:25:37,744 ] 187 werkzeug - WARNING - * Debugger is active!
|
2 |
+
[ 2023-09-12 03:25:37,750 ] 187 werkzeug - INFO - * Debugger PIN: 107-465-610
|
logs/09_12_2023_03_25_42.log/09_12_2023_03_25_42.log
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[ 2023-09-12 03:25:42,465 ] 187 werkzeug - INFO - [31m[1mWARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.[0m
|
2 |
+
* Running on all addresses (0.0.0.0)
|
3 |
+
* Running on http://127.0.0.1:5000
|
4 |
+
* Running on http://10.0.0.91:5000
|
5 |
+
[ 2023-09-12 03:25:42,465 ] 187 werkzeug - INFO - [33mPress CTRL+C to quit[0m
|
6 |
+
[ 2023-09-12 03:25:42,467 ] 187 werkzeug - INFO - * Restarting with stat
|
7 |
+
[ 2023-09-12 03:25:43,062 ] 187 werkzeug - WARNING - * Debugger is active!
|
8 |
+
[ 2023-09-12 03:25:43,069 ] 187 werkzeug - INFO - * Debugger PIN: 107-465-610
|
9 |
+
[ 2023-09-12 03:25:47,704 ] 187 werkzeug - INFO - 127.0.0.1 - - [12/Sep/2023 03:25:47] "[35m[1mPOST /predictdata HTTP/1.1[0m" 500 -
|
10 |
+
[ 2023-09-12 03:25:47,811 ] 187 werkzeug - INFO - 127.0.0.1 - - [12/Sep/2023 03:25:47] "[36mGET /predictdata?__debugger__=yes&cmd=resource&f=debugger.js HTTP/1.1[0m" 304 -
|
11 |
+
[ 2023-09-12 03:25:47,811 ] 187 werkzeug - INFO - 127.0.0.1 - - [12/Sep/2023 03:25:47] "[36mGET /predictdata?__debugger__=yes&cmd=resource&f=style.css HTTP/1.1[0m" 304 -
|
12 |
+
[ 2023-09-12 03:25:47,820 ] 187 werkzeug - INFO - 127.0.0.1 - - [12/Sep/2023 03:25:47] "[36mGET /predictdata?__debugger__=yes&cmd=resource&f=console.png HTTP/1.1[0m" 304 -
|
13 |
+
[ 2023-09-12 03:25:53,415 ] 187 werkzeug - INFO - 127.0.0.1 - - [12/Sep/2023 03:25:53] "[35m[1mPOST /predictdata HTTP/1.1[0m" 500 -
|
14 |
+
[ 2023-09-12 03:25:53,503 ] 187 werkzeug - INFO - 127.0.0.1 - - [12/Sep/2023 03:25:53] "[36mGET /predictdata?__debugger__=yes&cmd=resource&f=style.css HTTP/1.1[0m" 304 -
|
15 |
+
[ 2023-09-12 03:25:53,503 ] 187 werkzeug - INFO - 127.0.0.1 - - [12/Sep/2023 03:25:53] "[36mGET /predictdata?__debugger__=yes&cmd=resource&f=debugger.js HTTP/1.1[0m" 304 -
|
16 |
+
[ 2023-09-12 03:25:53,517 ] 187 werkzeug - INFO - 127.0.0.1 - - [12/Sep/2023 03:25:53] "[36mGET /predictdata?__debugger__=yes&cmd=resource&f=console.png HTTP/1.1[0m" 304 -
|
17 |
+
[ 2023-09-12 03:26:14,314 ] 187 werkzeug - INFO - * Detected change in '/Users/jagpreetsingh/ML_Projects/mlops/src/pipeline/predict_pipeline.py', reloading
|
18 |
+
[ 2023-09-12 03:26:14,403 ] 187 werkzeug - INFO - * Restarting with stat
|
logs/09_12_2023_03_26_14.log/09_12_2023_03_26_14.log
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
[ 2023-09-12 03:26:14,989 ] 187 werkzeug - WARNING - * Debugger is active!
|
2 |
+
[ 2023-09-12 03:26:14,995 ] 187 werkzeug - INFO - * Debugger PIN: 107-465-610
|
logs/09_12_2023_03_26_24.log/09_12_2023_03_26_24.log
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[ 2023-09-12 03:26:24,995 ] 187 werkzeug - INFO - [31m[1mWARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.[0m
|
2 |
+
* Running on all addresses (0.0.0.0)
|
3 |
+
* Running on http://127.0.0.1:5000
|
4 |
+
* Running on http://10.0.0.91:5000
|
5 |
+
[ 2023-09-12 03:26:24,995 ] 187 werkzeug - INFO - [33mPress CTRL+C to quit[0m
|
6 |
+
[ 2023-09-12 03:26:24,995 ] 187 werkzeug - INFO - * Restarting with stat
|
logs/09_12_2023_03_26_25.log/09_12_2023_03_26_25.log
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[ 2023-09-12 03:26:25,546 ] 187 werkzeug - WARNING - * Debugger is active!
|
2 |
+
[ 2023-09-12 03:26:25,551 ] 187 werkzeug - INFO - * Debugger PIN: 107-465-610
|
3 |
+
[ 2023-09-12 03:26:30,655 ] 187 werkzeug - INFO - 127.0.0.1 - - [12/Sep/2023 03:26:30] "[35m[1mPOST /predictdata HTTP/1.1[0m" 500 -
|
4 |
+
[ 2023-09-12 03:26:30,758 ] 187 werkzeug - INFO - 127.0.0.1 - - [12/Sep/2023 03:26:30] "[36mGET /predictdata?__debugger__=yes&cmd=resource&f=style.css HTTP/1.1[0m" 304 -
|
5 |
+
[ 2023-09-12 03:26:30,761 ] 187 werkzeug - INFO - 127.0.0.1 - - [12/Sep/2023 03:26:30] "[36mGET /predictdata?__debugger__=yes&cmd=resource&f=debugger.js HTTP/1.1[0m" 304 -
|
6 |
+
[ 2023-09-12 03:26:30,769 ] 187 werkzeug - INFO - 127.0.0.1 - - [12/Sep/2023 03:26:30] "[36mGET /predictdata?__debugger__=yes&cmd=resource&f=console.png HTTP/1.1[0m" 304 -
|
logs/09_12_2023_03_29_04.log/09_12_2023_03_29_04.log
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[ 2023-09-12 03:29:04,858 ] 187 werkzeug - INFO - [31m[1mWARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.[0m
|
2 |
+
* Running on all addresses (0.0.0.0)
|
3 |
+
* Running on http://127.0.0.1:5000
|
4 |
+
* Running on http://10.0.0.91:5000
|
5 |
+
[ 2023-09-12 03:29:04,858 ] 187 werkzeug - INFO - [33mPress CTRL+C to quit[0m
|
6 |
+
[ 2023-09-12 03:29:04,859 ] 187 werkzeug - INFO - * Restarting with stat
|
7 |
+
[ 2023-09-12 03:33:25,317 ] 187 werkzeug - INFO - * Restarting with stat
|
8 |
+
[ 2023-09-12 03:35:30,763 ] 187 werkzeug - INFO - * Restarting with stat
|
logs/09_12_2023_03_29_05.log/09_12_2023_03_29_05.log
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[ 2023-09-12 03:29:05,436 ] 187 werkzeug - WARNING - * Debugger is active!
|
2 |
+
[ 2023-09-12 03:29:05,443 ] 187 werkzeug - INFO - * Debugger PIN: 107-465-610
|
3 |
+
[ 2023-09-12 03:29:09,382 ] 187 werkzeug - INFO - 127.0.0.1 - - [12/Sep/2023 03:29:09] "[35m[1mPOST /predictdata HTTP/1.1[0m" 500 -
|
4 |
+
[ 2023-09-12 03:29:09,453 ] 187 werkzeug - INFO - 127.0.0.1 - - [12/Sep/2023 03:29:09] "[36mGET /predictdata?__debugger__=yes&cmd=resource&f=debugger.js HTTP/1.1[0m" 304 -
|
5 |
+
[ 2023-09-12 03:29:09,453 ] 187 werkzeug - INFO - 127.0.0.1 - - [12/Sep/2023 03:29:09] "[36mGET /predictdata?__debugger__=yes&cmd=resource&f=style.css HTTP/1.1[0m" 304 -
|
6 |
+
[ 2023-09-12 03:29:09,463 ] 187 werkzeug - INFO - 127.0.0.1 - - [12/Sep/2023 03:29:09] "[36mGET /predictdata?__debugger__=yes&cmd=resource&f=console.png HTTP/1.1[0m" 304 -
|
7 |
+
[ 2023-09-12 03:29:26,118 ] 187 werkzeug - INFO - 127.0.0.1 - - [12/Sep/2023 03:29:26] "GET /predictdata HTTP/1.1" 200 -
|
8 |
+
[ 2023-09-12 03:33:25,226 ] 187 werkzeug - INFO - * Detected change in '/Users/jagpreetsingh/ML_Projects/mlops/app.py', reloading
|
logs/09_12_2023_03_33_25.log/09_12_2023_03_33_25.log
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[ 2023-09-12 03:33:26,000 ] 187 werkzeug - WARNING - * Debugger is active!
|
2 |
+
[ 2023-09-12 03:33:26,007 ] 187 werkzeug - INFO - * Debugger PIN: 107-465-610
|
3 |
+
[ 2023-09-12 03:33:49,577 ] 187 werkzeug - INFO - 127.0.0.1 - - [12/Sep/2023 03:33:49] "[35m[1mPOST /predictdata HTTP/1.1[0m" 500 -
|
4 |
+
[ 2023-09-12 03:33:49,663 ] 187 werkzeug - INFO - 127.0.0.1 - - [12/Sep/2023 03:33:49] "[36mGET /predictdata?__debugger__=yes&cmd=resource&f=style.css HTTP/1.1[0m" 304 -
|
5 |
+
[ 2023-09-12 03:33:49,665 ] 187 werkzeug - INFO - 127.0.0.1 - - [12/Sep/2023 03:33:49] "[36mGET /predictdata?__debugger__=yes&cmd=resource&f=debugger.js HTTP/1.1[0m" 304 -
|
6 |
+
[ 2023-09-12 03:33:49,675 ] 187 werkzeug - INFO - 127.0.0.1 - - [12/Sep/2023 03:33:49] "[36mGET /predictdata?__debugger__=yes&cmd=resource&f=console.png HTTP/1.1[0m" 304 -
|
7 |
+
[ 2023-09-12 03:35:30,668 ] 187 werkzeug - INFO - * Detected change in '/Users/jagpreetsingh/ML_Projects/mlops/src/components/data_transformation.py', reloading
|
logs/09_12_2023_03_35_31.log/09_12_2023_03_35_31.log
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
[ 2023-09-12 03:35:31,373 ] 187 werkzeug - WARNING - * Debugger is active!
|
2 |
+
[ 2023-09-12 03:35:31,378 ] 187 werkzeug - INFO - * Debugger PIN: 107-465-610
|
logs/09_12_2023_03_36_33.log/09_12_2023_03_36_33.log
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[ 2023-09-12 03:36:34,217 ] 187 werkzeug - INFO - [31m[1mWARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.[0m
|
2 |
+
* Running on all addresses (0.0.0.0)
|
3 |
+
* Running on http://127.0.0.1:5000
|
4 |
+
* Running on http://10.0.0.91:5000
|
5 |
+
[ 2023-09-12 03:36:34,218 ] 187 werkzeug - INFO - [33mPress CTRL+C to quit[0m
|
6 |
+
[ 2023-09-12 03:36:34,219 ] 187 werkzeug - INFO - * Restarting with stat
|
logs/09_12_2023_03_36_34.log/09_12_2023_03_36_34.log
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[ 2023-09-12 03:36:34,837 ] 187 werkzeug - WARNING - * Debugger is active!
|
2 |
+
[ 2023-09-12 03:36:34,843 ] 187 werkzeug - INFO - * Debugger PIN: 107-465-610
|
3 |
+
[ 2023-09-12 03:36:39,744 ] 187 werkzeug - INFO - 127.0.0.1 - - [12/Sep/2023 03:36:39] "[35m[1mPOST /predictdata HTTP/1.1[0m" 500 -
|
4 |
+
[ 2023-09-12 03:36:39,822 ] 187 werkzeug - INFO - 127.0.0.1 - - [12/Sep/2023 03:36:39] "[36mGET /predictdata?__debugger__=yes&cmd=resource&f=style.css HTTP/1.1[0m" 304 -
|
5 |
+
[ 2023-09-12 03:36:39,823 ] 187 werkzeug - INFO - 127.0.0.1 - - [12/Sep/2023 03:36:39] "[36mGET /predictdata?__debugger__=yes&cmd=resource&f=debugger.js HTTP/1.1[0m" 304 -
|
6 |
+
[ 2023-09-12 03:36:39,837 ] 187 werkzeug - INFO - 127.0.0.1 - - [12/Sep/2023 03:36:39] "[36mGET /predictdata?__debugger__=yes&cmd=resource&f=console.png HTTP/1.1[0m" 304 -
|
logs/09_13_2023_00_51_25.log/09_13_2023_00_51_25.log
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[ 2023-09-13 00:51:26,628 ] 187 werkzeug - INFO - [31m[1mWARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.[0m
|
2 |
+
* Running on all addresses (0.0.0.0)
|
3 |
+
* Running on http://127.0.0.1:5000
|
4 |
+
* Running on http://10.0.0.91:5000
|
5 |
+
[ 2023-09-13 00:51:26,628 ] 187 werkzeug - INFO - [33mPress CTRL+C to quit[0m
|
6 |
+
[ 2023-09-13 00:51:26,630 ] 187 werkzeug - INFO - * Restarting with stat
|
7 |
+
[ 2023-09-13 00:52:34,176 ] 187 werkzeug - INFO - * Restarting with stat
|
8 |
+
[ 2023-09-13 00:52:38,077 ] 187 werkzeug - INFO - * Restarting with stat
|
9 |
+
[ 2023-09-13 00:52:40,820 ] 187 werkzeug - INFO - * Restarting with stat
|
logs/09_13_2023_00_51_27.log/09_13_2023_00_51_27.log
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[ 2023-09-13 00:51:27,249 ] 187 werkzeug - WARNING - * Debugger is active!
|
2 |
+
[ 2023-09-13 00:51:27,257 ] 187 werkzeug - INFO - * Debugger PIN: 107-465-610
|
3 |
+
[ 2023-09-13 00:51:32,524 ] 187 werkzeug - INFO - 127.0.0.1 - - [13/Sep/2023 00:51:32] "GET / HTTP/1.1" 200 -
|
4 |
+
[ 2023-09-13 00:51:32,658 ] 187 werkzeug - INFO - 127.0.0.1 - - [13/Sep/2023 00:51:32] "[33mGET /apple-touch-icon-precomposed.png HTTP/1.1[0m" 404 -
|
5 |
+
[ 2023-09-13 00:51:32,662 ] 187 werkzeug - INFO - 127.0.0.1 - - [13/Sep/2023 00:51:32] "[33mGET /apple-touch-icon.png HTTP/1.1[0m" 404 -
|
6 |
+
[ 2023-09-13 00:51:51,012 ] 187 werkzeug - INFO - 127.0.0.1 - - [13/Sep/2023 00:51:51] "GET / HTTP/1.1" 200 -
|
7 |
+
[ 2023-09-13 00:51:52,277 ] 187 werkzeug - INFO - 127.0.0.1 - - [13/Sep/2023 00:51:52] "GET /predictdata HTTP/1.1" 200 -
|
8 |
+
[ 2023-09-13 00:52:10,565 ] 187 werkzeug - INFO - 127.0.0.1 - - [13/Sep/2023 00:52:10] "[35m[1mPOST /predictdata HTTP/1.1[0m" 500 -
|
9 |
+
[ 2023-09-13 00:52:10,686 ] 187 werkzeug - INFO - 127.0.0.1 - - [13/Sep/2023 00:52:10] "[36mGET /predictdata?__debugger__=yes&cmd=resource&f=debugger.js HTTP/1.1[0m" 304 -
|
10 |
+
[ 2023-09-13 00:52:10,689 ] 187 werkzeug - INFO - 127.0.0.1 - - [13/Sep/2023 00:52:10] "[36mGET /predictdata?__debugger__=yes&cmd=resource&f=style.css HTTP/1.1[0m" 304 -
|
11 |
+
[ 2023-09-13 00:52:10,707 ] 187 werkzeug - INFO - 127.0.0.1 - - [13/Sep/2023 00:52:10] "[36mGET /predictdata?__debugger__=yes&cmd=resource&f=console.png HTTP/1.1[0m" 304 -
|
12 |
+
[ 2023-09-13 00:52:34,057 ] 187 werkzeug - INFO - * Detected change in '/Users/jagpreetsingh/ML_Projects/mlops/src/pipeline/predict_pipeline.py', reloading
|
logs/09_13_2023_00_52_34.log/09_13_2023_00_52_34.log
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
[ 2023-09-13 00:52:34,886 ] 187 werkzeug - WARNING - * Debugger is active!
|
2 |
+
[ 2023-09-13 00:52:34,893 ] 187 werkzeug - INFO - * Debugger PIN: 107-465-610
|
3 |
+
[ 2023-09-13 00:52:37,993 ] 187 werkzeug - INFO - * Detected change in '/Users/jagpreetsingh/ML_Projects/mlops/src/pipeline/predict_pipeline.py', reloading
|
logs/09_13_2023_00_52_38.log/09_13_2023_00_52_38.log
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
[ 2023-09-13 00:52:38,649 ] 187 werkzeug - WARNING - * Debugger is active!
|
2 |
+
[ 2023-09-13 00:52:38,654 ] 187 werkzeug - INFO - * Debugger PIN: 107-465-610
|
3 |
+
[ 2023-09-13 00:52:40,738 ] 187 werkzeug - INFO - * Detected change in '/Users/jagpreetsingh/ML_Projects/mlops/src/pipeline/predict_pipeline.py', reloading
|
logs/09_13_2023_00_52_41.log/09_13_2023_00_52_41.log
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
[ 2023-09-13 00:52:41,398 ] 187 werkzeug - WARNING - * Debugger is active!
|
2 |
+
[ 2023-09-13 00:52:41,402 ] 187 werkzeug - INFO - * Debugger PIN: 107-465-610
|
logs/09_13_2023_00_52_48.log/09_13_2023_00_52_48.log
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[ 2023-09-13 00:52:48,448 ] 187 werkzeug - INFO - [31m[1mWARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.[0m
|
2 |
+
* Running on all addresses (0.0.0.0)
|
3 |
+
* Running on http://127.0.0.1:5000
|
4 |
+
* Running on http://10.0.0.91:5000
|
5 |
+
[ 2023-09-13 00:52:48,448 ] 187 werkzeug - INFO - [33mPress CTRL+C to quit[0m
|
6 |
+
[ 2023-09-13 00:52:48,449 ] 187 werkzeug - INFO - * Restarting with stat
|
7 |
+
[ 2023-09-13 00:52:49,014 ] 187 werkzeug - WARNING - * Debugger is active!
|
8 |
+
[ 2023-09-13 00:52:49,021 ] 187 werkzeug - INFO - * Debugger PIN: 107-465-610
|
9 |
+
[ 2023-09-13 00:52:57,063 ] 187 werkzeug - INFO - 127.0.0.1 - - [13/Sep/2023 00:52:57] "[35m[1mPOST /predictdata HTTP/1.1[0m" 500 -
|
10 |
+
[ 2023-09-13 00:52:57,162 ] 187 werkzeug - INFO - 127.0.0.1 - - [13/Sep/2023 00:52:57] "[36mGET /predictdata?__debugger__=yes&cmd=resource&f=style.css HTTP/1.1[0m" 304 -
|
11 |
+
[ 2023-09-13 00:52:57,162 ] 187 werkzeug - INFO - 127.0.0.1 - - [13/Sep/2023 00:52:57] "[36mGET /predictdata?__debugger__=yes&cmd=resource&f=debugger.js HTTP/1.1[0m" 304 -
|
12 |
+
[ 2023-09-13 00:52:57,186 ] 187 werkzeug - INFO - 127.0.0.1 - - [13/Sep/2023 00:52:57] "[36mGET /predictdata?__debugger__=yes&cmd=resource&f=console.png HTTP/1.1[0m" 304 -
|
13 |
+
[ 2023-09-13 00:53:10,845 ] 187 werkzeug - INFO - * Detected change in '/Users/jagpreetsingh/ML_Projects/mlops/src/pipeline/predict_pipeline.py', reloading
|
14 |
+
[ 2023-09-13 00:53:10,931 ] 187 werkzeug - INFO - * Restarting with stat
|
15 |
+
[ 2023-09-13 00:53:15,839 ] 187 werkzeug - INFO - * Restarting with stat
|
16 |
+
[ 2023-09-13 00:53:17,543 ] 187 werkzeug - INFO - * Restarting with stat
|
logs/09_13_2023_00_53_11.log/09_13_2023_00_53_11.log
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
[ 2023-09-13 00:53:11,589 ] 187 werkzeug - WARNING - * Debugger is active!
|
2 |
+
[ 2023-09-13 00:53:11,593 ] 187 werkzeug - INFO - * Debugger PIN: 107-465-610
|
3 |
+
[ 2023-09-13 00:53:15,752 ] 187 werkzeug - INFO - * Detected change in '/Users/jagpreetsingh/ML_Projects/mlops/src/pipeline/predict_pipeline.py', reloading
|
logs/09_13_2023_00_53_16.log/09_13_2023_00_53_16.log
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
[ 2023-09-13 00:53:16,398 ] 187 werkzeug - WARNING - * Debugger is active!
|
2 |
+
[ 2023-09-13 00:53:16,403 ] 187 werkzeug - INFO - * Debugger PIN: 107-465-610
|
3 |
+
[ 2023-09-13 00:53:17,462 ] 187 werkzeug - INFO - * Detected change in '/Users/jagpreetsingh/ML_Projects/mlops/src/pipeline/predict_pipeline.py', reloading
|
logs/09_13_2023_00_53_18.log/09_13_2023_00_53_18.log
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
[ 2023-09-13 00:53:18,162 ] 187 werkzeug - WARNING - * Debugger is active!
|
2 |
+
[ 2023-09-13 00:53:18,167 ] 187 werkzeug - INFO - * Debugger PIN: 107-465-610
|
logs/09_13_2023_00_53_43.log/09_13_2023_00_53_43.log
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[ 2023-09-13 00:53:43,538 ] 187 werkzeug - INFO - [31m[1mWARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.[0m
|
2 |
+
* Running on all addresses (0.0.0.0)
|
3 |
+
* Running on http://127.0.0.1:5000
|
4 |
+
* Running on http://10.0.0.91:5000
|
5 |
+
[ 2023-09-13 00:53:43,538 ] 187 werkzeug - INFO - [33mPress CTRL+C to quit[0m
|
6 |
+
[ 2023-09-13 00:53:43,539 ] 187 werkzeug - INFO - * Restarting with stat
|
7 |
+
[ 2023-09-13 00:53:44,120 ] 187 werkzeug - WARNING - * Debugger is active!
|
8 |
+
[ 2023-09-13 00:53:44,125 ] 187 werkzeug - INFO - * Debugger PIN: 107-465-610
|
9 |
+
[ 2023-09-13 00:53:50,359 ] 187 werkzeug - INFO - 127.0.0.1 - - [13/Sep/2023 00:53:50] "POST /predictdata HTTP/1.1" 200 -
|
10 |
+
[ 2023-09-13 00:54:26,239 ] 187 werkzeug - INFO - 127.0.0.1 - - [13/Sep/2023 00:54:26] "POST /predictdata HTTP/1.1" 200 -
|
11 |
+
[ 2023-09-13 01:03:25,016 ] 187 werkzeug - INFO - 127.0.0.1 - - [13/Sep/2023 01:03:25] "POST /predictdata HTTP/1.1" 200 -
|
src/__pycache__/utils.cpython-310.pyc
CHANGED
Binary files a/src/__pycache__/utils.cpython-310.pyc and b/src/__pycache__/utils.cpython-310.pyc differ
|
|
src/components/data_transformation.py
CHANGED
@@ -21,7 +21,7 @@ class DataTransformationConfig:
|
|
21 |
class DataTransformation:
|
22 |
def __init__(self):
|
23 |
self.data_transformation_config = DataTransformationConfig()
|
24 |
-
self.numerical_columns = ['
|
25 |
self.categorical_columns = ['gender',
|
26 |
'race_ethnicity',
|
27 |
'parental_level_of_education',
|
|
|
21 |
class DataTransformation:
|
22 |
def __init__(self):
|
23 |
self.data_transformation_config = DataTransformationConfig()
|
24 |
+
self.numerical_columns = ['writting_score','reading_score']
|
25 |
self.categorical_columns = ['gender',
|
26 |
'race_ethnicity',
|
27 |
'parental_level_of_education',
|
src/pipeline/__pycache__/__init__.cpython-310.pyc
ADDED
Binary file (156 Bytes). View file
|
|
src/pipeline/__pycache__/predict_pipeline.cpython-310.pyc
ADDED
Binary file (1.97 kB). View file
|
|
src/pipeline/predict_pipeline.py
CHANGED
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import sys
|
2 |
+
from typing import Any
|
3 |
+
import pandas as pd
|
4 |
+
|
5 |
+
from src.exception import CustomException
|
6 |
+
from src.utils import load_object
|
7 |
+
|
8 |
+
|
9 |
+
|
10 |
+
class PredictPipeline:
|
11 |
+
def __init__(self) -> None:
|
12 |
+
pass
|
13 |
+
|
14 |
+
def predict(self,features):
|
15 |
+
try:
|
16 |
+
model_path = "artifacts/model.pkl"
|
17 |
+
preprocessor_path = 'artifacts/preprocessor.pkl'
|
18 |
+
|
19 |
+
model = load_object(file_path = model_path)
|
20 |
+
preprocessor = load_object(file_path=preprocessor_path)
|
21 |
+
|
22 |
+
data_scaled = preprocessor.transform(features)
|
23 |
+
|
24 |
+
preds = model.predict(data_scaled)
|
25 |
+
|
26 |
+
return preds
|
27 |
+
except Exception as e:
|
28 |
+
raise CustomException(e, sys)
|
29 |
+
|
30 |
+
|
31 |
+
class CustomData:
|
32 |
+
def __init__(self,
|
33 |
+
gender:str,
|
34 |
+
race_ethnicity:str,
|
35 |
+
parental_level_of_education,
|
36 |
+
lunch:str,
|
37 |
+
test_preparation_course:str,
|
38 |
+
reading_score:int,
|
39 |
+
writing_score:int,
|
40 |
+
|
41 |
+
):
|
42 |
+
self.gender = gender
|
43 |
+
self.race_ethnicity = race_ethnicity
|
44 |
+
self.parental_level_of_education = parental_level_of_education
|
45 |
+
self.lunch = lunch
|
46 |
+
self.test_preparation_course = test_preparation_course
|
47 |
+
self.reading_score = reading_score
|
48 |
+
self.writing_score = writing_score
|
49 |
+
|
50 |
+
def get_data_as_data_frame(self):
|
51 |
+
try:
|
52 |
+
custom_data_input_data = {
|
53 |
+
"gender":[self.gender],
|
54 |
+
"race_ethnicity":[self.race_ethnicity],
|
55 |
+
"parental_level_of_education":[self.parental_level_of_education],
|
56 |
+
"lunch":[self.lunch],
|
57 |
+
"test_preparation_course":[self.test_preparation_course],
|
58 |
+
"reading_score":[self.reading_score],
|
59 |
+
"writing_score":[self.writing_score]
|
60 |
+
|
61 |
+
}
|
62 |
+
return pd.DataFrame(custom_data_input_data)
|
63 |
+
except Exception as e:
|
64 |
+
raise CustomException(e, sys)
|
src/utils.py
CHANGED
@@ -52,4 +52,12 @@ def evaluate_models(X_train, y_train, X_test, y_test, models,params):
|
|
52 |
|
53 |
|
54 |
except Exception as e:
|
55 |
-
raise ConnectionAbortedError(e,sys)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
|
53 |
|
54 |
except Exception as e:
|
55 |
+
raise ConnectionAbortedError(e,sys)
|
56 |
+
|
57 |
+
def load_object(file_path):
|
58 |
+
try:
|
59 |
+
with open(file_path,'rb') as file_obj:
|
60 |
+
return pickle.load(file_obj)
|
61 |
+
|
62 |
+
except Exception as e:
|
63 |
+
raise CustomException(e, sys)
|
templates/home.html
ADDED
@@ -0,0 +1,111 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<html>
|
2 |
+
<body>
|
3 |
+
<div class="login">
|
4 |
+
<h1>Student Exam Performance Indicator</h1>
|
5 |
+
|
6 |
+
<form action="{{ url_for('predict_datapoint')}}" method="post">
|
7 |
+
<h1>
|
8 |
+
<legend>Student Exam Performance Prediction</legend>
|
9 |
+
</h1>
|
10 |
+
<div class="mb-3">
|
11 |
+
<label class="form-label">Gender</label>
|
12 |
+
<select class="form-control" name="gender" placeholder="Enter you Gender" required>
|
13 |
+
<option class="placeholder" selected disabled value="">Select your Gender</option>
|
14 |
+
<option value="male">
|
15 |
+
Male
|
16 |
+
</option>
|
17 |
+
<option value="female">
|
18 |
+
Female
|
19 |
+
</option>
|
20 |
+
</select>
|
21 |
+
</div>
|
22 |
+
<div class="mb-3">
|
23 |
+
<label class="form-label">Race or Ethnicity</label>
|
24 |
+
<select class="form-control" name="ethnicity" placeholder="Enter you ethnicity" required>
|
25 |
+
<option class="placeholder" selected disabled value="">Select Ethnicity</option>
|
26 |
+
<option value="group A">
|
27 |
+
Group A
|
28 |
+
</option>
|
29 |
+
<option value="group B">
|
30 |
+
Group B
|
31 |
+
</option>
|
32 |
+
<option value="group C">
|
33 |
+
Group C
|
34 |
+
</option>
|
35 |
+
<option value="group D">
|
36 |
+
Group D
|
37 |
+
</option>
|
38 |
+
<option value="group E">
|
39 |
+
Group E
|
40 |
+
</option>
|
41 |
+
</select>
|
42 |
+
</div>
|
43 |
+
<div class="mb-3">
|
44 |
+
<label class="form-label">Parental Level of Education</label>
|
45 |
+
<select class="form-control" name="parental_level_of_education"
|
46 |
+
placeholder="Enter you Parent Education" required>
|
47 |
+
<option class="placeholder" selected disabled value="">Select Parent Education</option>
|
48 |
+
<option value="associate's degree">
|
49 |
+
associate's degree
|
50 |
+
</option>
|
51 |
+
<option value="bachelor's degree">
|
52 |
+
bachelor's degree
|
53 |
+
</option>
|
54 |
+
<option value="high school">
|
55 |
+
high school
|
56 |
+
</option>
|
57 |
+
<option value="master's degree">
|
58 |
+
master's degree
|
59 |
+
</option>
|
60 |
+
<option value="some college">
|
61 |
+
some college
|
62 |
+
</option>
|
63 |
+
<option value="some high school">
|
64 |
+
some high school
|
65 |
+
</option>
|
66 |
+
</select>
|
67 |
+
</div>
|
68 |
+
<div class="mb-3">
|
69 |
+
<label class="form-label">Lunch Type</label>
|
70 |
+
<select class="form-control" name="lunch" placeholder="Enter you Lunch" required>
|
71 |
+
<option class="placeholder" selected disabled value="">Select Lunch Type</option>
|
72 |
+
<option value="free/reduced">
|
73 |
+
free/reduced
|
74 |
+
</option>
|
75 |
+
<option value="standard">
|
76 |
+
standard
|
77 |
+
</option>
|
78 |
+
</select>
|
79 |
+
</div>
|
80 |
+
<div class="mb-3">
|
81 |
+
<label class="form-label">Test preparation Course</label>
|
82 |
+
<select class="form-control" name="test_preparation_course" placeholder="Enter you Course"
|
83 |
+
required>
|
84 |
+
<option class="placeholder" selected disabled value="">Select Test_course</option>
|
85 |
+
<option value="none">
|
86 |
+
None
|
87 |
+
</option>
|
88 |
+
<option value="completed">
|
89 |
+
Completed
|
90 |
+
</option>
|
91 |
+
</select>
|
92 |
+
</div>
|
93 |
+
<div class="mb-3">
|
94 |
+
<label class="form-label">Writing Score out of 100</label>
|
95 |
+
<input class="form-control" type="number" name="reading_score"
|
96 |
+
placeholder="Enter your Writing Score score" min='0' max='100' />
|
97 |
+
</div>
|
98 |
+
<div class="mb-3">
|
99 |
+
<label class="form-label">Reading Score out of 100</label>
|
100 |
+
<input class="form-control" type="number" name="writing_score"
|
101 |
+
placeholder="Enter your Reading Score" min='0' max='100' />
|
102 |
+
</div>
|
103 |
+
<div class="mb-3">
|
104 |
+
<input class="btn btn-primary" type="submit" value="Predict your Maths Score" required />
|
105 |
+
</div>
|
106 |
+
</form>
|
107 |
+
<h2>
|
108 |
+
THE prediction is {{results}}
|
109 |
+
</h2>
|
110 |
+
<body>
|
111 |
+
</html>
|
templates/index.html
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
<h1>Welcome</h1>
|