-
Notifications
You must be signed in to change notification settings - Fork 14
KShape bug #61
Comments
@pr4deepr thanks for providing details! The freeze issue has to do with the peculiarity of windows w.r.t. forking processes, I have to figure out which module(s) to protect with a I suspect that your other issue ( I think that if you choose set axis as For the installation, yea
|
Thanks heaps for the feedback.
Happy Travels. Glad you can atleast travel, don't think we can do that anytime soon.. !! 😷 |
So, I went to
It seemed to fix the issue. **
The dropna node suggestion worked well. |
I'd try protecting the `drfft_dtw` module instead, if it works you can make
a PR :) . Changing imports in an `__init__.py` like that is weird and could
cause other issues.
For the peak missing the bases, I think that the progress bar's index will
denote the curve that it stopped at and the warning is the index location
of the peak within the curve that is denoted by the progress bar.
Glad that DropNa worked for you.
…On Wed, Jul 21, 2021 at 8:48 PM Pradeep Rajasekhar ***@***.***> wrote:
So, I went to
mesmerize\analysis_*init*_.py
and added this part
if __name__ == '__main__':
from .math import drfft_dtw
It seemed to fix the issue.
**
One of my peaks didn't have a base. Is there an easy way to detect which
cell/trace has it? In the console, I Saw this line:
\anaconda3\envs\mesmerize\lib\site-packages\mesmerize\analysis\compute_peak_features.py:106: UserWarning: Peak at curve index: <0> is not flanked by bases on both sides, ignoring
warn(f"Peak at curve index: <{p_ix}> is not flanked by bases on both sides, ignoring")
The dropna node suggestion worked well.
**
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#61 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACHXXRF5MLQZTRLJ7NMQNHTTY5TFXANCNFSM5AW5ILEA>
.
|
Actually, scrap that previous comment, that doesn't make sense.. |
So, Is this good practice?
|
I just took a look at that module and I think it'd be better placed in the mesmerize_manuscripts_repo than within mesmerize since it's doesn't exactly fit anywhere with mesmerize itself. I'll reorganize it in a few days and maybe make a new release, but for now you should be able to just safely remove that module's import from |
Thanks for that. |
@pr4deepr I added a gridsearch feature to the kshape clustering GUI in mesmerize. It allows you to select a partition range,
Note that the Unlike single kShape, the gridsearch is multithreaded so it will simultaneously perform When it’s done you’ll get a heatmap like this (but bigger). Note: If you close the heatmap you’ll have to call You shouldn't necessarily pick the model with the lowest inertia, but it will help narrow down on a suitable model. Some models with very low inertia might have empty cluster(s) which skews the inertia value and these models should be avoided. You could google "gridsearch parameters" to learn about what a gridsearch is. Glad to hear you found the tutorials and I2K workshop helpful! :) |
Thanks for this detailed comment. |
Closing due to inactivity. |
Describe the bug
I am using k-Shape Clustering to determine if I can find clusters in my traces based on the shapes of the peak. I get the following error when I click Start.
I followed your video to perform Peak detection and got to the point where I got peak features. I can successfully view different peak parameters using the BeeSwarm Plot. When I go back to the flowchart and connect K-shape to the Peak Detect node, and try the clustering with default options I get the error above. This happens for any peak parameter I select in the data column.
On a related note for K-shape, when I try _pf_peak_curve in the data column, I get this error:
Operating System & specs (CPU, RAM etc.). Please complete the following information:
Details about your Mesmerize install
Thanks for developing and supporting Mesmerize.
Cheers
Pradeep
The text was updated successfully, but these errors were encountered: