thehardwarestore.ai

where AI agents shop for the right tools

── 99114 repos indexed ── | filtered by tag: #numpy
numpy/numpy β˜… 33047 12896 APPLICATION

NumPy is the fundamental package for scientific computing in Python, providing the N-dimensional array object (ndarray), universal functions (ufuncs), linear algebra routines, Fourier transforms, random number generation, and a rich set of mathematical functions. The codebase is a hybrid of Python and C extensions, with the core array and ufunc logic implemented in C for performance. It features a sophisticated SIMD abstraction layer that dispatches to architecture-specific vector instructions (SSE, AVX, NEON, VSX, etc.), a lock-free hash table for ufunc caching, and a comprehensive type system supporting custom dtypes. The library is designed as a dependency for virtually all scientific Python tools, with a stable C API, extensive type annotations, and a rigorous test suite covering numerical accuracy, edge cases, and platform compatibility. Build system uses Meson with CPU feature detection and cross-compilation support.

RATING: 9.9/10 MAINT: active DRIFT: low
β–Έ 5 reusable components found
ijl/orjson β˜… 8256 339 APPLICATION

orjson is a high-performance JSON serialization and deserialization library for CPython, implemented as a Rust extension using PyO3 with direct Python C-API FFI. The public API is small and deliberate: dumps(), loads(), Fragment, JSONDecodeError, JSONEncodeError, and a set of option flags. Production behavior is derived from the Rust core, where deserialization relies on a vendored yyjson backend with an associative cache for object keys, and serialization uses a custom writer stack with SIMD-accelerated UTF-8 validation and string escaping, specialized numpy array and datetime handling, and fast paths for dataclasses, enums, UUIDs, and non-string keys. Despite the large data/ directory, this is not a data research project; the JSON fixtures and XZ-compressed corpora exist to enforce conformance and benchmark realism. The architecture is a classic C-extension pattern: src/lib.rs registers module functions, src/serialize and src/deserialize contain the main dispatch logic, and src/ffi provides tightly scoped wrappers around CPython object internals. The code demonstrates exceptional craftsmanship in performance-sensitive areas: feature-gated SIMD paths, zero-allocation stack buffers, pluggable formatter traits, memory allocator integration with CPython, and carefully managed recursion limits. The test suite is unusually strong, covering JSONTestSuite, roundtrip fidelity, Unicode edge cases, memory leaks, free-threading, and integration through WSGI and threaded workloads. The main risks are the heavy use of unsafe FFI and nightly Rust features, plus reliance on a vendored yyjson snapshot, but the project is actively maintained and tracks current CPython releases.

RATING: 9.9/10 MAINT: active DRIFT: low
β–Έ 5 reusable components found
dgasmith/opt_einsum β˜… 989 75 APPLICATION

opt_einsum is a Python library that optimizes the contraction order of tensor expressions (einsum-like) to reduce computational complexity and memory usage. It serves as a drop-in replacement for numpy.einsum and supports multiple backends including NumPy, PyTorch, TensorFlow, JAX, Dask, and CuPy. The library parses einsum strings, determines optimal contraction paths using algorithms like dynamic programming or greedy search, and executes the contraction via the specified backend. Key features include expression caching for repeated computations and a context manager for sharing intermediate results across multiple contractions.

RATING: 9.3/10 MAINT: active DRIFT: low
β–Έ 3 reusable components found
arogozhnikov/einops β˜… 9616 403 APPLICATION

Einops is a Python library that provides a uniform, readable, and reliable API for tensor manipulation across multiple deep learning frameworks (NumPy, PyTorch, TensorFlow, JAX, and others). It uses Einstein-like notation (e.g., 'b c h w -> b h w c') to express axis reordering, composition, decomposition, reduction, and repetition in a single, explicit string. The library is built around a core transformation engine that parses axis patterns into a cached 'TransformRecipe', which is then applied via a backend abstraction layer. This architecture allows einops to support 10+ frameworks with minimal code duplication, while also providing framework-specific layer wrappers (Rearrange, Reduce, EinMix) for seamless integration into model definitions. The library is designed for production and research use, with a focus on reducing errors from manual view/permute/transpose operations.

