JABS Behavior (jabs-behavior)
Prediction Postprocessing
The jabs.behavior.postprocessing module provides tools for refining behavior predictions generated by the JABS framework. It includes classes and functions to manipulate and enhance the quality of behavior event predictions through various postprocessing techniques.
- BehaviorEvents: Run-length encoding of JABS predictions for efficient behavior event manipulation
- Postprocessing Stages: Configurable pipeline stages for refining behavior predictions:
BoutDurationFilterStage: Remove short behavior bouts below a minimum durationBoutStitchingStage: Combine behavior bouts separated by short gapsGapInterpolationStage: Fill gaps in predictions (NONE labels)
- PostprocessingPipeline: Sequential application of multiple Stages
Usage
import numpy as np
from jabs.behavior.events import BehaviorEvents, ClassLabels
from jabs.behavior.postprocessing import BoutDurationFilterStage, BoutStitchingStage, PostprocessingPipeline
# Create behavior events from a prediction vector
predictions = np.array([0, 0, 1, 1, 0, 1, 1, 1, 0])
events = BehaviorEvents.from_vector(predictions)
# Apply postprocessing pipeline
config = {
BoutStitchingStage.name: {"max_stitch_gap": 2},
BoutDurationFilterStage.name: {"min_duration": 3},
}
pipeline = PostprocessingPipeline(config)
refined_predictions = pipeline.run(predictions)
Metadata
Release files for jabs-behavior 0.50.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| jabs_behavior-0.50.1.tar.gz | 15.9 kB | Without provenance | Details for jabs_behavior-0.50.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| jabs_behavior-0.50.1-py3-none-any.whl | Python 3 | none | any | Details for jabs_behavior-0.50.1-py3-none-any.whl |
Total release size: 37.2 kB
Release files / jabs_behavior-0.50.1.tar.gz
| Download URL | jabs_behavior-0.50.1.tar.gz |
|---|---|
| Size | 15.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
306ec8d6e5375edf977476eae41da40dcff743edf105e631894c440b437f5c8f
|
|
BLAKE2b-256 checksum How to use checksums |
606f8c883fd50223590299cc589f70a004b9d0b754332810777356bac22bd456
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / jabs_behavior-0.50.1-py3-none-any.whl
| Download URL | jabs_behavior-0.50.1-py3-none-any.whl |
|---|---|
| Size | 21.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b14f0ab80d5b975e5cc209098954143e1f773f5ea44bca6dd1cbfed278dc45c8
|
|
BLAKE2b-256 checksum How to use checksums |
ee99114780eb5d837a57d3d0e5ef0b28a62285732cc1138d20f21ebd7e3862aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for jabs-behavior 0.50.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.