accuracy.py¶
-
ct_assist.utils.accuracy.
area
(X_test: List[dict], y_true: List[float], verbose: bool = True, mp: bool = True) → float[source]¶ Accuracy test for area.
- Parameters
X_test (List[dict]) – List of kwargs for transform.fit
y_true (List[float]) – Areas of Polygons
verbose (bool) – TQDM, defaults to True
mp (bool) – Multiprocessing used, defaults to True
- Returns
RMSE, Aka loss
- Return type
float
-
ct_assist.utils.accuracy.
calc_area
(poly: numpy.ndarray) → float[source]¶ Estimates the area of a polygon using the shoelace formula.
- Parameters
poly (Numpy array) – Polygon
- Returns
Area of polygon
- Return type
float
-
ct_assist.utils.accuracy.
camera_properties
(X_test: List[dict], Y_true: List[Tuple[float, float, float, float]], verbose: bool = True, mp: bool = True) → float[source]¶ Accuracy test for camera properties (roll_deg, tilt_deg, heading_deg, elevation_m)
- Parameters
X_test (List[dict]) – List of kwargs for transform.fit
Y_true (List[Tuple[float, float, float, float]]) – Spatial orientation roll_deg, tilt_deg, heading_deg, elevation_m
verbose (bool) – TQDM, defaults to True
mp (bool) – Multiprocessing used, defaults to True
- Returns
RMSE for roll_deg, tilt_deg, heading_deg, elevation_m
- Return type
float