AV1DA commited on
Commit
a349f54
·
verified ·
1 Parent(s): c005026

Upload 36 files

Browse files

This is a model and whole project with front end design that predicts the flood of BAGMATI RIVER with the Rainfall amount and River Level

Files changed (37) hide show
  1. .gitattributes +1 -0
  2. FPS_Proj/FPS_Proj/__init__.py +0 -0
  3. FPS_Proj/FPS_Proj/__pycache__/__init__.cpython-311.pyc +0 -0
  4. FPS_Proj/FPS_Proj/__pycache__/settings.cpython-311.pyc +0 -0
  5. FPS_Proj/FPS_Proj/__pycache__/urls.cpython-311.pyc +0 -0
  6. FPS_Proj/FPS_Proj/__pycache__/wsgi.cpython-311.pyc +0 -0
  7. FPS_Proj/FPS_Proj/asgi.py +16 -0
  8. FPS_Proj/FPS_Proj/settings.py +123 -0
  9. FPS_Proj/FPS_Proj/urls.py +6 -0
  10. FPS_Proj/FPS_Proj/wsgi.py +16 -0
  11. FPS_Proj/Resources/FPS_Model.ipynb +1206 -0
  12. FPS_Proj/Resources/model.joblib +3 -0
  13. FPS_Proj/Resources/newfin.xls +1041 -0
  14. FPS_Proj/Resources/test_data.xls +209 -0
  15. FPS_Proj/db.sqlite3 +3 -0
  16. FPS_Proj/manage.py +22 -0
  17. FPS_Proj/predictor/__init__.py +0 -0
  18. FPS_Proj/predictor/__pycache__/__init__.cpython-311.pyc +0 -0
  19. FPS_Proj/predictor/__pycache__/admin.cpython-311.pyc +0 -0
  20. FPS_Proj/predictor/__pycache__/apps.cpython-311.pyc +0 -0
  21. FPS_Proj/predictor/__pycache__/forms.cpython-311.pyc +0 -0
  22. FPS_Proj/predictor/__pycache__/models.cpython-311.pyc +0 -0
  23. FPS_Proj/predictor/__pycache__/urls.cpython-311.pyc +0 -0
  24. FPS_Proj/predictor/__pycache__/views.cpython-311.pyc +0 -0
  25. FPS_Proj/predictor/admin.py +3 -0
  26. FPS_Proj/predictor/apps.py +6 -0
  27. FPS_Proj/predictor/forms.py +6 -0
  28. FPS_Proj/predictor/migrations/__init__.py +0 -0
  29. FPS_Proj/predictor/migrations/__pycache__/__init__.cpython-311.pyc +0 -0
  30. FPS_Proj/predictor/model.joblib +3 -0
  31. FPS_Proj/predictor/models.py +3 -0
  32. FPS_Proj/predictor/templates/predictor/predict.html +101 -0
  33. FPS_Proj/predictor/tests.py +3 -0
  34. FPS_Proj/predictor/urls.py +6 -0
  35. FPS_Proj/predictor/views.py +56 -0
  36. FPS_Proj/readme.txt +8 -0
  37. FPS_Proj/requirements.txt +4 -0
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ FPS_Proj/db.sqlite3 filter=lfs diff=lfs merge=lfs -text
FPS_Proj/FPS_Proj/__init__.py ADDED
File without changes
FPS_Proj/FPS_Proj/__pycache__/__init__.cpython-311.pyc ADDED
Binary file (185 Bytes). View file
 
FPS_Proj/FPS_Proj/__pycache__/settings.cpython-311.pyc ADDED
Binary file (2.59 kB). View file
 
FPS_Proj/FPS_Proj/__pycache__/urls.cpython-311.pyc ADDED
Binary file (367 Bytes). View file
 
FPS_Proj/FPS_Proj/__pycache__/wsgi.cpython-311.pyc ADDED
Binary file (709 Bytes). View file
 
FPS_Proj/FPS_Proj/asgi.py ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ ASGI config for FPS_Proj project.
3
+
4
+ It exposes the ASGI callable as a module-level variable named ``application``.
5
+
6
+ For more information on this file, see
7
+ https://docs.djangoproject.com/en/5.2/howto/deployment/asgi/
8
+ """
9
+
10
+ import os
11
+
12
+ from django.core.asgi import get_asgi_application
13
+
14
+ os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'FPS_Proj.settings')
15
+
16
+ application = get_asgi_application()
FPS_Proj/FPS_Proj/settings.py ADDED
@@ -0,0 +1,123 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ Django settings for FPS_Proj project.
3
+
4
+ Generated by 'django-admin startproject' using Django 5.2.1.
5
+
6
+ For more information on this file, see
7
+ https://docs.djangoproject.com/en/5.2/topics/settings/
8
+
9
+ For the full list of settings and their values, see
10
+ https://docs.djangoproject.com/en/5.2/ref/settings/
11
+ """
12
+
13
+ from pathlib import Path
14
+
15
+ # Build paths inside the project like this: BASE_DIR / 'subdir'.
16
+ BASE_DIR = Path(__file__).resolve().parent.parent
17
+
18
+
19
+ # Quick-start development settings - unsuitable for production
20
+ # See https://docs.djangoproject.com/en/5.2/howto/deployment/checklist/
21
+
22
+ # SECURITY WARNING: keep the secret key used in production secret!
23
+ SECRET_KEY = 'django-insecure-@az&l2*73*r627#abgmy9z__gcgf1ou&91xusr79e-)60a!6q#'
24
+
25
+ # SECURITY WARNING: don't run with debug turned on in production!
26
+ DEBUG = True
27
+
28
+ ALLOWED_HOSTS = []
29
+
30
+
31
+ # Application definition
32
+
33
+ INSTALLED_APPS = [
34
+ 'django.contrib.admin',
35
+ 'django.contrib.auth',
36
+ 'django.contrib.contenttypes',
37
+ 'django.contrib.sessions',
38
+ 'django.contrib.messages',
39
+ 'django.contrib.staticfiles',
40
+ 'predictor',
41
+ ]
42
+
43
+ MIDDLEWARE = [
44
+ 'django.middleware.security.SecurityMiddleware',
45
+ 'django.contrib.sessions.middleware.SessionMiddleware',
46
+ 'django.middleware.common.CommonMiddleware',
47
+ 'django.middleware.csrf.CsrfViewMiddleware',
48
+ 'django.contrib.auth.middleware.AuthenticationMiddleware',
49
+ 'django.contrib.messages.middleware.MessageMiddleware',
50
+ 'django.middleware.clickjacking.XFrameOptionsMiddleware',
51
+ ]
52
+
53
+ ROOT_URLCONF = 'FPS_Proj.urls'
54
+
55
+ TEMPLATES = [
56
+ {
57
+ 'BACKEND': 'django.template.backends.django.DjangoTemplates',
58
+ 'DIRS': [],
59
+ 'APP_DIRS': True,
60
+ 'OPTIONS': {
61
+ 'context_processors': [
62
+ 'django.template.context_processors.request',
63
+ 'django.contrib.auth.context_processors.auth',
64
+ 'django.contrib.messages.context_processors.messages',
65
+ ],
66
+ },
67
+ },
68
+ ]
69
+
70
+ WSGI_APPLICATION = 'FPS_Proj.wsgi.application'
71
+
72
+
73
+ # Database
74
+ # https://docs.djangoproject.com/en/5.2/ref/settings/#databases
75
+
76
+ DATABASES = {
77
+ 'default': {
78
+ 'ENGINE': 'django.db.backends.sqlite3',
79
+ 'NAME': BASE_DIR / 'db.sqlite3',
80
+ }
81
+ }
82
+
83
+
84
+ # Password validation
85
+ # https://docs.djangoproject.com/en/5.2/ref/settings/#auth-password-validators
86
+
87
+ AUTH_PASSWORD_VALIDATORS = [
88
+ {
89
+ 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
90
+ },
91
+ {
92
+ 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
93
+ },
94
+ {
95
+ 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
96
+ },
97
+ {
98
+ 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
99
+ },
100
+ ]
101
+
102
+
103
+ # Internationalization
104
+ # https://docs.djangoproject.com/en/5.2/topics/i18n/
105
+
106
+ LANGUAGE_CODE = 'en-us'
107
+
108
+ TIME_ZONE = 'UTC'
109
+
110
+ USE_I18N = True
111
+
112
+ USE_TZ = True
113
+
114
+
115
+ # Static files (CSS, JavaScript, Images)
116
+ # https://docs.djangoproject.com/en/5.2/howto/static-files/
117
+
118
+ STATIC_URL = 'static/'
119
+
120
+ # Default primary key field type
121
+ # https://docs.djangoproject.com/en/5.2/ref/settings/#default-auto-field
122
+
123
+ DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
FPS_Proj/FPS_Proj/urls.py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ # FPS_Proj/urls.py
2
+ from django.urls import path, include
3
+
4
+ urlpatterns = [
5
+ path('', include('predictor.urls')),
6
+ ]
FPS_Proj/FPS_Proj/wsgi.py ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ WSGI config for FPS_Proj project.
3
+
4
+ It exposes the WSGI callable as a module-level variable named ``application``.
5
+
6
+ For more information on this file, see
7
+ https://docs.djangoproject.com/en/5.2/howto/deployment/wsgi/
8
+ """
9
+
10
+ import os
11
+
12
+ from django.core.wsgi import get_wsgi_application
13
+
14
+ os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'FPS_Proj.settings')
15
+
16
+ application = get_wsgi_application()
FPS_Proj/Resources/FPS_Model.ipynb ADDED
@@ -0,0 +1,1206 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cells": [
3
+ {
4
+ "cell_type": "code",
5
+ "execution_count": 3,
6
+ "id": "e752885f",
7
+ "metadata": {},
8
+ "outputs": [],
9
+ "source": [
10
+ "import pandas as pd\n",
11
+ "import numpy as np\n",
12
+ "import matplotlib.pyplot as plt\n",
13
+ "from sklearn.model_selection import train_test_split\n",
14
+ "from sklearn.metrics import accuracy_score\n",
15
+ "from sklearn.preprocessing import StandardScaler"
16
+ ]
17
+ },
18
+ {
19
+ "cell_type": "code",
20
+ "execution_count": 5,
21
+ "id": "d10d05d0",
22
+ "metadata": {},
23
+ "outputs": [],
24
+ "source": [
25
+ "main_dataset = pd.read_csv(\"newfin.csv\")"
26
+ ]
27
+ },
28
+ {
29
+ "cell_type": "code",
30
+ "execution_count": 6,
31
+ "id": "43f81efa",
32
+ "metadata": {},
33
+ "outputs": [
34
+ {
35
+ "data": {
36
+ "text/plain": [
37
+ "(1040, 3)"
38
+ ]
39
+ },
40
+ "execution_count": 6,
41
+ "metadata": {},
42
+ "output_type": "execute_result"
43
+ }
44
+ ],
45
+ "source": [
46
+ "main_dataset.shape"
47
+ ]
48
+ },
49
+ {
50
+ "cell_type": "code",
51
+ "execution_count": 7,
52
+ "id": "8ade81ff",
53
+ "metadata": {},
54
+ "outputs": [
55
+ {
56
+ "data": {
57
+ "text/html": [
58
+ "<div>\n",
59
+ "<style scoped>\n",
60
+ " .dataframe tbody tr th:only-of-type {\n",
61
+ " vertical-align: middle;\n",
62
+ " }\n",
63
+ "\n",
64
+ " .dataframe tbody tr th {\n",
65
+ " vertical-align: top;\n",
66
+ " }\n",
67
+ "\n",
68
+ " .dataframe thead th {\n",
69
+ " text-align: right;\n",
70
+ " }\n",
71
+ "</style>\n",
72
+ "<table border=\"1\" class=\"dataframe\">\n",
73
+ " <thead>\n",
74
+ " <tr style=\"text-align: right;\">\n",
75
+ " <th></th>\n",
76
+ " <th>Rainfall</th>\n",
77
+ " <th>River</th>\n",
78
+ " <th>Label</th>\n",
79
+ " </tr>\n",
80
+ " </thead>\n",
81
+ " <tbody>\n",
82
+ " <tr>\n",
83
+ " <th>0</th>\n",
84
+ " <td>6.2</td>\n",
85
+ " <td>4.95</td>\n",
86
+ " <td>0</td>\n",
87
+ " </tr>\n",
88
+ " <tr>\n",
89
+ " <th>1</th>\n",
90
+ " <td>54.9</td>\n",
91
+ " <td>5.43</td>\n",
92
+ " <td>0</td>\n",
93
+ " </tr>\n",
94
+ " <tr>\n",
95
+ " <th>2</th>\n",
96
+ " <td>16.4</td>\n",
97
+ " <td>4.57</td>\n",
98
+ " <td>0</td>\n",
99
+ " </tr>\n",
100
+ " <tr>\n",
101
+ " <th>3</th>\n",
102
+ " <td>56.8</td>\n",
103
+ " <td>4.50</td>\n",
104
+ " <td>0</td>\n",
105
+ " </tr>\n",
106
+ " <tr>\n",
107
+ " <th>4</th>\n",
108
+ " <td>167.4</td>\n",
109
+ " <td>4.28</td>\n",
110
+ " <td>0</td>\n",
111
+ " </tr>\n",
112
+ " </tbody>\n",
113
+ "</table>\n",
114
+ "</div>"
115
+ ],
116
+ "text/plain": [
117
+ " Rainfall River Label\n",
118
+ "0 6.2 4.95 0\n",
119
+ "1 54.9 5.43 0\n",
120
+ "2 16.4 4.57 0\n",
121
+ "3 56.8 4.50 0\n",
122
+ "4 167.4 4.28 0"
123
+ ]
124
+ },
125
+ "execution_count": 7,
126
+ "metadata": {},
127
+ "output_type": "execute_result"
128
+ }
129
+ ],
130
+ "source": [
131
+ "main_dataset.head()"
132
+ ]
133
+ },
134
+ {
135
+ "cell_type": "code",
136
+ "execution_count": 8,
137
+ "id": "f7a4f5ed",
138
+ "metadata": {},
139
+ "outputs": [
140
+ {
141
+ "data": {
142
+ "text/html": [
143
+ "<div>\n",
144
+ "<style scoped>\n",
145
+ " .dataframe tbody tr th:only-of-type {\n",
146
+ " vertical-align: middle;\n",
147
+ " }\n",
148
+ "\n",
149
+ " .dataframe tbody tr th {\n",
150
+ " vertical-align: top;\n",
151
+ " }\n",
152
+ "\n",
153
+ " .dataframe thead th {\n",
154
+ " text-align: right;\n",
155
+ " }\n",
156
+ "</style>\n",
157
+ "<table border=\"1\" class=\"dataframe\">\n",
158
+ " <thead>\n",
159
+ " <tr style=\"text-align: right;\">\n",
160
+ " <th></th>\n",
161
+ " <th>Rainfall</th>\n",
162
+ " <th>River</th>\n",
163
+ " <th>Label</th>\n",
164
+ " </tr>\n",
165
+ " </thead>\n",
166
+ " <tbody>\n",
167
+ " <tr>\n",
168
+ " <th>1035</th>\n",
169
+ " <td>0.0</td>\n",
170
+ " <td>0.942</td>\n",
171
+ " <td>0</td>\n",
172
+ " </tr>\n",
173
+ " <tr>\n",
174
+ " <th>1036</th>\n",
175
+ " <td>0.0</td>\n",
176
+ " <td>0.878</td>\n",
177
+ " <td>0</td>\n",
178
+ " </tr>\n",
179
+ " <tr>\n",
180
+ " <th>1037</th>\n",
181
+ " <td>0.0</td>\n",
182
+ " <td>0.835</td>\n",
183
+ " <td>0</td>\n",
184
+ " </tr>\n",
185
+ " <tr>\n",
186
+ " <th>1038</th>\n",
187
+ " <td>0.0</td>\n",
188
+ " <td>1.990</td>\n",
189
+ " <td>0</td>\n",
190
+ " </tr>\n",
191
+ " <tr>\n",
192
+ " <th>1039</th>\n",
193
+ " <td>0.0</td>\n",
194
+ " <td>2.070</td>\n",
195
+ " <td>0</td>\n",
196
+ " </tr>\n",
197
+ " </tbody>\n",
198
+ "</table>\n",
199
+ "</div>"
200
+ ],
201
+ "text/plain": [
202
+ " Rainfall River Label\n",
203
+ "1035 0.0 0.942 0\n",
204
+ "1036 0.0 0.878 0\n",
205
+ "1037 0.0 0.835 0\n",
206
+ "1038 0.0 1.990 0\n",
207
+ "1039 0.0 2.070 0"
208
+ ]
209
+ },
210
+ "execution_count": 8,
211
+ "metadata": {},
212
+ "output_type": "execute_result"
213
+ }
214
+ ],
215
+ "source": [
216
+ "main_dataset.tail()"
217
+ ]
218
+ },
219
+ {
220
+ "cell_type": "code",
221
+ "execution_count": 9,
222
+ "id": "37519036",
223
+ "metadata": {},
224
+ "outputs": [
225
+ {
226
+ "data": {
227
+ "text/html": [
228
+ "<div>\n",
229
+ "<style scoped>\n",
230
+ " .dataframe tbody tr th:only-of-type {\n",
231
+ " vertical-align: middle;\n",
232
+ " }\n",
233
+ "\n",
234
+ " .dataframe tbody tr th {\n",
235
+ " vertical-align: top;\n",
236
+ " }\n",
237
+ "\n",
238
+ " .dataframe thead th {\n",
239
+ " text-align: right;\n",
240
+ " }\n",
241
+ "</style>\n",
242
+ "<table border=\"1\" class=\"dataframe\">\n",
243
+ " <thead>\n",
244
+ " <tr style=\"text-align: right;\">\n",
245
+ " <th></th>\n",
246
+ " <th>Rainfall</th>\n",
247
+ " <th>River</th>\n",
248
+ " <th>Label</th>\n",
249
+ " </tr>\n",
250
+ " </thead>\n",
251
+ " <tbody>\n",
252
+ " <tr>\n",
253
+ " <th>0</th>\n",
254
+ " <td>6.2</td>\n",
255
+ " <td>4.950</td>\n",
256
+ " <td>0</td>\n",
257
+ " </tr>\n",
258
+ " <tr>\n",
259
+ " <th>1</th>\n",
260
+ " <td>54.9</td>\n",
261
+ " <td>5.430</td>\n",
262
+ " <td>0</td>\n",
263
+ " </tr>\n",
264
+ " <tr>\n",
265
+ " <th>2</th>\n",
266
+ " <td>16.4</td>\n",
267
+ " <td>4.570</td>\n",
268
+ " <td>0</td>\n",
269
+ " </tr>\n",
270
+ " <tr>\n",
271
+ " <th>3</th>\n",
272
+ " <td>56.8</td>\n",
273
+ " <td>4.500</td>\n",
274
+ " <td>0</td>\n",
275
+ " </tr>\n",
276
+ " <tr>\n",
277
+ " <th>4</th>\n",
278
+ " <td>167.4</td>\n",
279
+ " <td>4.280</td>\n",
280
+ " <td>0</td>\n",
281
+ " </tr>\n",
282
+ " <tr>\n",
283
+ " <th>...</th>\n",
284
+ " <td>...</td>\n",
285
+ " <td>...</td>\n",
286
+ " <td>...</td>\n",
287
+ " </tr>\n",
288
+ " <tr>\n",
289
+ " <th>1035</th>\n",
290
+ " <td>0.0</td>\n",
291
+ " <td>0.942</td>\n",
292
+ " <td>0</td>\n",
293
+ " </tr>\n",
294
+ " <tr>\n",
295
+ " <th>1036</th>\n",
296
+ " <td>0.0</td>\n",
297
+ " <td>0.878</td>\n",
298
+ " <td>0</td>\n",
299
+ " </tr>\n",
300
+ " <tr>\n",
301
+ " <th>1037</th>\n",
302
+ " <td>0.0</td>\n",
303
+ " <td>0.835</td>\n",
304
+ " <td>0</td>\n",
305
+ " </tr>\n",
306
+ " <tr>\n",
307
+ " <th>1038</th>\n",
308
+ " <td>0.0</td>\n",
309
+ " <td>1.990</td>\n",
310
+ " <td>0</td>\n",
311
+ " </tr>\n",
312
+ " <tr>\n",
313
+ " <th>1039</th>\n",
314
+ " <td>0.0</td>\n",
315
+ " <td>2.070</td>\n",
316
+ " <td>0</td>\n",
317
+ " </tr>\n",
318
+ " </tbody>\n",
319
+ "</table>\n",
320
+ "<p>1040 rows × 3 columns</p>\n",
321
+ "</div>"
322
+ ],
323
+ "text/plain": [
324
+ " Rainfall River Label\n",
325
+ "0 6.2 4.950 0\n",
326
+ "1 54.9 5.430 0\n",
327
+ "2 16.4 4.570 0\n",
328
+ "3 56.8 4.500 0\n",
329
+ "4 167.4 4.280 0\n",
330
+ "... ... ... ...\n",
331
+ "1035 0.0 0.942 0\n",
332
+ "1036 0.0 0.878 0\n",
333
+ "1037 0.0 0.835 0\n",
334
+ "1038 0.0 1.990 0\n",
335
+ "1039 0.0 2.070 0\n",
336
+ "\n",
337
+ "[1040 rows x 3 columns]"
338
+ ]
339
+ },
340
+ "execution_count": 9,
341
+ "metadata": {},
342
+ "output_type": "execute_result"
343
+ }
344
+ ],
345
+ "source": [
346
+ "main_dataset.fillna('')"
347
+ ]
348
+ },
349
+ {
350
+ "cell_type": "code",
351
+ "execution_count": 10,
352
+ "id": "775b1c8e",
353
+ "metadata": {},
354
+ "outputs": [
355
+ {
356
+ "data": {
357
+ "text/html": [
358
+ "<div>\n",
359
+ "<style scoped>\n",
360
+ " .dataframe tbody tr th:only-of-type {\n",
361
+ " vertical-align: middle;\n",
362
+ " }\n",
363
+ "\n",
364
+ " .dataframe tbody tr th {\n",
365
+ " vertical-align: top;\n",
366
+ " }\n",
367
+ "\n",
368
+ " .dataframe thead th {\n",
369
+ " text-align: right;\n",
370
+ " }\n",
371
+ "</style>\n",
372
+ "<table border=\"1\" class=\"dataframe\">\n",
373
+ " <thead>\n",
374
+ " <tr style=\"text-align: right;\">\n",
375
+ " <th></th>\n",
376
+ " <th>Rainfall</th>\n",
377
+ " <th>River</th>\n",
378
+ " <th>Label</th>\n",
379
+ " </tr>\n",
380
+ " </thead>\n",
381
+ " <tbody>\n",
382
+ " <tr>\n",
383
+ " <th>count</th>\n",
384
+ " <td>1040.000000</td>\n",
385
+ " <td>1040.000000</td>\n",
386
+ " <td>1040.000000</td>\n",
387
+ " </tr>\n",
388
+ " <tr>\n",
389
+ " <th>mean</th>\n",
390
+ " <td>167.326250</td>\n",
391
+ " <td>14.182862</td>\n",
392
+ " <td>0.435577</td>\n",
393
+ " </tr>\n",
394
+ " <tr>\n",
395
+ " <th>std</th>\n",
396
+ " <td>186.687956</td>\n",
397
+ " <td>23.584739</td>\n",
398
+ " <td>0.496071</td>\n",
399
+ " </tr>\n",
400
+ " <tr>\n",
401
+ " <th>min</th>\n",
402
+ " <td>0.000000</td>\n",
403
+ " <td>0.835000</td>\n",
404
+ " <td>0.000000</td>\n",
405
+ " </tr>\n",
406
+ " <tr>\n",
407
+ " <th>25%</th>\n",
408
+ " <td>6.525000</td>\n",
409
+ " <td>2.810000</td>\n",
410
+ " <td>0.000000</td>\n",
411
+ " </tr>\n",
412
+ " <tr>\n",
413
+ " <th>50%</th>\n",
414
+ " <td>100.000000</td>\n",
415
+ " <td>4.640000</td>\n",
416
+ " <td>0.000000</td>\n",
417
+ " </tr>\n",
418
+ " <tr>\n",
419
+ " <th>75%</th>\n",
420
+ " <td>265.575000</td>\n",
421
+ " <td>17.725000</td>\n",
422
+ " <td>1.000000</td>\n",
423
+ " </tr>\n",
424
+ " <tr>\n",
425
+ " <th>max</th>\n",
426
+ " <td>2198.100000</td>\n",
427
+ " <td>369.000000</td>\n",
428
+ " <td>1.000000</td>\n",
429
+ " </tr>\n",
430
+ " </tbody>\n",
431
+ "</table>\n",
432
+ "</div>"
433
+ ],
434
+ "text/plain": [
435
+ " Rainfall River Label\n",
436
+ "count 1040.000000 1040.000000 1040.000000\n",
437
+ "mean 167.326250 14.182862 0.435577\n",
438
+ "std 186.687956 23.584739 0.496071\n",
439
+ "min 0.000000 0.835000 0.000000\n",
440
+ "25% 6.525000 2.810000 0.000000\n",
441
+ "50% 100.000000 4.640000 0.000000\n",
442
+ "75% 265.575000 17.725000 1.000000\n",
443
+ "max 2198.100000 369.000000 1.000000"
444
+ ]
445
+ },
446
+ "execution_count": 10,
447
+ "metadata": {},
448
+ "output_type": "execute_result"
449
+ }
450
+ ],
451
+ "source": [
452
+ "main_dataset.describe()"
453
+ ]
454
+ },
455
+ {
456
+ "cell_type": "code",
457
+ "execution_count": 11,
458
+ "id": "43db8205",
459
+ "metadata": {},
460
+ "outputs": [
461
+ {
462
+ "data": {
463
+ "text/plain": [
464
+ "Label\n",
465
+ "0 587\n",
466
+ "1 453\n",
467
+ "Name: count, dtype: int64"
468
+ ]
469
+ },
470
+ "execution_count": 11,
471
+ "metadata": {},
472
+ "output_type": "execute_result"
473
+ }
474
+ ],
475
+ "source": [
476
+ "main_dataset['Label'].value_counts()"
477
+ ]
478
+ },
479
+ {
480
+ "cell_type": "code",
481
+ "execution_count": 12,
482
+ "id": "e32b80d9",
483
+ "metadata": {},
484
+ "outputs": [],
485
+ "source": [
486
+ "X = main_dataset.drop(columns = 'Label', axis = 1)\n",
487
+ "Y = main_dataset['Label']"
488
+ ]
489
+ },
490
+ {
491
+ "cell_type": "code",
492
+ "execution_count": 13,
493
+ "id": "054230d9",
494
+ "metadata": {},
495
+ "outputs": [
496
+ {
497
+ "name": "stdout",
498
+ "output_type": "stream",
499
+ "text": [
500
+ " Rainfall River\n",
501
+ "0 6.2 4.950\n",
502
+ "1 54.9 5.430\n",
503
+ "2 16.4 4.570\n",
504
+ "3 56.8 4.500\n",
505
+ "4 167.4 4.280\n",
506
+ "... ... ...\n",
507
+ "1035 0.0 0.942\n",
508
+ "1036 0.0 0.878\n",
509
+ "1037 0.0 0.835\n",
510
+ "1038 0.0 1.990\n",
511
+ "1039 0.0 2.070\n",
512
+ "\n",
513
+ "[1040 rows x 2 columns]\n"
514
+ ]
515
+ }
516
+ ],
517
+ "source": [
518
+ "print(X)"
519
+ ]
520
+ },
521
+ {
522
+ "cell_type": "code",
523
+ "execution_count": 14,
524
+ "id": "deb164b0",
525
+ "metadata": {},
526
+ "outputs": [
527
+ {
528
+ "name": "stdout",
529
+ "output_type": "stream",
530
+ "text": [
531
+ "0 0\n",
532
+ "1 0\n",
533
+ "2 0\n",
534
+ "3 0\n",
535
+ "4 0\n",
536
+ " ..\n",
537
+ "1035 0\n",
538
+ "1036 0\n",
539
+ "1037 0\n",
540
+ "1038 0\n",
541
+ "1039 0\n",
542
+ "Name: Label, Length: 1040, dtype: int64\n"
543
+ ]
544
+ }
545
+ ],
546
+ "source": [
547
+ "print(Y)"
548
+ ]
549
+ },
550
+ {
551
+ "cell_type": "code",
552
+ "execution_count": 15,
553
+ "id": "660e25c5",
554
+ "metadata": {},
555
+ "outputs": [],
556
+ "source": [
557
+ "from sklearn.model_selection import train_test_split\n",
558
+ "X_train, X_test, Y_train, Y_test = train_test_split(X, Y, test_size = 0.2, stratify = Y, random_state = 42)"
559
+ ]
560
+ },
561
+ {
562
+ "cell_type": "code",
563
+ "execution_count": 34,
564
+ "id": "d0339123-cbf1-4cbc-9d10-641de826b559",
565
+ "metadata": {},
566
+ "outputs": [],
567
+ "source": [
568
+ "import pandas as pd\n",
569
+ "\n",
570
+ "test_data = X_test.copy()\n",
571
+ "test_data['Label'] = Y_test \n",
572
+ "\n",
573
+ "test_data.to_csv('test_data.csv', index=False)"
574
+ ]
575
+ },
576
+ {
577
+ "cell_type": "code",
578
+ "execution_count": 16,
579
+ "id": "729f6ae4",
580
+ "metadata": {},
581
+ "outputs": [
582
+ {
583
+ "name": "stdout",
584
+ "output_type": "stream",
585
+ "text": [
586
+ "(832, 2) (832,) (208, 2) (208,)\n"
587
+ ]
588
+ }
589
+ ],
590
+ "source": [
591
+ "print(X_train.shape, Y_train.shape,X_test.shape,Y_test.shape)"
592
+ ]
593
+ },
594
+ {
595
+ "cell_type": "code",
596
+ "execution_count": 18,
597
+ "id": "5dc74a26",
598
+ "metadata": {},
599
+ "outputs": [],
600
+ "source": [
601
+ "from sklearn.linear_model import LinearRegression"
602
+ ]
603
+ },
604
+ {
605
+ "cell_type": "code",
606
+ "execution_count": 20,
607
+ "id": "9c24647f",
608
+ "metadata": {},
609
+ "outputs": [],
610
+ "source": [
611
+ "model = LinearRegression()"
612
+ ]
613
+ },
614
+ {
615
+ "cell_type": "code",
616
+ "execution_count": 21,
617
+ "id": "17833f81",
618
+ "metadata": {},
619
+ "outputs": [
620
+ {
621
+ "data": {
622
+ "text/html": [
623
+ "<style>#sk-container-id-1 {\n",
624
+ " /* Definition of color scheme common for light and dark mode */\n",
625
+ " --sklearn-color-text: black;\n",
626
+ " --sklearn-color-line: gray;\n",
627
+ " /* Definition of color scheme for unfitted estimators */\n",
628
+ " --sklearn-color-unfitted-level-0: #fff5e6;\n",
629
+ " --sklearn-color-unfitted-level-1: #f6e4d2;\n",
630
+ " --sklearn-color-unfitted-level-2: #ffe0b3;\n",
631
+ " --sklearn-color-unfitted-level-3: chocolate;\n",
632
+ " /* Definition of color scheme for fitted estimators */\n",
633
+ " --sklearn-color-fitted-level-0: #f0f8ff;\n",
634
+ " --sklearn-color-fitted-level-1: #d4ebff;\n",
635
+ " --sklearn-color-fitted-level-2: #b3dbfd;\n",
636
+ " --sklearn-color-fitted-level-3: cornflowerblue;\n",
637
+ "\n",
638
+ " /* Specific color for light theme */\n",
639
+ " --sklearn-color-text-on-default-background: var(--sg-text-color, var(--theme-code-foreground, var(--jp-content-font-color1, black)));\n",
640
+ " --sklearn-color-background: var(--sg-background-color, var(--theme-background, var(--jp-layout-color0, white)));\n",
641
+ " --sklearn-color-border-box: var(--sg-text-color, var(--theme-code-foreground, var(--jp-content-font-color1, black)));\n",
642
+ " --sklearn-color-icon: #696969;\n",
643
+ "\n",
644
+ " @media (prefers-color-scheme: dark) {\n",
645
+ " /* Redefinition of color scheme for dark theme */\n",
646
+ " --sklearn-color-text-on-default-background: var(--sg-text-color, var(--theme-code-foreground, var(--jp-content-font-color1, white)));\n",
647
+ " --sklearn-color-background: var(--sg-background-color, var(--theme-background, var(--jp-layout-color0, #111)));\n",
648
+ " --sklearn-color-border-box: var(--sg-text-color, var(--theme-code-foreground, var(--jp-content-font-color1, white)));\n",
649
+ " --sklearn-color-icon: #878787;\n",
650
+ " }\n",
651
+ "}\n",
652
+ "\n",
653
+ "#sk-container-id-1 {\n",
654
+ " color: var(--sklearn-color-text);\n",
655
+ "}\n",
656
+ "\n",
657
+ "#sk-container-id-1 pre {\n",
658
+ " padding: 0;\n",
659
+ "}\n",
660
+ "\n",
661
+ "#sk-container-id-1 input.sk-hidden--visually {\n",
662
+ " border: 0;\n",
663
+ " clip: rect(1px 1px 1px 1px);\n",
664
+ " clip: rect(1px, 1px, 1px, 1px);\n",
665
+ " height: 1px;\n",
666
+ " margin: -1px;\n",
667
+ " overflow: hidden;\n",
668
+ " padding: 0;\n",
669
+ " position: absolute;\n",
670
+ " width: 1px;\n",
671
+ "}\n",
672
+ "\n",
673
+ "#sk-container-id-1 div.sk-dashed-wrapped {\n",
674
+ " border: 1px dashed var(--sklearn-color-line);\n",
675
+ " margin: 0 0.4em 0.5em 0.4em;\n",
676
+ " box-sizing: border-box;\n",
677
+ " padding-bottom: 0.4em;\n",
678
+ " background-color: var(--sklearn-color-background);\n",
679
+ "}\n",
680
+ "\n",
681
+ "#sk-container-id-1 div.sk-container {\n",
682
+ " /* jupyter's `normalize.less` sets `[hidden] { display: none; }`\n",
683
+ " but bootstrap.min.css set `[hidden] { display: none !important; }`\n",
684
+ " so we also need the `!important` here to be able to override the\n",
685
+ " default hidden behavior on the sphinx rendered scikit-learn.org.\n",
686
+ " See: https://github.com/scikit-learn/scikit-learn/issues/21755 */\n",
687
+ " display: inline-block !important;\n",
688
+ " position: relative;\n",
689
+ "}\n",
690
+ "\n",
691
+ "#sk-container-id-1 div.sk-text-repr-fallback {\n",
692
+ " display: none;\n",
693
+ "}\n",
694
+ "\n",
695
+ "div.sk-parallel-item,\n",
696
+ "div.sk-serial,\n",
697
+ "div.sk-item {\n",
698
+ " /* draw centered vertical line to link estimators */\n",
699
+ " background-image: linear-gradient(var(--sklearn-color-text-on-default-background), var(--sklearn-color-text-on-default-background));\n",
700
+ " background-size: 2px 100%;\n",
701
+ " background-repeat: no-repeat;\n",
702
+ " background-position: center center;\n",
703
+ "}\n",
704
+ "\n",
705
+ "/* Parallel-specific style estimator block */\n",
706
+ "\n",
707
+ "#sk-container-id-1 div.sk-parallel-item::after {\n",
708
+ " content: \"\";\n",
709
+ " width: 100%;\n",
710
+ " border-bottom: 2px solid var(--sklearn-color-text-on-default-background);\n",
711
+ " flex-grow: 1;\n",
712
+ "}\n",
713
+ "\n",
714
+ "#sk-container-id-1 div.sk-parallel {\n",
715
+ " display: flex;\n",
716
+ " align-items: stretch;\n",
717
+ " justify-content: center;\n",
718
+ " background-color: var(--sklearn-color-background);\n",
719
+ " position: relative;\n",
720
+ "}\n",
721
+ "\n",
722
+ "#sk-container-id-1 div.sk-parallel-item {\n",
723
+ " display: flex;\n",
724
+ " flex-direction: column;\n",
725
+ "}\n",
726
+ "\n",
727
+ "#sk-container-id-1 div.sk-parallel-item:first-child::after {\n",
728
+ " align-self: flex-end;\n",
729
+ " width: 50%;\n",
730
+ "}\n",
731
+ "\n",
732
+ "#sk-container-id-1 div.sk-parallel-item:last-child::after {\n",
733
+ " align-self: flex-start;\n",
734
+ " width: 50%;\n",
735
+ "}\n",
736
+ "\n",
737
+ "#sk-container-id-1 div.sk-parallel-item:only-child::after {\n",
738
+ " width: 0;\n",
739
+ "}\n",
740
+ "\n",
741
+ "/* Serial-specific style estimator block */\n",
742
+ "\n",
743
+ "#sk-container-id-1 div.sk-serial {\n",
744
+ " display: flex;\n",
745
+ " flex-direction: column;\n",
746
+ " align-items: center;\n",
747
+ " background-color: var(--sklearn-color-background);\n",
748
+ " padding-right: 1em;\n",
749
+ " padding-left: 1em;\n",
750
+ "}\n",
751
+ "\n",
752
+ "\n",
753
+ "/* Toggleable style: style used for estimator/Pipeline/ColumnTransformer box that is\n",
754
+ "clickable and can be expanded/collapsed.\n",
755
+ "- Pipeline and ColumnTransformer use this feature and define the default style\n",
756
+ "- Estimators will overwrite some part of the style using the `sk-estimator` class\n",
757
+ "*/\n",
758
+ "\n",
759
+ "/* Pipeline and ColumnTransformer style (default) */\n",
760
+ "\n",
761
+ "#sk-container-id-1 div.sk-toggleable {\n",
762
+ " /* Default theme specific background. It is overwritten whether we have a\n",
763
+ " specific estimator or a Pipeline/ColumnTransformer */\n",
764
+ " background-color: var(--sklearn-color-background);\n",
765
+ "}\n",
766
+ "\n",
767
+ "/* Toggleable label */\n",
768
+ "#sk-container-id-1 label.sk-toggleable__label {\n",
769
+ " cursor: pointer;\n",
770
+ " display: block;\n",
771
+ " width: 100%;\n",
772
+ " margin-bottom: 0;\n",
773
+ " padding: 0.5em;\n",
774
+ " box-sizing: border-box;\n",
775
+ " text-align: center;\n",
776
+ "}\n",
777
+ "\n",
778
+ "#sk-container-id-1 label.sk-toggleable__label-arrow:before {\n",
779
+ " /* Arrow on the left of the label */\n",
780
+ " content: \"▸\";\n",
781
+ " float: left;\n",
782
+ " margin-right: 0.25em;\n",
783
+ " color: var(--sklearn-color-icon);\n",
784
+ "}\n",
785
+ "\n",
786
+ "#sk-container-id-1 label.sk-toggleable__label-arrow:hover:before {\n",
787
+ " color: var(--sklearn-color-text);\n",
788
+ "}\n",
789
+ "\n",
790
+ "/* Toggleable content - dropdown */\n",
791
+ "\n",
792
+ "#sk-container-id-1 div.sk-toggleable__content {\n",
793
+ " max-height: 0;\n",
794
+ " max-width: 0;\n",
795
+ " overflow: hidden;\n",
796
+ " text-align: left;\n",
797
+ " /* unfitted */\n",
798
+ " background-color: var(--sklearn-color-unfitted-level-0);\n",
799
+ "}\n",
800
+ "\n",
801
+ "#sk-container-id-1 div.sk-toggleable__content.fitted {\n",
802
+ " /* fitted */\n",
803
+ " background-color: var(--sklearn-color-fitted-level-0);\n",
804
+ "}\n",
805
+ "\n",
806
+ "#sk-container-id-1 div.sk-toggleable__content pre {\n",
807
+ " margin: 0.2em;\n",
808
+ " border-radius: 0.25em;\n",
809
+ " color: var(--sklearn-color-text);\n",
810
+ " /* unfitted */\n",
811
+ " background-color: var(--sklearn-color-unfitted-level-0);\n",
812
+ "}\n",
813
+ "\n",
814
+ "#sk-container-id-1 div.sk-toggleable__content.fitted pre {\n",
815
+ " /* unfitted */\n",
816
+ " background-color: var(--sklearn-color-fitted-level-0);\n",
817
+ "}\n",
818
+ "\n",
819
+ "#sk-container-id-1 input.sk-toggleable__control:checked~div.sk-toggleable__content {\n",
820
+ " /* Expand drop-down */\n",
821
+ " max-height: 200px;\n",
822
+ " max-width: 100%;\n",
823
+ " overflow: auto;\n",
824
+ "}\n",
825
+ "\n",
826
+ "#sk-container-id-1 input.sk-toggleable__control:checked~label.sk-toggleable__label-arrow:before {\n",
827
+ " content: \"▾\";\n",
828
+ "}\n",
829
+ "\n",
830
+ "/* Pipeline/ColumnTransformer-specific style */\n",
831
+ "\n",
832
+ "#sk-container-id-1 div.sk-label input.sk-toggleable__control:checked~label.sk-toggleable__label {\n",
833
+ " color: var(--sklearn-color-text);\n",
834
+ " background-color: var(--sklearn-color-unfitted-level-2);\n",
835
+ "}\n",
836
+ "\n",
837
+ "#sk-container-id-1 div.sk-label.fitted input.sk-toggleable__control:checked~label.sk-toggleable__label {\n",
838
+ " background-color: var(--sklearn-color-fitted-level-2);\n",
839
+ "}\n",
840
+ "\n",
841
+ "/* Estimator-specific style */\n",
842
+ "\n",
843
+ "/* Colorize estimator box */\n",
844
+ "#sk-container-id-1 div.sk-estimator input.sk-toggleable__control:checked~label.sk-toggleable__label {\n",
845
+ " /* unfitted */\n",
846
+ " background-color: var(--sklearn-color-unfitted-level-2);\n",
847
+ "}\n",
848
+ "\n",
849
+ "#sk-container-id-1 div.sk-estimator.fitted input.sk-toggleable__control:checked~label.sk-toggleable__label {\n",
850
+ " /* fitted */\n",
851
+ " background-color: var(--sklearn-color-fitted-level-2);\n",
852
+ "}\n",
853
+ "\n",
854
+ "#sk-container-id-1 div.sk-label label.sk-toggleable__label,\n",
855
+ "#sk-container-id-1 div.sk-label label {\n",
856
+ " /* The background is the default theme color */\n",
857
+ " color: var(--sklearn-color-text-on-default-background);\n",
858
+ "}\n",
859
+ "\n",
860
+ "/* On hover, darken the color of the background */\n",
861
+ "#sk-container-id-1 div.sk-label:hover label.sk-toggleable__label {\n",
862
+ " color: var(--sklearn-color-text);\n",
863
+ " background-color: var(--sklearn-color-unfitted-level-2);\n",
864
+ "}\n",
865
+ "\n",
866
+ "/* Label box, darken color on hover, fitted */\n",
867
+ "#sk-container-id-1 div.sk-label.fitted:hover label.sk-toggleable__label.fitted {\n",
868
+ " color: var(--sklearn-color-text);\n",
869
+ " background-color: var(--sklearn-color-fitted-level-2);\n",
870
+ "}\n",
871
+ "\n",
872
+ "/* Estimator label */\n",
873
+ "\n",
874
+ "#sk-container-id-1 div.sk-label label {\n",
875
+ " font-family: monospace;\n",
876
+ " font-weight: bold;\n",
877
+ " display: inline-block;\n",
878
+ " line-height: 1.2em;\n",
879
+ "}\n",
880
+ "\n",
881
+ "#sk-container-id-1 div.sk-label-container {\n",
882
+ " text-align: center;\n",
883
+ "}\n",
884
+ "\n",
885
+ "/* Estimator-specific */\n",
886
+ "#sk-container-id-1 div.sk-estimator {\n",
887
+ " font-family: monospace;\n",
888
+ " border: 1px dotted var(--sklearn-color-border-box);\n",
889
+ " border-radius: 0.25em;\n",
890
+ " box-sizing: border-box;\n",
891
+ " margin-bottom: 0.5em;\n",
892
+ " /* unfitted */\n",
893
+ " background-color: var(--sklearn-color-unfitted-level-0);\n",
894
+ "}\n",
895
+ "\n",
896
+ "#sk-container-id-1 div.sk-estimator.fitted {\n",
897
+ " /* fitted */\n",
898
+ " background-color: var(--sklearn-color-fitted-level-0);\n",
899
+ "}\n",
900
+ "\n",
901
+ "/* on hover */\n",
902
+ "#sk-container-id-1 div.sk-estimator:hover {\n",
903
+ " /* unfitted */\n",
904
+ " background-color: var(--sklearn-color-unfitted-level-2);\n",
905
+ "}\n",
906
+ "\n",
907
+ "#sk-container-id-1 div.sk-estimator.fitted:hover {\n",
908
+ " /* fitted */\n",
909
+ " background-color: var(--sklearn-color-fitted-level-2);\n",
910
+ "}\n",
911
+ "\n",
912
+ "/* Specification for estimator info (e.g. \"i\" and \"?\") */\n",
913
+ "\n",
914
+ "/* Common style for \"i\" and \"?\" */\n",
915
+ "\n",
916
+ ".sk-estimator-doc-link,\n",
917
+ "a:link.sk-estimator-doc-link,\n",
918
+ "a:visited.sk-estimator-doc-link {\n",
919
+ " float: right;\n",
920
+ " font-size: smaller;\n",
921
+ " line-height: 1em;\n",
922
+ " font-family: monospace;\n",
923
+ " background-color: var(--sklearn-color-background);\n",
924
+ " border-radius: 1em;\n",
925
+ " height: 1em;\n",
926
+ " width: 1em;\n",
927
+ " text-decoration: none !important;\n",
928
+ " margin-left: 1ex;\n",
929
+ " /* unfitted */\n",
930
+ " border: var(--sklearn-color-unfitted-level-1) 1pt solid;\n",
931
+ " color: var(--sklearn-color-unfitted-level-1);\n",
932
+ "}\n",
933
+ "\n",
934
+ ".sk-estimator-doc-link.fitted,\n",
935
+ "a:link.sk-estimator-doc-link.fitted,\n",
936
+ "a:visited.sk-estimator-doc-link.fitted {\n",
937
+ " /* fitted */\n",
938
+ " border: var(--sklearn-color-fitted-level-1) 1pt solid;\n",
939
+ " color: var(--sklearn-color-fitted-level-1);\n",
940
+ "}\n",
941
+ "\n",
942
+ "/* On hover */\n",
943
+ "div.sk-estimator:hover .sk-estimator-doc-link:hover,\n",
944
+ ".sk-estimator-doc-link:hover,\n",
945
+ "div.sk-label-container:hover .sk-estimator-doc-link:hover,\n",
946
+ ".sk-estimator-doc-link:hover {\n",
947
+ " /* unfitted */\n",
948
+ " background-color: var(--sklearn-color-unfitted-level-3);\n",
949
+ " color: var(--sklearn-color-background);\n",
950
+ " text-decoration: none;\n",
951
+ "}\n",
952
+ "\n",
953
+ "div.sk-estimator.fitted:hover .sk-estimator-doc-link.fitted:hover,\n",
954
+ ".sk-estimator-doc-link.fitted:hover,\n",
955
+ "div.sk-label-container:hover .sk-estimator-doc-link.fitted:hover,\n",
956
+ ".sk-estimator-doc-link.fitted:hover {\n",
957
+ " /* fitted */\n",
958
+ " background-color: var(--sklearn-color-fitted-level-3);\n",
959
+ " color: var(--sklearn-color-background);\n",
960
+ " text-decoration: none;\n",
961
+ "}\n",
962
+ "\n",
963
+ "/* Span, style for the box shown on hovering the info icon */\n",
964
+ ".sk-estimator-doc-link span {\n",
965
+ " display: none;\n",
966
+ " z-index: 9999;\n",
967
+ " position: relative;\n",
968
+ " font-weight: normal;\n",
969
+ " right: .2ex;\n",
970
+ " padding: .5ex;\n",
971
+ " margin: .5ex;\n",
972
+ " width: min-content;\n",
973
+ " min-width: 20ex;\n",
974
+ " max-width: 50ex;\n",
975
+ " color: var(--sklearn-color-text);\n",
976
+ " box-shadow: 2pt 2pt 4pt #999;\n",
977
+ " /* unfitted */\n",
978
+ " background: var(--sklearn-color-unfitted-level-0);\n",
979
+ " border: .5pt solid var(--sklearn-color-unfitted-level-3);\n",
980
+ "}\n",
981
+ "\n",
982
+ ".sk-estimator-doc-link.fitted span {\n",
983
+ " /* fitted */\n",
984
+ " background: var(--sklearn-color-fitted-level-0);\n",
985
+ " border: var(--sklearn-color-fitted-level-3);\n",
986
+ "}\n",
987
+ "\n",
988
+ ".sk-estimator-doc-link:hover span {\n",
989
+ " display: block;\n",
990
+ "}\n",
991
+ "\n",
992
+ "/* \"?\"-specific style due to the `<a>` HTML tag */\n",
993
+ "\n",
994
+ "#sk-container-id-1 a.estimator_doc_link {\n",
995
+ " float: right;\n",
996
+ " font-size: 1rem;\n",
997
+ " line-height: 1em;\n",
998
+ " font-family: monospace;\n",
999
+ " background-color: var(--sklearn-color-background);\n",
1000
+ " border-radius: 1rem;\n",
1001
+ " height: 1rem;\n",
1002
+ " width: 1rem;\n",
1003
+ " text-decoration: none;\n",
1004
+ " /* unfitted */\n",
1005
+ " color: var(--sklearn-color-unfitted-level-1);\n",
1006
+ " border: var(--sklearn-color-unfitted-level-1) 1pt solid;\n",
1007
+ "}\n",
1008
+ "\n",
1009
+ "#sk-container-id-1 a.estimator_doc_link.fitted {\n",
1010
+ " /* fitted */\n",
1011
+ " border: var(--sklearn-color-fitted-level-1) 1pt solid;\n",
1012
+ " color: var(--sklearn-color-fitted-level-1);\n",
1013
+ "}\n",
1014
+ "\n",
1015
+ "/* On hover */\n",
1016
+ "#sk-container-id-1 a.estimator_doc_link:hover {\n",
1017
+ " /* unfitted */\n",
1018
+ " background-color: var(--sklearn-color-unfitted-level-3);\n",
1019
+ " color: var(--sklearn-color-background);\n",
1020
+ " text-decoration: none;\n",
1021
+ "}\n",
1022
+ "\n",
1023
+ "#sk-container-id-1 a.estimator_doc_link.fitted:hover {\n",
1024
+ " /* fitted */\n",
1025
+ " background-color: var(--sklearn-color-fitted-level-3);\n",
1026
+ "}\n",
1027
+ "</style><div id=\"sk-container-id-1\" class=\"sk-top-container\"><div class=\"sk-text-repr-fallback\"><pre>LinearRegression()</pre><b>In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook. <br />On GitHub, the HTML representation is unable to render, please try loading this page with nbviewer.org.</b></div><div class=\"sk-container\" hidden><div class=\"sk-item\"><div class=\"sk-estimator fitted sk-toggleable\"><input class=\"sk-toggleable__control sk-hidden--visually\" id=\"sk-estimator-id-1\" type=\"checkbox\" checked><label for=\"sk-estimator-id-1\" class=\"sk-toggleable__label fitted sk-toggleable__label-arrow fitted\">&nbsp;&nbsp;LinearRegression<a class=\"sk-estimator-doc-link fitted\" rel=\"noreferrer\" target=\"_blank\" href=\"https://scikit-learn.org/1.5/modules/generated/sklearn.linear_model.LinearRegression.html\">?<span>Documentation for LinearRegression</span></a><span class=\"sk-estimator-doc-link fitted\">i<span>Fitted</span></span></label><div class=\"sk-toggleable__content fitted\"><pre>LinearRegression()</pre></div> </div></div></div></div>"
1028
+ ],
1029
+ "text/plain": [
1030
+ "LinearRegression()"
1031
+ ]
1032
+ },
1033
+ "execution_count": 21,
1034
+ "metadata": {},
1035
+ "output_type": "execute_result"
1036
+ }
1037
+ ],
1038
+ "source": [
1039
+ "model.fit(X_train, Y_train)"
1040
+ ]
1041
+ },
1042
+ {
1043
+ "cell_type": "code",
1044
+ "execution_count": 23,
1045
+ "id": "ab5d6d4d",
1046
+ "metadata": {},
1047
+ "outputs": [
1048
+ {
1049
+ "name": "stdout",
1050
+ "output_type": "stream",
1051
+ "text": [
1052
+ "MSE: 0.16963572059262821\n",
1053
+ "R² Score: 0.310686595687098\n"
1054
+ ]
1055
+ }
1056
+ ],
1057
+ "source": [
1058
+ "from sklearn.metrics import mean_squared_error, r2_score\n",
1059
+ "\n",
1060
+ "mse = mean_squared_error(Y_test, X_test_prediction)\n",
1061
+ "r2 = r2_score(Y_test, X_test_prediction)\n",
1062
+ "\n",
1063
+ "print(\"MSE:\", mse)\n",
1064
+ "print(\"R² Score:\", r2)\n"
1065
+ ]
1066
+ },
1067
+ {
1068
+ "cell_type": "code",
1069
+ "execution_count": 25,
1070
+ "id": "9c28442b",
1071
+ "metadata": {},
1072
+ "outputs": [],
1073
+ "source": [
1074
+ "import pickle"
1075
+ ]
1076
+ },
1077
+ {
1078
+ "cell_type": "code",
1079
+ "execution_count": 26,
1080
+ "id": "d1f915f3",
1081
+ "metadata": {},
1082
+ "outputs": [],
1083
+ "source": [
1084
+ "pickle.dump(model, open('mainmodel.pkl', 'wb'))"
1085
+ ]
1086
+ },
1087
+ {
1088
+ "cell_type": "code",
1089
+ "execution_count": 27,
1090
+ "id": "ca1e7621",
1091
+ "metadata": {},
1092
+ "outputs": [],
1093
+ "source": [
1094
+ "rslt = pickle.load(open('mainmodel.pkl', 'rb'))"
1095
+ ]
1096
+ },
1097
+ {
1098
+ "cell_type": "code",
1099
+ "execution_count": 28,
1100
+ "id": "839a4832",
1101
+ "metadata": {},
1102
+ "outputs": [
1103
+ {
1104
+ "name": "stdout",
1105
+ "output_type": "stream",
1106
+ "text": [
1107
+ "LinearRegression()\n"
1108
+ ]
1109
+ }
1110
+ ],
1111
+ "source": [
1112
+ "print(rslt)"
1113
+ ]
1114
+ },
1115
+ {
1116
+ "cell_type": "code",
1117
+ "execution_count": 53,
1118
+ "id": "49944ff7",
1119
+ "metadata": {},
1120
+ "outputs": [],
1121
+ "source": [
1122
+ "import pandas as pd\n",
1123
+ "\n",
1124
+ "X_new = pd.DataFrame([[597,53]], columns=['Rainfall', 'River'])\n",
1125
+ "prediction = model.predict(X_new)"
1126
+ ]
1127
+ },
1128
+ {
1129
+ "cell_type": "code",
1130
+ "execution_count": 55,
1131
+ "id": "1af2dbee",
1132
+ "metadata": {
1133
+ "scrolled": true
1134
+ },
1135
+ "outputs": [
1136
+ {
1137
+ "name": "stdout",
1138
+ "output_type": "stream",
1139
+ "text": [
1140
+ "[6.92990444]\n"
1141
+ ]
1142
+ }
1143
+ ],
1144
+ "source": [
1145
+ "print(prediction)"
1146
+ ]
1147
+ },
1148
+ {
1149
+ "cell_type": "code",
1150
+ "execution_count": 46,
1151
+ "id": "48d2f015",
1152
+ "metadata": {},
1153
+ "outputs": [
1154
+ {
1155
+ "data": {
1156
+ "text/plain": [
1157
+ "['./model.joblib']"
1158
+ ]
1159
+ },
1160
+ "execution_count": 46,
1161
+ "metadata": {},
1162
+ "output_type": "execute_result"
1163
+ }
1164
+ ],
1165
+ "source": [
1166
+ "from joblib import dump\n",
1167
+ "\n",
1168
+ "dump(model, './model.joblib')"
1169
+ ]
1170
+ },
1171
+ {
1172
+ "cell_type": "code",
1173
+ "execution_count": null,
1174
+ "id": "dfc16ebc-191e-472a-9c77-1d6ee33c37a4",
1175
+ "metadata": {},
1176
+ "outputs": [],
1177
+ "source": []
1178
+ }
1179
+ ],
1180
+ "metadata": {
1181
+ "kernelspec": {
1182
+ "display_name": "Python 3 (ipykernel)",
1183
+ "language": "python",
1184
+ "name": "python3"
1185
+ },
1186
+ "language_info": {
1187
+ "codemirror_mode": {
1188
+ "name": "ipython",
1189
+ "version": 3
1190
+ },
1191
+ "file_extension": ".py",
1192
+ "mimetype": "text/x-python",
1193
+ "name": "python",
1194
+ "nbconvert_exporter": "python",
1195
+ "pygments_lexer": "ipython3",
1196
+ "version": "3.12.7"
1197
+ },
1198
+ "vscode": {
1199
+ "interpreter": {
1200
+ "hash": "76d7c06053c3456e5600312cec90888656fc0ed30c03d8425b9dac6e4fc8e014"
1201
+ }
1202
+ }
1203
+ },
1204
+ "nbformat": 4,
1205
+ "nbformat_minor": 5
1206
+ }
FPS_Proj/Resources/model.joblib ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5fddf031e7e204c4ce956b743ea20e48d2e0c8b7486908dc9a40cdd56358eb14
3
+ size 904
FPS_Proj/Resources/newfin.xls ADDED
@@ -0,0 +1,1041 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Rainfall,River,Label
2
+ 6.2,4.95,0
3
+ 54.9,5.43,0
4
+ 16.4,4.57,0
5
+ 56.8,4.5,0
6
+ 167.4,4.28,0
7
+ 306,4.28,0
8
+ 437.8,4.35,0
9
+ 265.4,4.21,0
10
+ 318,4.06,0
11
+ 13,3.91,0
12
+ 12.9,3.84,0
13
+ 0,3.84,0
14
+ 17.8,3.77,0
15
+ 41.8,3.19,0
16
+ 15.6,3.52,0
17
+ 80.1,3.41,0
18
+ 42.2,4.06,0
19
+ 149.2,3.99,0
20
+ 452.3,4.35,0
21
+ 289.6,3.99,0
22
+ 362.2,4.06,0
23
+ 13.2,4.06,0
24
+ 0.7,3.77,0
25
+ 0,3.19,0
26
+ 11.5,3.62,0
27
+ 45.4,3.7,0
28
+ 27.3,3.7,0
29
+ 44.5,3.26,0
30
+ 278.6,3.19,0
31
+ 299.1,3.19,0
32
+ 428.5,3.12,0
33
+ 451.4,3.19,0
34
+ 217.3,3.33,0
35
+ 95.7,2.86,0
36
+ 0,3.04,0
37
+ 0,2.81,0
38
+ 4.2,2.81,0
39
+ 26.7,2.92,0
40
+ 58.7,2.99,0
41
+ 6,3.41,0
42
+ 153.5,3.48,0
43
+ 165.8,3.12,0
44
+ 461.9,2.76,0
45
+ 294.5,2.99,0
46
+ 279.4,3.04,0
47
+ 91.2,3.12,0
48
+ 512,14.8,1
49
+ 36.7,10.5,1
50
+ 221,7.65,1
51
+ 35.2,5.43,0
52
+ 98.7,5.08,0
53
+ 51,6.54,1
54
+ 155.9,5.71,0
55
+ 125.6,5.08,0
56
+ 470.6,4.64,0
57
+ 452,4.57,0
58
+ 189.4,4.57,0
59
+ 67.6,4.64,0
60
+ 0,4.5,0
61
+ 0,4.13,0
62
+ 0.4,3.91,0
63
+ 25.3,3.48,0
64
+ 6.3,3.55,0
65
+ 11,3.48,0
66
+ 92.3,3.19,0
67
+ 11,3.19,0
68
+ 11,3.26,0
69
+ 13,3.7,0
70
+ 17,3.26,0
71
+ 91,3.12,0
72
+ 0,3.12,0
73
+ 0,2.86,0
74
+ 13.3,2.81,0
75
+ 0.5,2.81,0
76
+ 135,2.76,0
77
+ 75.7,2.92,0
78
+ 127.4,2.81,0
79
+ 120.6,3.06,0
80
+ 282.2,2.86,0
81
+ 360.6,3.91,0
82
+ 98.5,3.77,0
83
+ 63.9,3.62,0
84
+ 1.5,3.19,0
85
+ 0.1,3.12,0
86
+ 6.1,3.04,0
87
+ 1.5,3.48,0
88
+ 27.7,3.91,0
89
+ 148.8,3.62,0
90
+ 154.7,3.48,0
91
+ 240,3.04,0
92
+ 408.9,3.62,0
93
+ 402.8,3.19,0
94
+ 126.6,3.48,0
95
+ 11.9,3.77,0
96
+ 0,3.33,0
97
+ 0,3.26,0
98
+ 19.1,3.48,0
99
+ 85.2,3.33,0
100
+ 37.4,2.65,0
101
+ 102.8,3.08,0
102
+ 55.1,3.12,0
103
+ 126.4,4.35,0
104
+ 485.4,5.98,0
105
+ 226.5,6.63,1
106
+ 358,5.34,0
107
+ 0,4.42,0
108
+ 0,3.62,0
109
+ 33.4,3.41,0
110
+ 13,3.84,0
111
+ 57.4,3.77,0
112
+ 8.6,3.62,0
113
+ 78,3.48,0
114
+ 152,3.26,0
115
+ 366,3.48,0
116
+ 402,3.91,0
117
+ 385.6,4.86,0
118
+ 257,4.57,0
119
+ 35.8,4.5,0
120
+ 417,19.3,1
121
+ 0,5.08,0
122
+ 112,8.15,1
123
+ 419,11.8,1
124
+ 7,3.77,0
125
+ 80.6,4.28,0
126
+ 68.8,9.05,1
127
+ 167.2,8.83,1
128
+ 349,26.9,1
129
+ 240.8,8.72,1
130
+ 273,13,1
131
+ 113.7,8.04,1
132
+ 356,9.17,1
133
+ 467.9,11.3,1
134
+ 432,9.95,1
135
+ 425,9.17,1
136
+ 223,6.82,1
137
+ 338,7,1
138
+ 204.2,6.08,1
139
+ 236,8.96,1
140
+ 237.8,13.9,1
141
+ 305.4,9.5,1
142
+ 448,18.4,1
143
+ 117.4,9.17,1
144
+ 317,7.92,1
145
+ 221,6.82,1
146
+ 217,6.63,1
147
+ 46.4,6.63,1
148
+ 57.2,7.1,1
149
+ 232,9.39,1
150
+ 34,5,0
151
+ 112,4.13,0
152
+ 226.6,14.2,1
153
+ 225.4,10.4,1
154
+ 98.2,9.73,1
155
+ 96.2,6.86,1
156
+ 96,6.17,1
157
+ 25.4,5.8,0
158
+ 132,6.45,1
159
+ 331,8.94,1
160
+ 76.4,7.47,1
161
+ 97.4,6.73,1
162
+ 70.8,7,1
163
+ 101.4,6.73,1
164
+ 277.2,5.89,0
165
+ 227.3,5.98,0
166
+ 421,18.2,1
167
+ 389,15.2,1
168
+ 543,32.9,1
169
+ 499,24.9,1
170
+ 2.4,39.1,1
171
+ 18,19.9,1
172
+ 9.4,19.2,1
173
+ 5,12.7,1
174
+ 154.6,9.5,1
175
+ 125.6,9.61,1
176
+ 388.3,52,1
177
+ 163,162,1
178
+ 172.6,86.5,1
179
+ 17.2,32.6,1
180
+ 0,56.1,1
181
+ 0,56.1,1
182
+ 20.4,56.1,1
183
+ 0,222,1
184
+ 50.6,53.4,1
185
+ 78.4,46.2,1
186
+ 167.6,54.2,1
187
+ 205.2,53.6,1
188
+ 232.2,31.8,1
189
+ 263,50.2,1
190
+ 109.4,32.4,1
191
+ 4.2,22.5,1
192
+ 0,18.7,1
193
+ 0,16.5,1
194
+ 12.2,24.1,1
195
+ 3.6,19,1
196
+ 36.2,169,1
197
+ 86,122,1
198
+ 70,62.3,1
199
+ 166,29.4,1
200
+ 304.8,28,1
201
+ 219.7,32.3,1
202
+ 95.6,152,1
203
+ 2,45.4,1
204
+ 0,40.6,1
205
+ 0,26.1,1
206
+ 33.1,20.6,1
207
+ 95.4,19,1
208
+ 45.2,26.5,1
209
+ 68.9,28.6,1
210
+ 90.4,24.6,1
211
+ 89.1,22.5,1
212
+ 478.5,22.2,1
213
+ 158.2,22.7,1
214
+ 258.5,21.1,1
215
+ 8.2,20.6,1
216
+ 340,56.9,1
217
+ 102,55.9,1
218
+ 380,73.9,1
219
+ 51.2,73.2,1
220
+ 403.4,98.2,1
221
+ 87.4,51.1,1
222
+ 151.2,37.5,1
223
+ 410,25.2,1
224
+ 329.4,35,1
225
+ 376.5,30.9,1
226
+ 210,37.6,1
227
+ 17,32.4,1
228
+ 6.2,28.7,1
229
+ 210.3,34.5,1
230
+ 15.6,31.8,1
231
+ 37.6,33.7,1
232
+ 11.6,66.6,1
233
+ 61.7,77.8,1
234
+ 77.8,38.9,1
235
+ 139.2,28.6,1
236
+ 362.2,74,1
237
+ 212.6,42,1
238
+ 199.1,73.5,1
239
+ 0.2,71.4,1
240
+ 0.8,44.1,1
241
+ 450.5,91.5,1
242
+ 12.4,78.9,1
243
+ 45.1,54.2,1
244
+ 32.8,41.5,1
245
+ 39.8,26.4,1
246
+ 197,24.8,1
247
+ 242,21.3,1
248
+ 223,23.4,1
249
+ 267.5,33,1
250
+ 134,18.3,1
251
+ 94.4,18.4,1
252
+ 234.1,33.9,1
253
+ 123.7,47.3,1
254
+ 2.5,42.9,1
255
+ 28.6,39.9,1
256
+ 44.8,34.7,1
257
+ 2.6,31.2,1
258
+ 119.5,29.9,1
259
+ 93.2,23.9,1
260
+ 264.7,19.1,1
261
+ 236.6,21.8,1
262
+ 112.2,28.6,1
263
+ 75.2,35,1
264
+ 0,31.1,1
265
+ 21,29.5,1
266
+ 1.5,24.4,1
267
+ 38.4,28.6,1
268
+ 86.3,29.4,1
269
+ 71.5,31.6,1
270
+ 51.6,369,1
271
+ 125.3,63.5,1
272
+ 281.4,48.9,1
273
+ 229.7,38,1
274
+ 46.5,29.9,1
275
+ 27.5,28.2,1
276
+ 0,28.6,1
277
+ 0,28.2,1
278
+ 0.2,28.8,1
279
+ 19.1,29,1
280
+ 6.6,26.3,1
281
+ 10.6,49.3,1
282
+ 189,18.1,1
283
+ 110.9,17.9,1
284
+ 414.5,16.7,1
285
+ 169.7,15.5,1
286
+ 151,16,1
287
+ 26.8,13.7,1
288
+ 0,12.9,1
289
+ 0,12.1,1
290
+ 14.8,10.6,1
291
+ 0,10.3,1
292
+ 47.4,9.61,1
293
+ 87.6,8.94,1
294
+ 148.6,8.27,1
295
+ 168.5,7.65,1
296
+ 216.2,6.54,1
297
+ 266.1,5.89,0
298
+ 103.3,5.52,0
299
+ 1.1,5.52,0
300
+ 0.3,5.89,0
301
+ 0,5.61,0
302
+ 212,6.08,1
303
+ 232,6.63,1
304
+ 295,6.91,1
305
+ 312,7.56,1
306
+ 313.2,7.74,1
307
+ 307,7.28,1
308
+ 307,7.28,1
309
+ 317,7.93,1
310
+ 312,7.56,1
311
+ 316.9,7.9,1
312
+ 547,12.4,1
313
+ 502,10.5,1
314
+ 495,9.61,1
315
+ 316,7.84,1
316
+ 309,7.37,1
317
+ 308,7,1
318
+ 295,6.91,1
319
+ 308,7,1
320
+ 445.4,8.98,1
321
+ 330,6.54,1
322
+ 315.6,7.65,1
323
+ 308.1,7,1
324
+ 231.8,6.73,1
325
+ 329.1,6.45,1
326
+ 212,6.08,1
327
+ 191,5.89,0
328
+ 187.3,5.61,0
329
+ 181,5.34,0
330
+ 175,5.24,0
331
+ 172,5.15,0
332
+ 161.2,4.93,0
333
+ 161.2,4.71,0
334
+ 150,4.64,0
335
+ 145.3,4.42,0
336
+ 121,4.21,0
337
+ 111,3.99,0
338
+ 0,4.21,0
339
+ 0,3.99,0
340
+ 111,3.77,0
341
+ 101,4.06,0
342
+ 95,4.42,0
343
+ 125,4.57,0
344
+ 121,4.21,0
345
+ 101,3.99,0
346
+ 121,4.21,0
347
+ 111,4.06,0
348
+ 101,3.91,0
349
+ 111,3.84,0
350
+ 101,3.33,0
351
+ 111,3.12,0
352
+ 141,2.92,0
353
+ 122,2.76,0
354
+ 121,2.6,0
355
+ 111,2.44,0
356
+ 101,2.5,0
357
+ 131,2.5,0
358
+ 101,2.39,0
359
+ 0,2.34,0
360
+ 111,2.44,0
361
+ 90,2.34,0
362
+ 78,2.44,0
363
+ 0,2.39,0
364
+ 0,2.44,0
365
+ 0,2.34,0
366
+ 0,2.55,0
367
+ 0,2.39,0
368
+ 412,7.19,1
369
+ 444,6.35,1
370
+ 290,5.89,0
371
+ 285,5.19,0
372
+ 198,4.64,0
373
+ 200,4.35,0
374
+ 101,3.99,0
375
+ 99,3.7,0
376
+ 98,3.55,0
377
+ 100,3.48,0
378
+ 0,3.12,0
379
+ 78,3.26,0
380
+ 121,3.33,0
381
+ 100,3.04,0
382
+ 0,2.99,0
383
+ 0,2.81,0
384
+ 0,2.76,0
385
+ 0,2.97,0
386
+ 200,3.12,0
387
+ 0,2.97,0
388
+ 0,2.97,0
389
+ 0,2.92,0
390
+ 0,2.76,0
391
+ 0,2.6,0
392
+ 0,2.81,0
393
+ 0,2.81,0
394
+ 0,2.65,0
395
+ 0,2.97,0
396
+ 0,2.81,0
397
+ 0,2.99,0
398
+ 200,3.33,0
399
+ 100,3.33,0
400
+ 114,3.55,0
401
+ 100,3.33,0
402
+ 0,2.81,0
403
+ 0,2.71,0
404
+ 0,2.71,0
405
+ 321,8.01,1
406
+ 350,8.99,1
407
+ 321,8.72,1
408
+ 300,7.37,1
409
+ 300,6.26,1
410
+ 305,6.71,1
411
+ 90,3.77,0
412
+ 100,3.7,0
413
+ 45,3.7,0
414
+ 100,4.06,0
415
+ 0,3.7,0
416
+ 0,3.55,0
417
+ 0,3.33,0
418
+ 0,3.41,0
419
+ 0,3.26,0
420
+ 0,3.06,0
421
+ 0,3.12,0
422
+ 0,3.12,0
423
+ 0,2.5,0
424
+ 0,1.92,0
425
+ 0,1.92,0
426
+ 0,2.34,0
427
+ 0,2.18,0
428
+ 0,2.23,0
429
+ 0,2.5,0
430
+ 0,2.71,0
431
+ 0,2.39,0
432
+ 0,2.23,0
433
+ 0,2.34,0
434
+ 0,2.23,0
435
+ 0,2.18,0
436
+ 0,2.18,0
437
+ 0,2.18,0
438
+ 11.1,2.39,0
439
+ 0,2.02,0
440
+ 10.2,2.34,0
441
+ 0,2.18,0
442
+ 12.7,2.44,0
443
+ 13,2.55,0
444
+ 15,2.76,0
445
+ 10.2,2.34,0
446
+ 0,2.18,0
447
+ 13,2.5,0
448
+ 0,1.97,0
449
+ 10.5,2.39,0
450
+ 0,2.02,0
451
+ 0,2.02,0
452
+ 14,2.6,0
453
+ 0,2.02,0
454
+ 0,2.02,0
455
+ 0,2.13,0
456
+ 0,2.02,0
457
+ 0,1.92,0
458
+ 0,1.97,0
459
+ 0,1.92,0
460
+ 0,1.92,0
461
+ 400,13.8,1
462
+ 95.5,3.1,0
463
+ 350,8.87,1
464
+ 79,5.19,0
465
+ 78,2.94,0
466
+ 200,5.24,0
467
+ 440,15.9,1
468
+ 100,5.15,0
469
+ 0,5.15,0
470
+ 13,5.98,0
471
+ 0,4.73,0
472
+ 0,3.91,0
473
+ 11,3.91,0
474
+ 0,3.84,0
475
+ 0,3.48,0
476
+ 0,3.41,0
477
+ 0,2.65,0
478
+ 43,3.16,0
479
+ 50,3.5,0
480
+ 0,2.5,0
481
+ 0,2.39,0
482
+ 0,1.97,0
483
+ 32,2.34,0
484
+ 50,2.5,0
485
+ 0,2.34,0
486
+ 0,2.13,0
487
+ 50,2.34,0
488
+ 0,2.02,0
489
+ 50,2.07,0
490
+ 50,2.13,0
491
+ 70,2.44,0
492
+ 30,2.44,0
493
+ 35,2.44,0
494
+ 0,2.23,0
495
+ 0,2.13,0
496
+ 13,2.13,0
497
+ 75,3.84,0
498
+ 100,5.02,0
499
+ 0,3.28,0
500
+ 35,3.55,0
501
+ 17,3.59,0
502
+ 0,2.55,0
503
+ 0,2.02,0
504
+ 54,2.34,0
505
+ 0,2.07,0
506
+ 100,3.41,0
507
+ 0,3.26,0
508
+ 0,2.65,0
509
+ 0,2.29,0
510
+ 0,2.13,0
511
+ 0,1.92,0
512
+ 0,1.86,0
513
+ 50,2.07,0
514
+ 45,2.23,0
515
+ 0,1.97,0
516
+ 0,2.13,0
517
+ 0,2.13,0
518
+ 0,2.13,0
519
+ 100,2.6,0
520
+ 100,5.14,0
521
+ 0,2.29,0
522
+ 0,2.55,0
523
+ 0,2.13,0
524
+ 0,2.02,0
525
+ 0,2.02,0
526
+ 0,2.13,0
527
+ 0,1.76,0
528
+ 0,1.76,0
529
+ 0,1.92,0
530
+ 0,1.71,0
531
+ 0,1.65,0
532
+ 0,1.71,0
533
+ 0,1.71,0
534
+ 0,1.6,0
535
+ 45,2.91,0
536
+ 0,2.29,0
537
+ 0,2.23,0
538
+ 100,5.46,0
539
+ 0,2.02,0
540
+ 50,2.44,0
541
+ 345,7.08,1
542
+ 555,44,1
543
+ 440,41.4,1
544
+ 320,6.08,1
545
+ 325,6.26,1
546
+ 100,5.6,0
547
+ 301.3,6.35,1
548
+ 0,4.64,0
549
+ 0,3.84,0
550
+ 350,7.19,1
551
+ 500,21.5,1
552
+ 495.9,23.4,1
553
+ 490,22.2,1
554
+ 440.3,15.6,1
555
+ 400.1,11,1
556
+ 404.5,15,1
557
+ 404,14.9,1
558
+ 305,8.83,1
559
+ 407,24.5,1
560
+ 407,21.1,1
561
+ 407,22.6,1
562
+ 415.3,15.5,1
563
+ 500.7,43.7,1
564
+ 505.7,63.1,1
565
+ 200,33.9,1
566
+ 200.9,29.9,1
567
+ 300.4,51,1
568
+ 121,21.7,1
569
+ 134,16.3,1
570
+ 200,25,1
571
+ 245.4,35.8,1
572
+ 595.6,91.3,1
573
+ 598,103,1
574
+ 498,31.8,1
575
+ 622,68.1,1
576
+ 321,37.5,1
577
+ 398.5,44.5,1
578
+ 201.4,29,1
579
+ 201,29.4,1
580
+ 200,27.3,1
581
+ 165.4,16.7,1
582
+ 162,122,1
583
+ 200,33.1,1
584
+ 2198.1,27.7,1
585
+ 445.4,22.8,1
586
+ 330,17.1,1
587
+ 315.6,15.9,1
588
+ 308.1,48.8,1
589
+ 231.8,54.9,1
590
+ 329.1,29.4,1
591
+ 212,33.8,1
592
+ 191,22.3,1
593
+ 185,16.2,1
594
+ 191,23.5,1
595
+ 191,22.7,1
596
+ 191,16.8,1
597
+ 387,46.4,1
598
+ 400,50.7,1
599
+ 412,54.7,1
600
+ 300.3,23.3,1
601
+ 398,36.2,1
602
+ 300.2,31,1
603
+ 298.8,27.2,1
604
+ 325.6,47.3,1
605
+ 300.2,24.6,1
606
+ 301.5,27.7,1
607
+ 212,23.1,1
608
+ 191,23.5,1
609
+ 185,36,1
610
+ 191,50.8,1
611
+ 191,22.1,1
612
+ 191,102,1
613
+ 387,29,1
614
+ 400,23.5,1
615
+ 412,40.6,1
616
+ 200,26.6,1
617
+ 195,19.3,1
618
+ 193,15.3,1
619
+ 190,14.2,1
620
+ 200,17.4,1
621
+ 210.7,23.4,1
622
+ 100.7,101,1
623
+ 600,92.4,1
624
+ 605.3,99.1,1
625
+ 500,44.7,1
626
+ 621,116,1
627
+ 400,108,1
628
+ 595,82.9,1
629
+ 212,48.7,1
630
+ 191,48.7,1
631
+ 185,25.6,1
632
+ 191,22.3,1
633
+ 191,25.4,1
634
+ 191,17.4,1
635
+ 185,16.2,1
636
+ 190,18.8,1
637
+ 175,15.3,1
638
+ 150,14.5,1
639
+ 135,13.7,1
640
+ 135,13.7,1
641
+ 100,7.93,1
642
+ 95,7.47,1
643
+ 185,9.58,1
644
+ 190,10.5,1
645
+ 175,9.95,1
646
+ 150,10.1,1
647
+ 135,9.61,1
648
+ 135,9.17,1
649
+ 100,8.94,1
650
+ 351,17.1,1
651
+ 100,9.05,1
652
+ 100.2,8.83,1
653
+ 100.5,9.5,1
654
+ 95,8.27,1
655
+ 90.3,7.93,1
656
+ 0,5.89,0
657
+ 100.5,6.26,1
658
+ 90,6.26,1
659
+ 73,6.17,1
660
+ 99.7,7.19,1
661
+ 73.1,6.73,1
662
+ 70,6.73,1
663
+ 65,6.45,1
664
+ 65,6.45,1
665
+ 0,5.98,0
666
+ 102.3,6.17,1
667
+ 95.7,5.89,0
668
+ 86.7,5.89,0
669
+ 50,5.8,0
670
+ 50.3,5.19,0
671
+ 49.6,5.1,0
672
+ 0,4.71,0
673
+ 0,4.42,0
674
+ 84.6,4.93,0
675
+ 100.5,5,0
676
+ 90.4,4.5,0
677
+ 92.1,4.64,0
678
+ 70.7,3.83,0
679
+ 101.4,4.57,0
680
+ 101,4.66,0
681
+ 100,4.59,0
682
+ 98,4.5,0
683
+ 100.8,4.66,0
684
+ 101.1,4.97,0
685
+ 85.3,4.57,0
686
+ 80.3,4.57,0
687
+ 75.4,4.42,0
688
+ 80.3,4.57,0
689
+ 75.4,4.42,0
690
+ 82.7,4.57,0
691
+ 75.3,4.42,0
692
+ 65.3,4.13,0
693
+ 60.1,4.13,0
694
+ 121,3.84,0
695
+ 116,3.84,0
696
+ 113,3.84,0
697
+ 118,3.79,0
698
+ 111,3.79,0
699
+ 109,3.72,0
700
+ 109,3.72,0
701
+ 109,3.86,0
702
+ 109,3.79,0
703
+ 111,3.79,0
704
+ 115,3.79,0
705
+ 119,3.74,0
706
+ 121,3.88,0
707
+ 131,3.88,0
708
+ 98,3.88,0
709
+ 118,3.74,0
710
+ 118,3.74,0
711
+ 120,3.74,0
712
+ 119,3.74,0
713
+ 120,3.74,0
714
+ 119,3.74,0
715
+ 116,3.74,0
716
+ 93,2.9,0
717
+ 121,3.99,0
718
+ 0,2.5,0
719
+ 0,2.34,0
720
+ 91,2.76,0
721
+ 89.5,2.55,0
722
+ 93,2.96,0
723
+ 99,3.12,0
724
+ 95,3.02,0
725
+ 93,2.96,0
726
+ 93,2.96,0
727
+ 93,2.96,0
728
+ 89.5,2.55,0
729
+ 89.5,2.55,0
730
+ 89.5,2.55,0
731
+ 89.5,2.55,0
732
+ 89,2.44,0
733
+ 89.5,2.55,0
734
+ 0,2.34,0
735
+ 89,2.44,0
736
+ 89,2.44,0
737
+ 89,2.44,0
738
+ 89.5,2.55,0
739
+ 89.3,2.5,0
740
+ 89.3,2.5,0
741
+ 88.9,2.39,0
742
+ 89.3,2.5,0
743
+ 88.9,2.39,0
744
+ 89.3,2.5,0
745
+ 88.3,2.34,0
746
+ 88.9,2.39,0
747
+ 88.9,2.39,0
748
+ 88.9,2.39,0
749
+ 88.9,2.39,0
750
+ 88.9,2.39,0
751
+ 199,4.93,0
752
+ 195,3.06,0
753
+ 91,2.65,0
754
+ 91,2.65,0
755
+ 91,2.65,0
756
+ 90.7,2.6,0
757
+ 89.5,2.55,0
758
+ 89.3,2.5,0
759
+ 89.3,2.5,0
760
+ 89.3,2.5,0
761
+ 88.9,2.39,0
762
+ 88.9,2.39,0
763
+ 88.9,2.39,0
764
+ 0,2.44,0
765
+ 0,2.13,0
766
+ 0,2.07,0
767
+ 0,2.07,0
768
+ 0,2.07,0
769
+ 0,2.07,0
770
+ 0,2.07,0
771
+ 0,1.65,0
772
+ 0,1.86,0
773
+ 0,1.81,0
774
+ 0,1.81,0
775
+ 88,2.29,0
776
+ 88,2.29,0
777
+ 0,2.13,0
778
+ 85,2.23,0
779
+ 0,2.13,0
780
+ 500,16.8,1
781
+ 212,6.9,1
782
+ 98,5.04,0
783
+ 70,4.13,0
784
+ 195,3.01,0
785
+ 200,3.81,0
786
+ 101,3.81,0
787
+ 132,3.59,0
788
+ 101,3.88,0
789
+ 100,3.79,0
790
+ 100,3.7,0
791
+ 99.9,2.8,0
792
+ 0,2.65,0
793
+ 0,2.6,0
794
+ 85,2.23,0
795
+ 0,2.29,0
796
+ 0,2.13,0
797
+ 0,2.13,0
798
+ 0,2.07,0
799
+ 0,2.13,0
800
+ 96,2.34,0
801
+ 96,2.34,0
802
+ 0,2.02,0
803
+ 85,2.23,0
804
+ 0,2.02,0
805
+ 0,2.02,0
806
+ 0,2.02,0
807
+ 0,2.02,0
808
+ 0,2.02,0
809
+ 0,1.92,0
810
+ 0,1.92,0
811
+ 0,1.92,0
812
+ 0,2.13,0
813
+ 85,2.23,0
814
+ 96,2.34,0
815
+ 96,2.34,0
816
+ 80,2.18,0
817
+ 0,1.92,0
818
+ 0,2.02,0
819
+ 0,1.92,0
820
+ 0,1.81,0
821
+ 0,1.81,0
822
+ 0,1.6,0
823
+ 0,1.5,0
824
+ 0,1.39,0
825
+ 0,1.37,0
826
+ 0,1.33,0
827
+ 0,1.3,0
828
+ 0,1.28,0
829
+ 0,1.26,0
830
+ 0,1.22,0
831
+ 0,1.26,0
832
+ 0,1.3,0
833
+ 0,1.3,0
834
+ 0,1.33,0
835
+ 0,1.33,0
836
+ 0,1.33,0
837
+ 0,1.33,0
838
+ 0,1.35,0
839
+ 0,1.92,0
840
+ 0,1.81,0
841
+ 0,1.92,0
842
+ 0,1.6,0
843
+ 125.5,3.34,0
844
+ 158.1,4.36,0
845
+ 157.3,4.32,0
846
+ 135.6,3.88,0
847
+ 118.2,3.04,0
848
+ 120.8,3.1,0
849
+ 119.2,3.05,0
850
+ 120.8,3.1,0
851
+ 99.8,2.78,0
852
+ 99.2,2.71,0
853
+ 92,2.23,0
854
+ 0,1.55,0
855
+ 0,1.39,0
856
+ 0,1.39,0
857
+ 0,1.39,0
858
+ 0,1.28,0
859
+ 0,1.3,0
860
+ 98,2.35,0
861
+ 0,1.35,0
862
+ 0,1.77,0
863
+ 0,1.76,0
864
+ 0,1.35,0
865
+ 0,1.33,0
866
+ 11.1,1.33,0
867
+ 0,2.34,0
868
+ 0,2.39,0
869
+ 100.1,2.94,0
870
+ 121.7,3.16,0
871
+ 160.2,4.35,0
872
+ 123,6.02,1
873
+ 115,3.55,0
874
+ 0,2.65,0
875
+ 0,2.65,0
876
+ 321,9.75,1
877
+ 193.7,5.57,0
878
+ 158.1,3.99,0
879
+ 521,29.4,1
880
+ 279,8.58,1
881
+ 497,13.3,1
882
+ 499,14,1
883
+ 511,23.7,1
884
+ 311,10.1,1
885
+ 191,5.34,0
886
+ 164.5,4.5,0
887
+ 160.2,4.13,0
888
+ 221,8.61,1
889
+ 195,6.45,1
890
+ 470,11.4,1
891
+ 162,4.28,0
892
+ 159,4.06,0
893
+ 125,3.45,0
894
+ 165,4.57,0
895
+ 121,3.12,0
896
+ 191,5.34,0
897
+ 158.1,3.99,0
898
+ 200,5.89,0
899
+ 519.9,30.7,1
900
+ 498,17.7,1
901
+ 532,39.5,1
902
+ 535,41,1
903
+ 499,14.1,1
904
+ 250,7.37,1
905
+ 600,65.3,1
906
+ 500,18.1,1
907
+ 521,34.4,1
908
+ 525,36,1
909
+ 495,15,1
910
+ 499,15.1,1
911
+ 499,15.3,1
912
+ 495,14.2,1
913
+ 421,10.4,1
914
+ 221,7.93,1
915
+ 275,8.46,1
916
+ 221,7.97,1
917
+ 205,6.82,1
918
+ 495,14,1
919
+ 500,16.6,1
920
+ 595,44.9,1
921
+ 510,24.4,1
922
+ 510,20,1
923
+ 599,67.2,1
924
+ 595,41.3,1
925
+ 510,21.3,1
926
+ 430,14.5,1
927
+ 507,19.1,1
928
+ 525,31.7,1
929
+ 510,24.2,1
930
+ 510,23.6,1
931
+ 509,20.1,1
932
+ 510,25.6,1
933
+ 505,18,1
934
+ 509,20.6,1
935
+ 650,101,1
936
+ 596,48.3,1
937
+ 597,51.9,1
938
+ 598,54.5,1
939
+ 587,49.9,1
940
+ 525,31.5,1
941
+ 525,32.8,1
942
+ 510,23.4,1
943
+ 525,32.2,1
944
+ 510,24.1,1
945
+ 535,35.6,1
946
+ 514,28.3,1
947
+ 582,43,1
948
+ 535,36.1,1
949
+ 597,52.2,1
950
+ 511,27.8,1
951
+ 515,29.3,1
952
+ 584,47.5,1
953
+ 525,32,1
954
+ 508.6,25.3,1
955
+ 597.2,53.4,1
956
+ 612,64.8,1
957
+ 612,65,1
958
+ 604,57,1
959
+ 525.9,34.6,1
960
+ 521,31.8,1
961
+ 579.8,40.6,1
962
+ 578.2,39.4,1
963
+ 518.7,29.8,1
964
+ 517.8,28.6,1
965
+ 510,24.4,1
966
+ 510,24.2,1
967
+ 509.9,23.4,1
968
+ 510,23.7,1
969
+ 510.8,26,1
970
+ 613,68.6,1
971
+ 510,24.4,1
972
+ 510,23.5,1
973
+ 509,22,1
974
+ 508.8,21.3,1
975
+ 510,24.1,1
976
+ 509.9,23.4,1
977
+ 518.5,29,1
978
+ 508.9,21.8,1
979
+ 620,76.3,1
980
+ 510.6,26.7,1
981
+ 507,19.9,1
982
+ 498,15.9,1
983
+ 496,14.2,1
984
+ 500,16.8,1
985
+ 502,17.8,1
986
+ 480,13.7,1
987
+ 455,11.8,1
988
+ 445,10.2,1
989
+ 519,30.8,1
990
+ 497.7,15.5,1
991
+ 445,10.1,1
992
+ 445,10.1,1
993
+ 445,10.5,1
994
+ 445,10.7,1
995
+ 445.1,10.9,1
996
+ 445,10.1,1
997
+ 442,9.84,1
998
+ 444,11.3,1
999
+ 518.9,30.4,1
1000
+ 455,11.1,1
1001
+ 445.1,10.4,1
1002
+ 389,7.56,1
1003
+ 321,7.19,1
1004
+ 389,7.56,1
1005
+ 353,7.37,1
1006
+ 300,6.82,1
1007
+ 290,6.26,1
1008
+ 200,5.89,0
1009
+ 193.1,5.52,0
1010
+ 185,5,0
1011
+ 185,5,0
1012
+ 170,4.93,0
1013
+ 193,5.15,0
1014
+ 193,5.15,0
1015
+ 161.2,4.86,0
1016
+ 161.2,4.86,0
1017
+ 150,4.42,0
1018
+ 145.3,4.21,0
1019
+ 121,3.91,0
1020
+ 111,3.41,0
1021
+ 0,3.19,0
1022
+ 0,3.04,0
1023
+ 111,3.41,0
1024
+ 101,3.04,0
1025
+ 95,2.97,0
1026
+ 0,2.86,0
1027
+ 0,2.94,0
1028
+ 0,2.81,0
1029
+ 0,2.76,0
1030
+ 0,2.76,0
1031
+ 0,1.71,0
1032
+ 0,1.55,0
1033
+ 0,1.55,0
1034
+ 0,1.07,0
1035
+ 0,1.01,0
1036
+ 0,0.942,0
1037
+ 0,0.942,0
1038
+ 0,0.878,0
1039
+ 0,0.835,0
1040
+ 0,1.99,0
1041
+ 0,2.07,0
FPS_Proj/Resources/test_data.xls ADDED
@@ -0,0 +1,209 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Rainfall,River,Label
2
+ 169.7,15.5,1
3
+ 70.8,7.0,1
4
+ 505.0,18.0,1
5
+ 0.0,1.76,0
6
+ 78.0,2.44,0
7
+ 68.8,9.05,1
8
+ 0.0,2.02,0
9
+ 0.0,1.92,0
10
+ 0.0,2.02,0
11
+ 90.0,2.34,0
12
+ 54.0,2.34,0
13
+ 1.5,24.4,1
14
+ 499.0,14.0,1
15
+ 172.0,5.15,0
16
+ 0.0,1.92,0
17
+ 0.0,3.12,0
18
+ 0.0,1.92,0
19
+ 0.0,3.91,0
20
+ 0.0,2.94,0
21
+ 17.2,32.6,1
22
+ 229.7,38.0,1
23
+ 0.0,2.02,0
24
+ 98.7,5.08,0
25
+ 351.0,17.1,1
26
+ 95.0,2.97,0
27
+ 582.0,43.0,1
28
+ 350.0,7.19,1
29
+ 88.9,2.39,0
30
+ 70.7,3.83,0
31
+ 321.0,8.01,1
32
+ 13.2,4.06,0
33
+ 0.0,2.5,0
34
+ 11.0,3.19,0
35
+ 96.0,2.34,0
36
+ 308.0,7.0,1
37
+ 0.0,2.07,0
38
+ 54.9,5.43,0
39
+ 125.5,3.34,0
40
+ 0.0,56.1,1
41
+ 0.0,2.71,0
42
+ 442.0,9.84,1
43
+ 120.8,3.1,0
44
+ 109.0,3.72,0
45
+ 535.0,41.0,1
46
+ 37.6,33.7,1
47
+ 119.0,3.74,0
48
+ 199.0,4.93,0
49
+ 100.0,3.7,0
50
+ 95.0,3.02,0
51
+ 95.5,3.1,0
52
+ 121.0,21.7,1
53
+ 47.4,9.61,1
54
+ 0.0,3.04,0
55
+ 0.0,2.65,0
56
+ 191.0,17.4,1
57
+ 145.3,4.42,0
58
+ 32.8,41.5,1
59
+ 358.0,5.34,0
60
+ 0.0,3.99,0
61
+ 275.0,8.46,1
62
+ 0.0,0.942,0
63
+ 95.6,152.0,1
64
+ 587.0,49.9,1
65
+ 0.0,0.835,0
66
+ 6.1,3.04,0
67
+ 101.0,3.04,0
68
+ 510.0,21.3,1
69
+ 389.0,7.56,1
70
+ 14.0,2.6,0
71
+ 0.0,3.26,0
72
+ 445.0,10.7,1
73
+ 75.2,35.0,1
74
+ 200.0,26.6,1
75
+ 0.0,1.92,0
76
+ 223.0,23.4,1
77
+ 362.2,4.06,0
78
+ 100.0,5.46,0
79
+ 500.7,43.7,1
80
+ 120.0,3.74,0
81
+ 0.0,2.81,0
82
+ 26.8,13.7,1
83
+ 78.0,3.48,0
84
+ 597.2,53.4,1
85
+ 44.8,34.7,1
86
+ 330.0,17.1,1
87
+ 404.5,15.0,1
88
+ 131.0,2.5,0
89
+ 157.3,4.32,0
90
+ 0.0,2.13,0
91
+ 100.0,5.14,0
92
+ 28.6,39.9,1
93
+ 402.8,3.19,0
94
+ 0.0,3.26,0
95
+ 121.0,4.21,0
96
+ 125.6,9.61,1
97
+ 0.0,2.34,0
98
+ 317.0,7.93,1
99
+ 181.0,5.34,0
100
+ 495.0,14.0,1
101
+ 0.0,1.3,0
102
+ 330.0,6.54,1
103
+ 158.2,22.7,1
104
+ 421.0,18.2,1
105
+ 0.0,4.71,0
106
+ 95.0,8.27,1
107
+ 500.0,16.6,1
108
+ 599.0,67.2,1
109
+ 8.6,3.62,0
110
+ 307.0,7.28,1
111
+ 36.2,169.0,1
112
+ 595.6,91.3,1
113
+ 0.0,18.7,1
114
+ 500.0,44.7,1
115
+ 0.0,2.39,0
116
+ 153.5,3.48,0
117
+ 75.7,2.92,0
118
+ 189.4,4.57,0
119
+ 190.0,18.8,1
120
+ 512.0,14.8,1
121
+ 90.4,4.5,0
122
+ 584.0,47.5,1
123
+ 38.4,28.6,1
124
+ 0.0,2.6,0
125
+ 125.3,63.5,1
126
+ 498.0,17.7,1
127
+ 191.0,23.5,1
128
+ 535.0,35.6,1
129
+ 125.0,3.45,0
130
+ 0.0,2.71,0
131
+ 295.0,6.91,1
132
+ 226.5,6.63,1
133
+ 502.0,10.5,1
134
+ 70.0,4.13,0
135
+ 325.0,6.26,1
136
+ 85.0,2.23,0
137
+ 41.8,3.19,0
138
+ 490.0,22.2,1
139
+ 0.0,2.02,0
140
+ 0.0,2.39,0
141
+ 445.4,22.8,1
142
+ 350.0,8.99,1
143
+ 89.3,2.5,0
144
+ 51.6,369.0,1
145
+ 11.0,3.26,0
146
+ 0.0,2.76,0
147
+ 0.0,1.3,0
148
+ 101.0,3.99,0
149
+ 518.5,29.0,1
150
+ 100.1,2.94,0
151
+ 6.3,3.55,0
152
+ 597.0,51.9,1
153
+ 168.5,7.65,1
154
+ 100.0,3.79,0
155
+ 0.2,71.4,1
156
+ 0.0,1.92,0
157
+ 119.5,29.9,1
158
+ 266.1,5.89,0
159
+ 112.0,8.15,1
160
+ 0.0,1.92,0
161
+ 93.0,2.96,0
162
+ 0.0,1.86,0
163
+ 89.3,2.5,0
164
+ 331.0,8.94,1
165
+ 440.0,41.4,1
166
+ 160.2,4.35,0
167
+ 91.0,2.76,0
168
+ 50.0,3.5,0
169
+ 15.6,3.52,0
170
+ 0.0,1.92,0
171
+ 0.0,1.33,0
172
+ 0.0,1.92,0
173
+ 0.0,2.39,0
174
+ 88.9,2.39,0
175
+ 622.0,68.1,1
176
+ 0.0,1.39,0
177
+ 17.0,3.26,0
178
+ 44.5,3.26,0
179
+ 175.0,9.95,1
180
+ 217.3,3.33,0
181
+ 189.0,18.1,1
182
+ 0.0,1.97,0
183
+ 217.0,6.63,1
184
+ 92.1,4.64,0
185
+ 485.4,5.98,0
186
+ 440.3,15.6,1
187
+ 73.1,6.73,1
188
+ 0.0,2.34,0
189
+ 100.0,4.06,0
190
+ 0.0,2.5,0
191
+ 33.4,3.41,0
192
+ 221.0,8.61,1
193
+ 119.0,3.74,0
194
+ 0.0,2.02,0
195
+ 216.2,6.54,1
196
+ 14.8,10.6,1
197
+ 50.3,5.19,0
198
+ 0.0,12.1,1
199
+ 86.3,29.4,1
200
+ 0.0,2.02,0
201
+ 510.0,24.1,1
202
+ 0.0,4.64,0
203
+ 65.3,4.13,0
204
+ 318.0,4.06,0
205
+ 223.0,6.82,1
206
+ 35.0,3.55,0
207
+ 102.3,6.17,1
208
+ 70.0,62.3,1
209
+ 2.5,42.9,1
FPS_Proj/db.sqlite3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9d52451d33bfd46aacfc07cef364c7e59d0847400a51d1837031e5c0dd15c446
3
+ size 131072
FPS_Proj/manage.py ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python
2
+ """Django's command-line utility for administrative tasks."""
3
+ import os
4
+ import sys
5
+
6
+
7
+ def main():
8
+ """Run administrative tasks."""
9
+ os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'FPS_Proj.settings')
10
+ try:
11
+ from django.core.management import execute_from_command_line
12
+ except ImportError as exc:
13
+ raise ImportError(
14
+ "Couldn't import Django. Are you sure it's installed and "
15
+ "available on your PYTHONPATH environment variable? Did you "
16
+ "forget to activate a virtual environment?"
17
+ ) from exc
18
+ execute_from_command_line(sys.argv)
19
+
20
+
21
+ if __name__ == '__main__':
22
+ main()
FPS_Proj/predictor/__init__.py ADDED
File without changes
FPS_Proj/predictor/__pycache__/__init__.cpython-311.pyc ADDED
Binary file (186 Bytes). View file
 
