You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/modeling.ipynb
+16-17Lines changed: 16 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -51,7 +51,6 @@
51
51
"source": [
52
52
"import keypoint_moseq as kpms\n",
53
53
"import matplotlib.pyplot as plt\n",
54
-
"import numpy as np\n",
55
54
"\n",
56
55
"project_dir = \"demo_project\"\n",
57
56
"config = lambda: kpms.load_config(project_dir)"
@@ -201,10 +200,10 @@
201
200
"metadata": {},
202
201
"source": [
203
202
"## Remove outlier keypoints\n",
204
-
"Removing large outliers can improve the robustness of model fitting. The following cell classifies keypoints as outliers based on their distance to the animal's medoid. The outlier keypoints are then interpolated and their confidences are set to 0.\n",
203
+
"Removing large outliers can improve the robustness of model fitting. A common type of outlier is a keypoint which briefly moves very far away from the animal as the result of a tracking error. The following cell classifies keypoints as outliers based on their distance to the animal's medoid. The outlier keypoints are then interpolated and their confidences are set to 0 so that they are interpolated for modeling as well.\n",
205
204
"- Use `outlier_scale_factor` to adjust the stringency of outlier detection (higher values -> more stringent)\n",
206
205
"- Plots showing distance to medoid before and after outlier interpolation are saved to `{project_dir}/QA/plots/`\n",
207
-
"- Plotting can take a few minutes. If you have a lot of data, you can comment out the plot_medoid_distance_outliers line."
206
+
"- Plotting can take a few minutes, so by default plots will not be regenerated when re-running this cell. To experiment with the effects of setting different values for outlier_scale_factor, set `overwrite=True` in outlier_removal."
0 commit comments