Scikit-longitudinal is an open-source Python library for longitudinal data analysis, building on Scikit-learn's foundation with tools tailored for repeated measures data.
Project description
Scikit-longitudinal
A specialised Python library for longitudinal data analysis built on Scikit-learn
📰 Latest News
- Updated Workflow: Now leveraging UV for enhanced project management and dependency resolution.
- Documentation: Dive into Scikit-longitudinal's features and capabilities in our official documentation.
- PyPI Availability: The library is available on PyPI.
💡 About The Project
Scikit-longitudinal (Sklong) is a machine learning library designed to analyse
longitudinal data (Classification tasks focussed as of today). It offers tools and models for processing, analysing,
and predicting longitudinal data, with a user-friendly interface that
integrates with the Scikit-learn ecosystem.
For more details, visit the official documentation.
🛠️ Installation
To install Scikit-longitudinal:
-
✅ Install the latest version:
pip install Scikit-longitudinal
To install a specific version:
pip install Scikit-longitudinal==0.1.0
See further in the Quick Start of the documentation for more details.
🚀 Getting Started
Here's how to analyse longitudinal data with Scikit-longitudinal:
from scikit_longitudinal.data_preparation import LongitudinalDataset
from scikit_longitudinal.estimators.ensemble.lexicographical.lexico_gradient_boosting import LexicoGradientBoostingClassifier
dataset = LongitudinalDataset('./stroke.csv') # Note this is a fictional dataset. Use yours!
dataset.load_data_target_train_test_split(
target_column="class_stroke_wave_4",
)
# Pre-set or manually set your temporal dependencies
dataset.setup_features_group(input_data="elsa")
model = LexicoGradientBoostingClassifier(
features_group=dataset.feature_groups(),
threshold_gain=0.00015 # Refer to the API for more hyper-parameters and their meaning
)
model.fit(dataset.X_train, dataset.y_train)
y_pred = model.predict(dataset.X_test)
# Classification report
print(classification_report(y_test, y_pred))
See further in the Quick Start of the documentation for more details.
📝 How to Cite
If you find Scikit-longitudinal helpful, please cite us using the CITATION.cff file or via the "Cite this repository" button on GitHub.
🔐 License
Scikit-longitudinal is licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file scikit_longitudinal-0.0.7.tar.gz.
File metadata
- Download URL: scikit_longitudinal-0.0.7.tar.gz
- Upload date:
- Size: 2.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
50dbb0956ec85b3f6abc4702281126ef950df7f042502d785cf032a90cb692f5
|
|
| MD5 |
08e0d31d87758b372f678e181d4b7071
|
|
| BLAKE2b-256 |
16b75626266682b27debe21ebe5a8831ecffdfa8f479636068df2ef8e6938909
|
File details
Details for the file Scikit_longitudinal-0.0.7-py3-none-any.whl.
File metadata
- Download URL: Scikit_longitudinal-0.0.7-py3-none-any.whl
- Upload date:
- Size: 104.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b8d8cfb0bf5986d5ab8ec7c04007edfe5201a70264a45eebf3604fee23ce451
|
|
| MD5 |
bf06a5e3fc7e39dcb1e06aa6cf3c9649
|
|
| BLAKE2b-256 |
385d92c272836225d668cae276a416e9d1a172099674edcbd06cba66a7c38356
|