Skip to main content

A tool for quick ML task solving with model training optimization and a wide range of capabilities

Project description

🚀 Sefixlines Model Pipelines

Sefixlines Logo

PyPI   GitHub

Telegram   GitHub Profile

🆕 UPDATE: Regression tasks
🆕 UPDATE: Text classification

✨ Features

  • ⚡ Quick start without tons of code
  • 🖼️ Image and text classification
  • 🎯 Image semantic segmentation
  • 💾 Automatic weights saving/loading
  • 🔧 Easy customization (loss_fn, optimizer, scheduler, augmentation)

⚙️ Installation

pip install sefixlines

🎯 Get Started with Basic Example

For a quick start, use ready-made templates with configured pipelines:

from sefixlines import baseline

# Creates a ready-to-use notebook with an example for your task
baseline.create('raw')                         # Universal
baseline.create('image_classification')        # Image classification
baseline.create('text_classification')         # Text classification
baseline.create('image_regression')            # Image regression
baseline.create('text_regression')             # Text regression
baseline.create('image_semantic_segmentation') # Semantic segmentation

This command will create a sefixline.ipynb file in the current directory with a fully working example, including:

  • 📊 Data loading and preparation
  • 🤖 Model setup
  • 🏋️ Training with visualization
  • 📈 Results evaluation

This is the fastest way to get started! Just open the created notebook and adapt it to your data.

🚦 Minimal Manual Run

  1. Prepare your data
from sefixlines import datasets

datasets.ImageClassificationDataset(paths, labels)                  # Image classification
datasets.TextClassificationDataset(texts, labels)                   # Text classification
datasets.ImageRegressionDataset(paths, labels)                      # Image regression
datasets.TextRegressionDataset(texts, labels)                       # Text regression
datasets.ImageSemanticSegmentationDataset(image_paths, mask_paths)  # Semantic segmentation
  1. Choose a model (any model that returns logits).
  2. Train
from sefixlines import models

# For classification
model_wrapper = models.Classifier(model, "MyModel")
model_wrapper.fit(train_set, valid_set, num_epochs=3)

# For regression
regressor = models.Regressor(model, "MyRegressor")
regressor.fit(train_set, valid_set, num_epochs=3)

# For semantic segmentation
segmenter = models.SemanticSegmenter(model, "MySemanticSegmenter")
segmenter.fit(train_set, valid_set, num_epochs=3)

License

MIT. See LICENSE file.

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

sefixlines-0.3.0.tar.gz (23.8 kB view details)

Uploaded Source

Built Distribution

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

sefixlines-0.3.0-py3-none-any.whl (28.5 kB view details)

Uploaded Python 3

File details

Details for the file sefixlines-0.3.0.tar.gz.

File metadata

  • Download URL: sefixlines-0.3.0.tar.gz
  • Upload date:
  • Size: 23.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for sefixlines-0.3.0.tar.gz
Algorithm Hash digest
SHA256 0862333ce00a5ca08621043c0bdc23e06ebc997b5720f120b1803763a28e2dbc
MD5 6fefd409195b2b28f7852e88aa5021ce
BLAKE2b-256 7d702a7c34e59110ef153d42fd5c062024969b9e645cea13ba5d3312013147f8

See more details on using hashes here.

File details

Details for the file sefixlines-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: sefixlines-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 28.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for sefixlines-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0484e46054200ba242077bc8b9fcf0bff1667850a063bd921ba1438155d9c95d
MD5 7444b181b7a9fd251ea62db6fbacf007
BLAKE2b-256 c44e8e6ad45d3e2abd4af338b6eeddf23519f2c529e362b2d836f4a87476f6fe

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