Skip to main content

A tiny, yet blazingly fast machine learning library written in Rust with Python interface.

Project description

binoculars

A tiny, yet blazingly fast machine learning library written in Rust with Python interface. This project was motivated by polars and sklearn. The goal is to learn Rust, have a better understanding of what is happening under the hood of classic ML models, and explore the pitfalls of building a Python package.

Example usage

>>> from binoculars.cluster import KMeans
>>> X = [[1, 1], [1, 2], [2, 1],[2, 2], [5, 5], [5, 6], [6, 5], [6, 6]]
>>> kmeans = KMeans(n_clusters=2, init="random", max_iter=100, random_state=0)
>>> kmeans.fit(X)
>>> kmeans.predict(X)
[0, 0, 0, 0, 1, 1, 1, 1]
>>> kmeans.get_centroids()
[[1.5, 1.5], [5.5, 5.5]]

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

binooculars-0.0.2.tar.gz (51.0 kB view details)

Uploaded Source

Built Distribution

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

binooculars-0.0.2-cp311-cp311-macosx_11_0_arm64.whl (254.6 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

File details

Details for the file binooculars-0.0.2.tar.gz.

File metadata

  • Download URL: binooculars-0.0.2.tar.gz
  • Upload date:
  • Size: 51.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.14.17

File hashes

Hashes for binooculars-0.0.2.tar.gz
Algorithm Hash digest
SHA256 c6b71792289ba743233ac4feaa2645d069dd0b6cd5c93c66424b39c19cfb5648
MD5 c60d314ce7caa87688a1c6b1cbdcde0c
BLAKE2b-256 b4b5d112269cb8c5cc6f98a1697bc3ce01783a0942c4be71c526232bc45881cf

See more details on using hashes here.

File details

Details for the file binooculars-0.0.2-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for binooculars-0.0.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 620ec9da12202495f3625012c1c108280114e658dfa0bb4d19a2d44935de54a0
MD5 72b25adf26f0e0b009fa46e7645b2968
BLAKE2b-256 50e8763f5a66878a8415be3a2af89b7962d54b63cf45416c530c21112ef085dd

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