Skip to main content

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
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:

  1. ✅ 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scikit_longitudinal-0.0.7.tar.gz (2.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Scikit_longitudinal-0.0.7-py3-none-any.whl (104.1 kB view details)

Uploaded Python 3

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

Hashes for scikit_longitudinal-0.0.7.tar.gz
Algorithm Hash digest
SHA256 50dbb0956ec85b3f6abc4702281126ef950df7f042502d785cf032a90cb692f5
MD5 08e0d31d87758b372f678e181d4b7071
BLAKE2b-256 16b75626266682b27debe21ebe5a8831ecffdfa8f479636068df2ef8e6938909

See more details on using hashes here.

File details

Details for the file Scikit_longitudinal-0.0.7-py3-none-any.whl.

File metadata

File hashes

Hashes for Scikit_longitudinal-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 7b8d8cfb0bf5986d5ab8ec7c04007edfe5201a70264a45eebf3604fee23ce451
MD5 bf06a5e3fc7e39dcb1e06aa6cf3c9649
BLAKE2b-256 385d92c272836225d668cae276a416e9d1a172099674edcbd06cba66a7c38356

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page