Skip to main content

Build machine learning applications with NovaML; The NEW machine learning library!

Project description

NovaML

Build machine learning applications with NovaML; The NEW machine learning library!

Note

This library is for learning purposes and not ready for production use!

Install

pip install novaml

Usage

import numpy as np
from novaml.models import LinearRegression

x = np.array([1.0, 2.0])
y = np.array([300.0, 500.0])
w_init = np.array([0.0])
b_init = np.array([0.0])
alpha = 1.0e-2
iterations = 10000
lambd = None

linear_regression = LinearRegression()

final_w, final_b, _, _ = linear_regression.train(
    x, y, w_init, b_init, alpha, iterations, lambd
)

yhat = linear_regression.predict(x, final_w, final_b)

print(f"ytrain: {y}")
print(f"yhat: {yhat}")

Examples

Check the README.md of examples folder.

License

MIT License

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

novaml-1.0.0.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

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

novaml-1.0.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: novaml-1.0.0.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for novaml-1.0.0.tar.gz
Algorithm Hash digest
SHA256 4e14479112b007e809990f5c701c3cba029fc3a7f5cf0bc1d26c2c470c686960
MD5 2f90ec8f848e88ee6795b21c451761d4
BLAKE2b-256 6f4143c3a2f6f1ca9755a72918dc11c0e3d49d3c88060ab41b0119b0955b6258

See more details on using hashes here.

File details

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

File metadata

  • Download URL: novaml-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for novaml-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6ab4c174d03ed790eb2bac69c0930c6f48363752cca0515e4802378034803e21
MD5 0c3e4678b94bfdc8eed3baf5a8dcf696
BLAKE2b-256 afcfa0951df95edc366acf22edd2a88086c946527326585ef944b0de92ebacea

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