Skip to main content

logo

Tulia: a comprehensive machine learning project entirely from scratch, utilizing the power of Python and numpy.

Features

Simplicity

By encapsulating both the training and predicting logic within just a couple of classes, complexity is greatly reduced compared to popular frameworks that heavily rely on abstraction. Moreover, the library provided here offers a streamlined approach by maintaining only essential parameters in the model class.

Familiar approach

This library uses sklearn API to build the codebase.

Example usage

from src.linear import LinearRegression

X_train, X_test, y_train, y_test = ...

lr = LinearRegression(n_steps=10_000, learning_rate=1e-4)
lr.fit(X_train, y_train)

y_pred = lr.predict(X_test)

mse = mean_squared_error(y_pred, y_test)  # Here mean_squared_error() is a pseudocode.

Installation

To use in code

pip install tulia

Download a whole library

git clone https://github.com/chuvalniy/Tulia.git
pip install -r requirements.txt

Testing

Every machine learning model is provided with unit test that verifies correctness of fit and predict methods.

Execute the following command in your project directory to run the tests.

pytest -v

License

MIT License

Metadata

Release files for tulia 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tulia 0.2.1
File Size Uploaded
tulia-0.2.1.tar.gz 11.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tulia 0.2.1
File Interpreter ABI Platform
tulia-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 26.8 kB

Release files / tulia-0.2.1.tar.gz

Download URL tulia-0.2.1.tar.gz
Size 11.3 kB
Tags Source
SHA-256 checksum
How to use checksums
9441baadb620f7bf88d91b28dab1afdd01fb5f912eca0799a92e5ce87a82ba2b
BLAKE2b-256 checksum
How to use checksums
0532d1392edf53ee0afd66113b15cbc55e9e25e84a21bf10891402e2bd4b6060
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.4

Release files / tulia-0.2.1-py3-none-any.whl

Download URL tulia-0.2.1-py3-none-any.whl
Size 15.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
66e1564de6bea956a2d08b6b46bc88ae07cd28d59c0cc193877857a5f72810c3
BLAKE2b-256 checksum
How to use checksums
687ba38decddad2464f89f7a3fb5e9fcf3a3fc3a77907dc4605e3416bc728acc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.4

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page