FPS_Proj/predictor/__pycache__/admin.cpython-311.pyc ADDED
Binary file (241 Bytes). View file
 
FPS_Proj/predictor/__pycache__/apps.cpython-311.pyc ADDED
Binary file (563 Bytes). View file
 
FPS_Proj/predictor/__pycache__/forms.cpython-311.pyc ADDED
Binary file (696 Bytes). View file
 
FPS_Proj/predictor/__pycache__/models.cpython-311.pyc ADDED
Binary file (238 Bytes). View file
 
FPS_Proj/predictor/__pycache__/urls.cpython-311.pyc ADDED
Binary file (384 Bytes). View file
 
FPS_Proj/predictor/__pycache__/views.cpython-311.pyc ADDED
Binary file (1.24 kB). View file
 
FPS_Proj/predictor/admin.py ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ from django.contrib import admin
2
+
3
+ # Register your models here.
FPS_Proj/predictor/apps.py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ from django.apps import AppConfig
2
+
3
+
4
+ class PredictorConfig(AppConfig):
5
+ default_auto_field = 'django.db.models.BigAutoField'
6
+ name = 'predictor'
FPS_Proj/predictor/forms.py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ # predictor/forms.py
2
+ from django import forms
3
+
4
+ class PredictionForm(forms.Form):
5
+ rainfall = forms.FloatField(label='Rainfall', required=True)
6
+ river_level = forms.FloatField(label='River Level', required=True)
FPS_Proj/predictor/migrations/__init__.py ADDED
File without changes
FPS_Proj/predictor/migrations/__pycache__/__init__.cpython-311.pyc ADDED
Binary file (197 Bytes). View file
 
FPS_Proj/predictor/model.joblib ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5fddf031e7e204c4ce956b743ea20e48d2e0c8b7486908dc9a40cdd56358eb14
3
+ size 904
FPS_Proj/predictor/models.py ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ from django.db import models
2
+
3
+ # Create your models here.
FPS_Proj/predictor/templates/predictor/predict.html ADDED
@@ -0,0 +1,101 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Flood Prediction (Bagmati River)</title>
5
+ <style>
6
+ body {
7
+ font-family: Arial, sans-serif;
8
+ display: flex;
9
+ justify-content: center;
10
+ align-items: center;
11
+ height: 100vh;
12
+ margin: 0;
13
+ transition: background 0.5s ease;
14
+ }
15
+
16
+ .card {
17
+ background: white;
18
+ padding: 30px 40px;
19
+ border-radius: 10px;
20
+ box-shadow: 0 4px 12px rgba(0,0,0,0.1);
21
+ width: 100%;
22
+ max-width: 400px;
23
+ transition: all 0.5s ease;
24
+ }
25
+
26
+ h1 {
27
+ text-align: center;
28
+ margin-bottom: 20px;
29
+ }
30
+
31
+ form {
32
+ display: flex;
33
+ flex-direction: column;
34
+ }
35
+
36
+ label {
37
+ margin: 10px 0 5px;
38
+ font-weight: bold;
39
+ }
40
+
41
+ input[type="text"], input[type="number"] {
42
+ padding: 10px;
43
+ border: 1px solid #ccc;
44
+ border-radius: 6px;
45
+ font-size: 16px;
46
+ }
47
+
48
+ button {
49
+ margin-top: 20px;
50
+ padding: 10px;
51
+ background: #007bff;
52
+ color: white;
53
+ border: none;
54
+ border-radius: 6px;
55
+ cursor: pointer;
56
+ font-size: 16px;
57
+ }
58
+
59
+ button:hover {
60
+ background: #0056b3;
61
+ }
62
+
63
+ .result {
64
+ text-align: center;
65
+ margin-top: 20px;
66
+ font-weight: bold;
67
+ font-size: 18px;
68
+ }
69
+
70
+ .high-risk {
71
+ color: red;
72
+ }
73
+
74
+ .low-risk {
75
+ color: green;
76
+ }
77
+ </style>
78
+
79
+ </head>
80
+ <body>
81
+ <div class="card">
82
+ <h1>Bagmati River Flood</h1>
83
+
84
+ <form method="post">
85
+ {% csrf_token %}
86
+ {{ form.as_p }}
87
+ <button type="submit">Predict</button>
88
+ </form>
89
+
90
+ {% if predicted_value is not None %}
91
+ <div class="result {% if predicted_value > 0.6 %}high-risk{% else %}low-risk{% endif %}">
92
+ Status: {% if predicted_value > 0.6 %}
93
+ High Chance of Flooding.
94
+ {% else %}
95
+ Low or No Chance of Flood.
96
+ {% endif %}
97
+ </div>
98
+ {% endif %}
99
+ </div>
100
+ </body>
101
+ </html>
FPS_Proj/predictor/tests.py ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ from django.test import TestCase
2
+
3
+ # Create your tests here.
FPS_Proj/predictor/urls.py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ from django.urls import path
2
+ from .views import predict_view
3
+
4
+ urlpatterns = [
5
+ path('', predict_view, name='predict_view'),
6
+ ]
FPS_Proj/predictor/views.py ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # from django.shortcuts import render
2
+ # import numpy as np
3
+ # import joblib
4
+
5
+ # # Load your model
6
+ # model = joblib.load('predictor/model.joblib') # Adjust path if needed
7
+
8
+ # def predict_view(request):
9
+ # prediction = None
10
+
11
+ # if request.method == 'POST':
12
+ # rainfall = float(request.POST.get('rainfall'))
13
+ # river = float(request.POST.get('river'))
14
+
15
+ # input_data = np.array([[rainfall, river]])
16
+ # result = model.predict(input_data)
17
+
18
+ # prediction = result[0]
19
+
20
+ # return render(request, 'predictor_form.html', {'prediction': prediction})
21
+
22
+
23
+ # #This is to test
24
+ # from django.http import HttpResponse
25
+
26
+ # def home(request):
27
+ # return HttpResponse("Hello, this is your predictor app homepage!")
28
+
29
+ # predictor/views.py
30
+ import joblib
31
+ from django.shortcuts import render
32
+ from .forms import PredictionForm
33
+
34
+ # Load model once globally (adjust path if needed)
35
+ model = joblib.load('predictor/model.joblib')
36
+
37
+ def predict_view(request):
38
+ predicted_value = None
39
+
40
+ if request.method == 'POST':
41
+ form = PredictionForm(request.POST)
42
+ if form.is_valid():
43
+ rainfall = form.cleaned_data['rainfall']
44
+ river_level = form.cleaned_data['river_level']
45
+ # Make prediction using model
46
+ predicted_value = model.predict([[rainfall, river_level]])[0]
47
+
48
+ flood_status = 'high' if predicted_value > 0.6 else 'low'
49
+
50
+ else:
51
+ form = PredictionForm()
52
+
53
+ return render(request, 'predictor/predict.html', {
54
+ 'form': form,
55
+ 'predicted_value': predicted_value,
56
+ })
FPS_Proj/readme.txt ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ Go to https://www.python.org/ and download python version: 3.11.5
2
+ Open command prompt and get inside project directory
3
+ USE: pip install -r requirements.txt(it installs all the required libraries)
4
+ Python manage.py runserver (to run project)
5
+ GO TO: http://127.0.0.1:8000/
6
+ Enter Rainfall amount
7
+ Enter Rever Level
8
+ Click on Predict
FPS_Proj/requirements.txt ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ pandas==2.2.2
2
+ numpy==1.26.4
3
+ matplotlib==3.9.2
4
+ scikit-learn==1.5.1