bird_cloud_gnn.radar_dataset
Module for reading the files and passing as datasets to DGL
Module Contents
Classes
Dataset for DGL created from CSVs in a folder. |
- class bird_cloud_gnn.radar_dataset.RadarDataset(data, features, target, name='Radar', num_nodes=100, max_edge_distance=50.0, max_poi_per_label=200, points_of_interest=None, use_missing_indicator_columns=False, add_edges_to_poi=False, skip_cache=False)[source]
Bases:
dgl.data.DGLDatasetDataset for DGL created from CSVs in a folder.
For every labeled point in the point cloud, the number of neighbours in a specific radius is checked. If the number of neighbours is big enough, the point is selected. A data point is a graph created by taking a selected point and a number of its neighbours.
- max_edge_distance
Creates a edge between two nodes if their distance is less than this value.
- Type:
- max_poi_per_label
Select at most this amount of POIs. If there are more POIs, they are chosen randomly.
- Type:
- missing_indicator_skip_columns = ['range', 'azimuth', 'elevation', 'x', 'y', 'z', 'centered_x', 'centered_y'][source]
- save()[source]
Overwite to realize your own logic of saving the processed dataset into files.
It is recommended to use
dgl.data.utils.save_graphsto save dgl graph into files and usedgl.data.utils.save_infoto save extra information into files.
- load()[source]
Overwite to realize your own logic of loading the saved dataset from files.
It is recommended to use
dgl.data.utils.load_graphsto load dgl graph from files and usedgl.data.utils.load_infoto load extra information into python dict object.