antonbol commited on
Commit
1543b55
1 Parent(s): 4bf0388

removed the drop of Fare feature

Browse files
Files changed (2) hide show
  1. app.py +1 -0
  2. feature_engineering.py +1 -1
app.py CHANGED
@@ -15,6 +15,7 @@ mr = project.get_model_registry()
15
  model = mr.get_model("titanic_modal_simple_classifier", version=1)
16
  model_dir = model.download()
17
  model = joblib.load(model_dir + "/titanic_model.pkl")
 
18
  leo_url = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxAREA8QDxAQEA8PDw0PDw8NDQ8PDw0PFREWFhURExUYHSggGBolGxUVITEhJSkrLi4uFx8zODM4NygtOisBCgoKDg0OGhAQFy0fHR0tKy0rLSstLS0tLS0tLS0tLS0tLS0tKystLS0tLS0tLSstLTctLS0tLTctKy0rKysrK//AABEIAJQBVQMBIgACEQEDEQH/xAAbAAEAAwEBAQEAAAAAAAAAAAAAAQMEAgUGB//EAC8QAQABAwMDAgUDBAMAAAAAAAABAgMRBCExEkFRBWEicYGRoTJSsRMUQvAVYvH/xAAYAQEAAwEAAAAAAAAAAAAAAAAAAQIDBP/EACERAQEAAgICAgMBAAAAAAAAAAABAhEDIRIxMkETQlEE/9oADAMBAAIRAxEAPwD8PwYSJEYMJARgwlKUbc4MOg0bc4MOg0bc4MOg0bc4MOg0bc4T0pE6NucHSkyjoRgwJVEYMABgwECTBhKUjnBh0gEYMJQhAAAAAAAAAAAAAACRCUgAAlCQAEoAAAEgAAAhKEJMKiHTkB3FOXMw16S3mMpuWt4hp4dKefemJK+/ZxKpW46Wl25lCZEJIJIJBACAAAAAAQAAAAAAAAACQAAIAEiBI6EGwJCKZEgAAgkRQhKMJgg6ilbZ0/VKuiG+zZrxE0w1xx2zyy026TS4pj5sl+PinxE/Z6Vi9mmInaY5Yb1iZme2WtnTnxvfajUxFURid8bsFUPTuaTGOZjzHLFetYnEbsso3wrPgw6mlGFGiCUy5lWpQAgAAAAAEAAAAAAAAAAkAAAAAAAASAkAAIdTjt7uUgspu4p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&usqp=CAU"
20
  # leo_url = "https://media.tenor.com/FghTtX3ZgbAAAAAC/drowning-leo.gif"
 
15
  model = mr.get_model("titanic_modal_simple_classifier", version=1)
16
  model_dir = model.download()
17
  model = joblib.load(model_dir + "/titanic_model.pkl")
