Comments (5)
Hi,
Thanks for your issue. You guessed correctly, it was because we hard-coded in 6 body-parts (we've done HCA based on all kinds of features using those 6 body parts so we are only confident in 6 at the moment), so 9 will cause an issue.
Implementation wise: For yours, if you could just use ['nose','left shoulder','right shoulder','left hip','right hip', 'tail root'], it should work. In other words, by removing the columns before b-soid_assign, it should run as expected. The number of rows and data file size should not be of concern.
Your data specifically: Obviously, 9 data points will provide more detailed information for b-soid to parse, and likely resulting in finer behavioral differences (though in my computation of the 6 points, I do estimate points to get around that). We can talk more about incorporating "neck" or "centroid" if you like. By having these additional 3 points, you can analyze a barrage of kinematics that 6 points are lacking, but does not necessarily add weight to extracting new behaviors.
Note that the python notebook is in beta and I have only tested it on my open-field data so far. I am currently still testing it on other experiments.
Please keep me posted on any new issues using Google Colab! I am eager to fully implement the python version of this algorithm (pip install bsoid will be great for python users as opposed to running it on the cloud!).
Alex
from b-soid.
Hi Alex,
thanks for the quick reply. I will try out slicing the dataframe to 6 bodyparts!
Currently I am running open field data (from my DeepLabStream experiments) and would be happy to share any results/issues I will find on my way.
from b-soid.
Changing the number of bodyparts to 6 did not solve the issue.
Screenshot
Followup question
is the number of csv files that are imported important?
I imported 2 csv files (6 bodyparts, no multiindex etc.; see the print(data[0].shape, data[1].shape) statement in the screenshot.
from b-soid.
Hi,
I've fixed it. It was a panda version difference that they recently updated on Colab (1.03).
The new copy of the colab notebook is located here
What I changed (in the boxcar_center function):
.
.
moving_avg = np.array(a1.rolling(window = n,min_periods=1,center = True).mean())
.
Let me know if this solves this issue.
Alex
from b-soid.
This solves the issue. It continues to run smoothly.
Thank you for the quick resolution!
from b-soid.
Related Issues (20)
- Streamlit connection error during feature embedding
- Running B-SOID on command line HOT 1
- to include 3d information into B-SOID
- Does B-SOID still only take single animal data?
- Cannot pre-proccess data for the first time [FileNotFoundError] HOT 1
- streamlit issue,can not open the app
- Unrecognized function or variable 'MsTestingData'.
- ignore this issue - resolved
- BSOID group number not shown HOT 1
- cannot create B-soid environment on M2 Mac HOT 25
- error when running BSOID on concatenated output of multiple DLC runs
- NameError: name 'working_dir' is not defined HOT 2
- IndexError: arrays used as indices must be of integer (or boolean) type HOT 3
- "ValueError: window must be non-negative" raised during Extract and Embed features part HOT 1
- Compatibility with M1 Mac
- Labeling Group Numbers HOT 1
- Docker?
- UMAP cluster coordinates as ouput HOT 3
- Error when trying to EXTRACT AND EMBED FEATURES
- IndexError: index 1 is out of bounds for axis 0 with size 1 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from b-soid.