Closed yb6599 closed 5 months ago
what rev of pysindy-experiments
are you on? Line 636 in gridsearch/__init__.py in the current main branch is
def _normalize_keep_axes(
keep_axes: KeepAxisSpec, scan_grid: dict[str, Sequence[Any]]
) -> tuple[tuple[int, tuple[int, ...]], ...]:
ax_sizes = {ax_name: len(vals) for ax_name, vals in scan_grid.items()}
636 --> if ... in keep_axes:
keep_axes = _expand_ellipsis_axis(keep_axes, ax_sizes) # type: ignore
else:
keep_axes = cast(Collection[tuple[str, tuple[int, ...]]], keep_axes)
scan_axes = tuple(ax_sizes.keys())
return tuple((scan_axes.index(keep_ax[0]), keep_ax[1]) for keep_ax in keep_axes)
Also, the relevant line in current branch is:
if all(
param in point["params"] and check_values(value, point["params"][param])
for param, value in params_match.items()
):
You may need to reinstall from current master
Got it. this problem does not occur anymore.
I'm trying to plot the test and train data for the experiments and the points corresponding with Savitsy Golay SmoothedFiniteDifference do not have a diff_params.kind. It throws off an error when using
plot_summarry_test_train
, which fails at line 636 ingridsearch.__init__.py
,The code fails at
check_values
line, which gives the errorKeyError : diff_params.kind
where thepoint
isHow do we introduce
diff_params.kind
and should it beNone
?