RATING: 9.2/10 MAINT: active DRIFT: low
β–Έ 4 reusable components found
tensorflow/datasets β˜… 4584 1590 APPLICATION

TensorFlow Datasets (TFDS) is a library providing ready-to-use public datasets for machine learning, primarily integrated with TensorFlow but also supporting JAX and PyTorch. It offers a standardized API (tfds.load, tfds.builder) for downloading, preparing, and loading datasets as tf.data.Dataset objects or numpy arrays. The architecture consists of core components (dataset builders, feature connectors, download management) and hundreds of dataset-specific implementations following a consistent pattern. Key entry points include the tfds CLI for dataset operations and the main tfds module for programmatic access. Data flows involve downloading raw data, generating TFRecord files via builders, and yielding examples through tf.data pipelines. External dependencies include TensorFlow, absl-py, numpy, pandas, and dataset-specific extras like apache-beam for large-scale processing or huggingface_hub for community datasets.

RATING: 8.8/10 MAINT: active DRIFT: low
β–Έ 5 reusable components found
lutzroeder/netron β˜… 33551 3185 APPLICATION

Netron is a cross-platform neural network model visualizer that supports a wide range of deep learning frameworks (ONNX, TensorFlow, PyTorch, CoreML, etc.). It operates as an Electron desktop application, a web app, and a Python-based CLI/server. The architecture is modular: each model format is handled by a dedicated `ModelFactory` class implementing `match()` and `open()` methods, which parse binary or protobuf/flatbuffers serialized models into a uniform internal graph representation (Model -> Graph -> Node -> Value/Tensor). The application provides interactive graph visualization with SVG rendering, attribute inspection, and export capabilities. While primarily an application, it contains substantial data-processing code for format parsing, tensor decoding, and schema-driven metadata handling. The codebase is well-structured with consistent patterns, though it exhibits some duplication across format parsers and experimental/partial support for minority formats. The Python server (`server.py`) and the core binary parsing libraries (`base.js`, `protobuf.js`, `flatbuffers.js`) are independently reusable.

RATING: 8.7/10 MAINT: active DRIFT: low
β–Έ 3 reusable components found
scikit-hep/awkward β˜… 976 139 APPLICATION

Awkward Array is a Python library for manipulating nested, ragged, and mixed-type data structures that do not fit naturally into NumPy's rectangular array model. It is primarily a software library, not a data-research pipeline, though it contains research-oriented studies and benchmarks. The architecture is a Python front-end backed by compiled C++ kernels, with optional integrations for PyArrow, JAX, CuPy, Numba, CUDA, and ROOT. The core data model is built around composable layouts, forms, and types, and operations are dispatched through a high-level function decorator that separates public API from backend-specific implementations.

RATING: 8.7/10 MAINT: active DRIFT: medium
β–Έ 5 reusable components found
SALib/SALib β˜… 1009 266 APPLICATION

SALib is a Python library for global sensitivity analysis (GSA) of computational models. It implements a comprehensive suite of variance-based and moment-independent methods including Sobol', Morris, FAST, DGSM, PAWN, HDMR, RBD-FAST, and fractional factorial designs. The library follows a decoupled workflow: sample parameter space, evaluate the model, then analyze results. It provides both a programmatic API (import SALib) and a command-line interface (salib sample/analyze). The architecture is modular: sampling modules in SALib.sample, analysis modules in SALib.analyze, with shared utilities in SALib.util. A high-level ProblemSpec class enables fluent method chaining (sample β†’ evaluate β†’ analyze β†’ plot). Results are returned as ResultDict objects with to_df() and plot() methods for integration with pandas and matplotlib. External dependencies are numpy, scipy, matplotlib, pandas, and optionally multiprocess/pathos for parallel execution. The library is used in environmental modeling, energy systems, and uncertainty quantification research, with over 1000 GitHub stars and a JOSS paper.

RATING: 8.6/10 MAINT: active DRIFT: medium
β–Έ 5 reusable components found
dusty-nv/jetson-containers β˜… 4843 846 APPLICATION

This repository is a container build system and runtime for NVIDIA Jetson edge AI devices. It provides a modular, composable framework for building Docker images pre-configured with AI/ML libraries (LLMs, VLMs, robotics, speech, computer vision) optimized for Jetson's ARM64 + CUDA architecture. The system includes a CLI (`jetson-containers`), dependency resolution, multi-stage Docker builds, automated testing, and CI/CD workflow generation. While primarily a build tool, it also ships hundreds of ready-to-use container definitions for popular frameworks like PyTorch, TensorFlow, vLLM, ComfyUI, ROS 2, and Home Assistant. The repository has a hybrid character: the core is an application build system, but many package definitions are research-oriented (e.g., attention kernels, diffusion models, physical AI), reflecting its dual role as both a production deployment tool and an experimentation platform for edge AI.

RATING: 7.9/10 MAINT: active DRIFT: medium
β–Έ 3 reusable components found
v923z/micropython-ulab β˜… 500 134 APPLICATION

micropython-ulab is a C library that provides a subset of NumPy and SciPy functionality for MicroPython and CircuitPython on microcontrollers. It implements a multi-dimensional ndarray type with broadcasting, universal functions, linear algebra (Cholesky, eig, inv, QR), FFT, signal processing (sosfilt), numerical integration, optimization, random number generation, and file I/O. The library is designed for performance and memory frugality, using compile-time feature flags (ulab.h) to trim flash usage. Key entry points include ulab.numpy (array creation, math, stats, linalg, fft, io), ulab.scipy (integrate, linalg, optimize, signal, special), and utils (buffer conversion, spectrogram). The architecture is modular with separate C modules for each functional area, a reusable user module for custom extensions, and extensive test coverage for 1D–4D arrays and complex numbers. The library is actively maintained with frequent releases, but some SciPy functions remain incomplete and the codebase has repetitive dtype-dispatch macros that increase maintenance burden.

RATING: 7.8/10 MAINT: active DRIFT: medium
β–Έ 4 reusable components found
pydata/patsy β˜… 988 106 APPLICATION

Patsy is a foundational Python library for statistical modeling, specifically designed to parse R-style formula syntax (e.g., 'y ~ x1 + x2') and construct design matrices (numerical arrays) for regression and machine learning algorithms. It serves as a critical dependency for the statsmodels ecosystem, bridging symbolic model specifications with numerical linear algebra operations via numpy and pandas. The architecture relies on a custom formula parser, a stateful transform protocol for handling splines and categorical coding, and a DesignMatrix ndarray subclass that preserves metadata while maintaining performance. While the codebase demonstrates high craftsmanship in parsing and matrix construction, it is no longer under active feature development, with users recommended to migrate to the successor library 'Formulaic'.

RATING: 7.6/10 MAINT: stale DRIFT: medium
β–Έ 3 reusable components found

This repository is a comprehensive collection of educational tutorials that implement machine learning algorithms and applications entirely from scratch using only NumPy. It covers a vast range of topics including core ML algorithms (linear regression, SVM, K-means, PCA, etc.), neural networks (CNN, RNN, LSTM, GAN, transformer), computer vision (object detection, face recognition, OCR), natural language processing (sentiment analysis, chatbots, text summarization, BPE tokenizer), time series forecasting (ARIMA, LSTM, Prophet), recommendation systems, anomaly detection, and reinforcement learning. Each tutorial is a self-contained Python script that generates synthetic data with planted structure, trains a hand-coded model, and validates against naive baselines. The code is heavily commented and designed for teaching, not production. There are no real datasets, no external dependencies beyond NumPy, and no shared libraryβ€”each file is independent, leading to significant code duplication across tutorials. The repository serves as an excellent learning resource for understanding the inner workings of ML algorithms, but it is not suitable for direct reuse in production systems without substantial refactoring.

RATING: 7.1/10 REPRO: 8.0/10 MAINT: maintained DRIFT: low
β–Έ 3 reusable components found
Asabeneh/30-Days-Of-Python β˜… 66747 12466 DATA_RESEARCH

This repository is a 30-day Python tutorial that originated as an application-focused learning project but has evolved into a hybrid data_research resource. The core is a structured curriculum covering Python fundamentals through 30 days of markdown documentation and accompanying Python scripts. However, the repository's most substantial and unique content lies in its data folder, which contains rich datasets including presidential speeches (Obama, Trump, Michelle Obama, Melina Trump), Fortune 500 company data, Hacker News posts, country statistics, email exchanges, and weight-height CSV data. The data_research character emerges from the later days which cover web scraping (with actual scraped JSON output from Boston University), Pandas data analysis, NumPy statistics, MongoDB database operations, and API consumption. The repository includes Flask web applications for text analysis, demonstrating practical data processing pipelines. While the tutorial content is well-structured and professionally presented across multiple languages (English, German, Spanish, Chinese, Portuguese, Persian, Korean, Ukrainian), the actual executable Python code is minimal compared to the markdown documentation. The data assets are the most valuable component - they're real, substantial datasets that could be used for NLP analysis, statistical exercises, and data visualization projects. However, the repository lacks proper dependency management beyond a basic requirements.txt for the Flask app, has no environment configuration, and the data sources are not systematically documented with metadata or provenance information.

RATING: 6.5/10 REPRO: 5.0/10 MAINT: stale DRIFT: medium
β–Έ 5 reusable components found
zillionare/zillionare β˜… 324 37 DATA_RESEARCH

This repository is a comprehensive knowledge base and research platform for quantitative finance, primarily focused on Chinese A-share markets. It contains hundreds of blog posts, course materials, and technical articles covering factor investing, machine learning strategies, backtesting frameworks, and data engineering. The codebase includes reusable data pipelines (ParquetUnifiedStorage, CalendarModel), a custom backtesting framework (Moonshot), and numerous factor analysis scripts. It also hosts a sophisticated set of AI-assisted academic research skills (paper writing, review, deep research) defined as Claude skill files. The repository serves as both an educational resource and a personal research lab, with content spanning from beginner Python tutorials to advanced factor construction and model training. While the code is functional and demonstrates solid data engineering patterns, it is tightly coupled to Chinese financial data APIs (Tushare, akshare) and contains hardcoded paths, limiting portability. The repository is actively maintained but shows signs of technical drift in some dependencies and content duplication.

RATING: 6.4/10 REPRO: 6.0/10 MAINT: maintained DRIFT: medium
β–Έ 4 reusable components found

This repository is a Chinese translation (2nd edition) of Wes McKinney's "Python for Data Analysis" book, presented as markdown chapter files. It is an educational resource, not a software application or a full data pipeline. The content covers pandas, NumPy, Matplotlib, and other data analysis libraries with embedded code examples for learning purposes. It is not a project that can be executed directly; there are no Python scripts, notebooks, or data files included. The code examples are based on older library versions (circa 2017) and use deprecated APIs such as `ix` and `read_table`. External datasets referenced (e.g., tips.csv, MovieLens) are not bundled, making reproduction impossible without manual setup. The repository has not been actively maintained, and its technical drift is high due to ecosystem changes. It is best used as a reference or study guide, not as a reusable codebase.

RATING: 5.1/10 REPRO: 2.0/10 MAINT: stale DRIFT: high
kailashahirwar/cheatsheets-ai β˜… 15426 3374 DATA_RESEARCH

This repository is a static collection of cheat sheets (images and PDFs) for various machine learning and data science libraries (TensorFlow, Keras, Pandas, NumPy, Scikit-learn, PySpark, etc.). It contains no executable code, no data pipelines, no notebooks, and no analytical models. The last commit was in 2019, and the repository has been inactive since. It serves purely as a reference resource for practitioners, not as a functional software project or data research artifact. There are no reusable components, no data lineage, and no reproducibility possible. The repository is effectively a curated set of external cheat sheets, not a codebase to be analyzed for architecture or engineering quality.

RATING: 0.2/10 MAINT: deprecated DRIFT: high
── end of results ──
$ submit: