Skip to content

Commit

Permalink
KNearestNeighboursRegressionModel: Fix tostring excludes
Browse files Browse the repository at this point in the history
  • Loading branch information
opcode81 committed Mar 2, 2024
1 parent 25ea617 commit 9aa6474
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sensai/nearest_neighbors.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ def __init__(self, num_neighbors: int, distance_metric: DistanceMetric,
self.knn_finder = None

def _tostring_excludes(self) -> List[str]:
return super()._tostring_excludes() + ["neighborProviderFactory", "distanceMetric", "distanceMetricCache", "df", "y"]
return super()._tostring_excludes() + ["neighbor_provider_factory", "distance_metric", "distance_metric_cache", "df", "y"]

# noinspection DuplicatedCode
def _fit(self, x: pd.DataFrame, y: pd.DataFrame):
Expand Down

0 comments on commit 9aa6474

Please sign in to comment.