Comments (5)
Hi @Monica9577 ! SimBA takes all your files inside the project_folder/csv/targets_inserted
directory and build a model from these files. In each one of these files, if you remove the body-part data columns (in the beginning) and your annotations (in the end of the file), you are left with 221 columns of features.
Next, you want to use this model .sav file, that is built using 221 columns of features, on new data inside your project_folder/csv/features_extracted
directory.
SimBA goes ahead and opens the first file inside the project_folder/csv/features_extracted
directory, and tries to analyze it. However, it finds 245 columns. It doesnโt know what to do, as the model was trained with 221 columns, and it now sees 245 columns - what should it do with all these extra columns? So it give you the error.
One possible way that could cause a mismatch in the number of columns is, for example, you added ROI features to your new data inside the project_folder/csv/features_extracted
directory, but you did not add it to the files you used to train the model with - could this be possible?
from simba.
No, I haven't add any ROIs to any of the files...
But I'm going to check if there's any difference between the features csv of the video I used to train the model and the one I'm using to evaluate it
Thanks!
from simba.
Thanks!
One more potential reason for this error I have seen before: Within a single SimBA project, be sure you are working with the same Animal names and the same body-part names in all files.
The file project_folder/logs/measures/pose_configs/bp_names/project_bp_names.csv
stores the names of your body-parts in your SimBA project. Before training models, SimBA drops the data for your body-parts - we don't want to use the locations of the body-parts in any model. However, if the body-parts names or animal names for any reason changes across data files, then the appropriate columns will not be recognized at body-parts and SimBA will fail to drop them in some files, causing the mismatch in the column numbers errors as you see.
from simba.
Hi
Yes I'm using the same body parts and animal names in every video,
but is still giving problems
from simba.
@Monica9577 - if you look at the a file inside the project_folder/csv/targets_inserted
directory, and compare it against a file inside the project_folder/csv/features_extracted
directory, what differences to you see in column names and the number of columns? You could also zip up and share a file from each directory here with me or through gdrive link and I can look?
from simba.
Related Issues (20)
- Segementation fault when creating a new project HOT 9
- labelling behavior HOT 22
- Problem analyzing ROI data Aggregates HOT 26
- SHAP visualization failed HOT 7
- SHAP Multiprocessing Failed HOT 4
- Certain filename patterns prevent importing SLEAP H5 files HOT 10
- Unable to add ROIs Ubuntu HOT 3
- Analyze ROI data not working for multiple videos HOT 13
- Undersample still results serious imbalance HOT 2
- SIMBA VALUE ERROR- Issue Importing H5 and slp tracking data HOT 10
- How to remove video from behavioral annotation dataset HOT 1
- Using Random forest behavioral classifiers from OSF repository HOT 24
- Trouble installing simba HOT 25
- Determination of classifier thresholds HOT 1
- Should preprocessed videos be those used in SLEAP? HOT 1
- Remapping keyboard shortcuts for behavior annotation. HOT 4
- New to simba - installation not working on Mac M2 Max HOT 26
- Plotly Interface is not available HOT 3
- Video Parameters Opening Black Frames HOT 12
- Simba not running after install HOT 21
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 simba.