18
+ print(model_dir)
19
  leo_url = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxAREA8QDxAQEA8PDw0PDw8NDQ8PDw0PFREWFhURExUYHSggGBolGxUVITEhJSkrLi4uFx8zODM4NygtOisBCgoKDg0OGhAQFy0fHR0tKy0rLSstLS0tLS0tLS0tLS0tLS0tKystLS0tLS0tLSstLTctLS0tLTctKy0rKysrK//AABEIAJQBVQMBIgACEQEDEQH/xAAbAAEAAwEBAQEAAAAAAAAAAAAAAQMEAgUGB//EAC8QAQABAwMDAgUDBAMAAAAAAAABAgMRBCExEkFRBWEicYGRoTJSsRMUQvAVYvH/xAAYAQEAAwEAAAAAAAAAAAAAAAAAAQIDBP/EACERAQEAAgICAgMBAAAAAAAAAAABAhEDIRIxMkETQlEE/9oADAMBAAIRAxEAPwD8PwYSJEYMJARgwlKUbc4MOg0bc4MOg0bc4MOg0bc4MOg0bc4T0pE6NucHSkyjoRgwJVEYMABgwECTBhKUjnBh0gEYMJQhAAAAAAAAAAAAAACRCUgAAlCQAEoAAAEgAAAhKEJMKiHTkB3FOXMw16S3mMpuWt4hp4dKefemJK+/ZxKpW46Wl25lCZEJIJIJBACAAAAAAQAAAAAAAAACQAAIAEiBI6EGwJCKZEgAAgkRQhKMJgg6ilbZ0/VKuiG+zZrxE0w1xx2zyy026TS4pj5sl+PinxE/Z6Vi9mmInaY5Yb1iZme2WtnTnxvfajUxFURid8bsFUPTuaTGOZjzHLFetYnEbsso3wrPgw6mlGFGiCUy5lWpQAgAAAAAEAAAAAAAAAAkAAAAAAAASAkAAIdTjt7uUgspu4pmntKsITtDVapjl6WjuVRxH1nhl0tMbQ9SqMU7fR04zpzZ5d6ZtNTNV2Y+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Iev6ZpsRNU7Z8tOLHdU5MtYtdrbns0WfM91FqOqc/4x+Za4h2OGuiYc4MiqKId1OCurYS8r1GrNcR4x/LunlR6hX8cfT+VtFX++zL7rf8AWIt7zM+HVO81fJzxXHirYprxMwkLW+3h1/TUZ6Z+bVbmOwXop7xLNcoxPs34jvDFraemYxx7IsRje2O5HeGnR38RMeZyz1Vzvts4sTuzl1W1m49yi9HlfG/DxYzLZpad4lvK58sdPQiFFdczPsszsrhKrH6lpYmnq3zDxH0t25GcPO1+jmd6cMeXDfcb8Weuq8sTMIczpAEDqKJmJnE4jGZ8OUxVP+90AAAAAAJAAAAAAACIBo0VnqqjxG8vZ5xEbUx+WLTUdMRGN53nDZTV4dnHj4xycl3Wu34WslutqolowsTLjLuZUXbsd9gWZZ9VcxTVPiE0zPbeGXX1zFMx5Rb0vjj2879UtUzjpnxtLPp1t3hjHRl70tvbxnxvCuuMzmPqW5zDmraduFlZHX6o947p09yc4ziY88Sqid/Z3ExVG/3Ct1F7zCrV3ImPkot3JpnEzmO0+U62v4e2/gt6RMe2KqrO0LbVGPmqsx3ldTLPFrk02muyx2pbbct458mjspqlZlVXCVIox8UyuiXEW1sUCXmepaXHxU/WHmvpKoeT6hp4j4qe87x4YcvH9x0cXJ9VhAc7cAQAAAAACQAAAAAAbfTbcTMzPbhA04vkpyfGvV0dMTEz3dXIB1uP7LTZRACuTi7LwfU7k9eM7YjbsCnJ8W3B8m30u7OMKvU6t5+gI/VM+bJY5X3eAVnpe+1dE7OqgSIV0gipX2N+WXVc47Arn6Tj7KOIW0AmIyaKFtqqcg1jGtmXUAspU9JhIIczDJqKI3hAX0me3iVIBwX271+jtRVXTTPEzEThVdpxVVHiZj7SkT9H24AVAAH/2Q=="
20
  rose_url = "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSGoi8okN1Fw6tYE7k-0H-wnMabl1e3NBNPpQ&usqp=CAU"
21
  # leo_url = "https://media.tenor.com/FghTtX3ZgbAAAAAC/drowning-leo.gif"
feature_engineering.py CHANGED
@@ -47,7 +47,7 @@ def feat_eng(df):
47
  )
48
 
49
  # Drop features and NaNs
50
- df.drop(["Ticket", "Fare"], axis=1, inplace=True)
51
  df = df[df["Embarked"].notna()]
52
 
53
  # Feature engineering
 
47
  )
48
 
49
  # Drop features and NaNs
50
+ df.drop(["Ticket"], axis=1, inplace=True)
51
  df = df[df["Embarked"].notna()]
52
 
53
  # Feature engineering