durrani commited on
Commit
5e9c0ab
·
1 Parent(s): e6fdb30

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -20,9 +20,9 @@ for i in range(len(X[0])):
20
  # Print the coefficients
21
  print("Coefficients:", coefficients)
22
 
23
- # Predict the number of rooms required for a new scenario
24
- new_students=int(input("ENTER NEW STUDENTS : ")) # 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,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)