How can I introduce the radio in query radius-BallTree sklearn, radians, km?
问题 I'm working with latitude and longitude data. I've used BallTree because I have many rows (32000 rows) in the dataset. If I built the tree with haversine distance: '''' model_BTree = BallTree(np.array(points_sec_rad),metric='haversine') '''' and I transform the latitude and longitude to radians units, how can I apply query_radius (max_dist_rad) to the points which I would like to locate? I've used 0.150 meters as radius but I'm not sure if I should use an approximation in radians. ''''ind