Skip to main content

A package for doing great things!

Project description

my_krml_25552249

My Python package for data preparation, feature engineering, and model evaluation.

Package Structure

my_krml_25552249/
│
├── data/
│   └── sets.py          # pop_target, split_sets_random, split_sets_by_time, save_sets, load_sets
│
├── features/
│   ├── impute.py        # impute_missing   └── dates.py         # convert_to_date
│
├── models/
│   └── performance.py   # metrics, confusion matrix, plots, cross-val, etc.

Installation

$ pip install my_krml_25552249

Usage

This package is organized into data handling, feature engineering, and model evaluation modules. You can import the relevant module depending on your task, and each module provides simple utility functions to help you prepare your data, engineer features, evaluate models, and visualise results.

Below are some basic examples to get you started.

Data Handling

from my_krml_25552249.data.sets import pop_target, split_sets_random

# Example: split features and target
X, y = pop_target(df, "target")
X_train, y_train, X_val, y_val, X_test, y_test = split_sets_random(X, y)

Feature Engineering

from my_krml_25552249.features import impute_missing
from my_krml_25552249.features.dates import convert_to_date

# Example: impute missing values
df["column"] = impute_missing(df["column"], strategy="median")

# Example: convert columns to datetime
df = convert_to_date(df, cols=["date_column"])

Model Evaluation

from my_krml_25552249.models.performance import print_regressor_scores

# Example: print regression metrics
print_regressor_scores(y_preds, y_true, set_name="Test")

Visualisation

from my_krml_25552249.models.performance import plot_confusion_matrix

# Example: plot confusion matrix of a model
plot_confusion_matrix(model, X_train, y_train, title="Training Confusion Matrix")

Contributing

Interested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.

License

my_krml_25552249 was created by Shawya. It is licensed under the terms of the MIT license.

Credits

my_krml_25552249 was created with cookiecutter and the py-pkgs-cookiecutter template.

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

my_krml_25552249-2025.0.7.1.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

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

my_krml_25552249-2025.0.7.1-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file my_krml_25552249-2025.0.7.1.tar.gz.

File metadata

  • Download URL: my_krml_25552249-2025.0.7.1.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.11.5 Darwin/24.6.0

File hashes

Hashes for my_krml_25552249-2025.0.7.1.tar.gz
Algorithm Hash digest
SHA256 f2a3786e562095aa0a75af57435efd26c9611c12dea54fa74bdcaf628fe32c6e
MD5 e28a3be4c6ebe6cf6fb957afab6e45fb
BLAKE2b-256 a79f54d4c5861dea949231c06a9fef67f1452c84c7b5c13e53496eb235e1e8c8

See more details on using hashes here.

File details

Details for the file my_krml_25552249-2025.0.7.1-py3-none-any.whl.

File metadata

File hashes

Hashes for my_krml_25552249-2025.0.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 eea37de3a370f0f26b0d27226a0eb1d95dd489229bc194607d238b6b5d157c0c
MD5 2977910f36e04b0b6e8c58884de3a465
BLAKE2b-256 31d79bedd6d4ad6f831c19bfbd913a719b3686c85d19687e0daf9f6c4a9a5797

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