you can also use this library to calculate the geo distance. it uses the same formula. example: from geopy.distance import geodesic # Example coordinates (latitude, longitude) coord1 = (40.712776, -74.005974) # New York coord2 = (34.052235, -118.243683) # Los Angeles # Calculate the distance distance = geodesic(coord1, coord2).kilometers print(f"Distance: {distance} km")
@1:29 Single Image size = [1, 28, 28] As mentioned, model takes a batch of size -> [128, 1, 28, 28] (128 images, each of size 1,28,28) We flatten it using reshape [-1, 784] So, my question is even if we send a single image or a batch, does this matter because anyways the model will flatten the image? Single image reshape -> [1, 28, 28] -> reshape(-1, 784) -> [1, 784] Batch reshape -> [128, 1, 28, 28] -> reshape(-1, 784) -> [128, 784] Can somebody verify this or am i missing something?
Few small changes at 54:05 will prevent pop-ups: Change: inputs['CompetitionDistance'].fillna(max_distance, inplace=True) test_inputs['CompetitionDistance'].fillna(max_distance, inplace=True) To: inputs.fillna({'CompetitionDistance': max_distance}, inplace=True) test_inputs.fillna({'CompetitionDistance': max_distance}, inplace=True) And, also on 54:16: Change: ''sparse=False' To: 'sparse_output=False'
This the best SQL database video I have ever come across in whole of Internet!!! Aakash pls do some tutorials on NLP and different challenges of AI/ML!!!