Skip to main content

Simple Linear Regression dengan Gradient Descent

Project description

Fattah

Linear Regression sederhana dengan Gradient Descent. Mendukung single dan multi fitur, early stopping otomatis, dan feature scaling built-in.

Install

pip install fattah

Penggunaan

import numpy as np from fattah import Fattah

X = np.array([[1,2],[3,4],[5,6]], dtype=float) y = np.array([1, 2, 3], dtype=float)

model = Fattah() X_train, X_test, y_train, y_test = model.train_test_split(X, y) model.fit(X_train, y_train) print(model.predict(X_test)) print(model.evaluate(X_test, y_test))

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

fattah-1.0.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

fattah-1.0.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file fattah-1.0.0.tar.gz.

File metadata

  • Download URL: fattah-1.0.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for fattah-1.0.0.tar.gz
Algorithm Hash digest
SHA256 6f8bdd7c3d44a768417aa5b2e5bb35c7b2226ca1a1ea617892747c891d186efc
MD5 1e0d0456d148dac7ed79eb270857fe55
BLAKE2b-256 cb822e2c7ad684b70cef4ca9a8ff03519c00c3eeb007c0375f6862c716e9a25f

See more details on using hashes here.

File details

Details for the file fattah-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: fattah-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for fattah-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 71ba0fe31a622a224610e69114acef0fa6ddef5f15b1100a3d4c3ea571a31777
MD5 975a6ecd160193e73430765c60c2ef52
BLAKE2b-256 cb78d4258eb0d9a816ed7d57ab8373595e7df53f8c10aa5246113281ab64cb94

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