Skip to content

Commit

Permalink
FIX: attr name
Browse files Browse the repository at this point in the history
  • Loading branch information
maffettone committed Dec 13, 2023
1 parent 483c779 commit bc14428
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdf_agents/sklearn.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def _sample_uncertainty_proxy(self, batch_size=1):
return pick_from_distribution(_x, uwx, num_picks=batch_size), centers
else:
# assume a 2d scan, use a linear model to predict the uncertainty
grid = make_wafer_grid_list(*self.bounds, step=self.min_step_size)
grid = make_wafer_grid_list(*self.bounds, step=self.motor_resolution)
uncertainty_preds = LinearRegression().fit(sorted_independents, min_landscape).predict(grid)
top_indicies = np.argsort(uncertainty_preds)[-batch_size:]
return grid[top_indicies], centers
Expand Down

0 comments on commit bc14428

Please sign in to comment.