Update app.py
Browse files
app.py
CHANGED
@@ -20,9 +20,9 @@ for i in range(len(X[0])):
|
|
20 |
# Print the coefficients
|
21 |
print("Coefficients:", coefficients)
|
22 |
|
23 |
-
#
|
24 |
-
new_students=int(input("ENTER NEW
|
25 |
-
new_temperature=int(input("ENTER NEW TEMPERATURE : "))# Temperature in the new scenario
|
26 |
|
27 |
# Create the feature array for the new scenario
|
28 |
new_scenario = [1, new_students, new_temperature]
|
@@ -32,4 +32,4 @@ predicted_rooms = sum(coefficients[i] * new_scenario[i] for i in range(len(new_s
|
|
32 |
|
33 |
print("Number of students:", new_students)
|
34 |
print("Temperature:", new_temperature)
|
35 |
-
print("Predicted number of rooms:", predicted_rooms)
|
|
|
20 |
# Print the coefficients
|
21 |
print("Coefficients:", coefficients)
|
22 |
|
23 |
+
# Values for the new scenario
|
24 |
+
new_students =int(input("ENTER NEW STUDETNS : ")) # Number of students in the new scenario
|
25 |
+
new_temperature =int(input("ENTER NEW TEMPERATURE : ")) # Temperature in the new scenario
|
26 |
|
27 |
# Create the feature array for the new scenario
|
28 |
new_scenario = [1, new_students, new_temperature]
|
|
|
32 |
|
33 |
print("Number of students:", new_students)
|
34 |
print("Temperature:", new_temperature)
|
35 |
+
print("Predicted number of rooms:", predicted_rooms)
|