Skip to main content

This library includes an extensible system for building various trajectory operations.

Project description

KAFY Library

The KAFY library provides an extensible system for various trajectory operations and includes a versatile command-line interface (CLI) for managing these operations using SQL-like commands. It functions as a toolkit for researchers, facilitating the construction, management, and execution of diverse trajectory operations.

Features

  • Extensible System: Designed to accommodate various trajectory operations with flexibility and ease.
  • User-Friendly: Simplifies the construction and management of trajectory operations, making it accessible to researchers.
  • SQL-like Command Interface: Allows users to execute trajectory operations through intuitive, SQL-like commands.

Installation

You can install the KAFY library using pip:

pip install KAFYTraj==0.1.7

Usage

To use the library, import the TrajectoryPipeline class from KAFY:

from KAFY import TrajectoryPipeline

# Initialize the pipeline
my_pipeline = TrajectoryPipeline(
    mode="pretraining",
    operation_type="generation",
    use_tokenization=True,
    use_detokenization=True,
    use_spatial_constraints=True,
    modify_spatial_constraints=True,
    use_predefined_spatial_constraints=True,
    project_path="/content/"
)

SQL-like Command Interface

To use the SQL-like command interface, you can execute commands directly from the terminal. The CLI allows you to perform operations such as pretraining, fine-tuning, and summarizing data.

Pretraining a Model:

kafy_sql_parser "PRETRAIN bert FROM mydata.csv USING bert_config.json AS my_pretrained_model.pkl"

Fine-Tune a Model:

kafy_sql_parser "FINETUNE bert FOR summarization USING my_pretrained_model.pkl WITH finetune_config.json AS my_finetuned_model.pkl"

Summarize Data:

kafy_sql_parser "SUMMARIZE FROM requested_data_to_summarize.csv USING my_finetuned_model.pkl"

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

For any questions or support, please contact husse408@umn.edu.

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

kafytraj-0.1.7.tar.gz (13.6 kB view details)

Uploaded Source

Built Distribution

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

KAFYTraj-0.1.7-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

Details for the file kafytraj-0.1.7.tar.gz.

File metadata

  • Download URL: kafytraj-0.1.7.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for kafytraj-0.1.7.tar.gz
Algorithm Hash digest
SHA256 34112d7797f248d204dfdf74690aed32e4a17ae9229a549b504e21768d84cab4
MD5 3352d93d79ebad62d346117ed625069a
BLAKE2b-256 c170d97da2f60fbffb76a5e0c583e1aa249f2e4688b2fb7f5727fc07fe110eab

See more details on using hashes here.

File details

Details for the file KAFYTraj-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: KAFYTraj-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 15.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for KAFYTraj-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 dba8dd7c77c1130da4fce007f9fea8ce6d131214fb6c513f865403b22e3c9f99
MD5 a0351956839ada86615218f06ecebc66
BLAKE2b-256 a354ad5a4b8b94f1ec997409b8f0b3a75006f32d1ab9a179f7f26937022516b5

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