33 个仓库
Integration layers specifically for mapping native memory to NumPy array structures.
Distinct from NumPy-Compatible Frameworks: Existing candidates are for general frameworks or array operations; this is about the native binding mechanism.
Explore 33 awesome GitHub repositories matching scientific & mathematical computing · NumPy Array Integration. Refine with filters or upvote what's useful.
pybind11 is a header-only C++ binding library that exposes C++ functions and classes as Python modules. It serves as a language bridge, mapping native types, inheritance hierarchies, and lambda functions into compatible Python objects to enable high-performance native code execution. The library includes specialized integration for NumPy arrays, utilizing buffer protocols to bind native C++ data without copying memory. It provides a toolkit for mapping C++ standard library data structures and smart pointers into the Python environment while maintaining cross-language memory management. The p
Binds native C++ data to NumPy arrays using buffer protocols to avoid memory copying.
This project is a Python wrapper for the TA-Lib C library, serving as a financial technical analysis library and quantitative trading tool. It provides a collection of mathematical functions designed to analyze market price movements, identify trading signals, and recognize candlestick patterns within financial data. The library focuses on the computation of trend, momentum, and volume metrics. It includes specialized tools for candlestick pattern recognition to detect recurring price action shapes in both historical and real-time data. The system integrates with NumPy arrays to process cont
Maps native C memory blocks directly to NumPy array structures for efficient vectorized processing.
This project is a reference collection of statistical learning algorithms built from scratch using NumPy for linear algebra and matrix operations. It serves as an educational resource for studying the mathematical foundations and inner workings of machine learning models through manual implementations. The codebase provides hand-coded implementations of both supervised and unsupervised learning. This includes classification and regression models such as support vector machines, decision trees, and Naive Bayes, as well as data clustering and pattern discovery methods like k-means and hierarchi
Writing high-performance linear algebra and matrix operations using NumPy to implement mathematical formulas and academic pseudocode.
CuPy 是一个 CUDA 数组计算库,实现了与 NumPy 兼容的接口,用于在 NVIDIA GPU 上执行数组操作和数值计算。它作为一个 GPU 加速数值库和基于 CUDA 的 SciPy 实现,将繁重的计算卸载到图形硬件上,以提高科学和工程工作负载的处理速度。 该库支持多框架张量交换,允许使用标准化的内存布局在不同的深度学习框架之间共享数据缓冲区,从而避免内存拷贝。它还支持自定义 GPU 内核集成,允许将数组数据连接到低级 API,以便精确控制硬件执行。 该项目广泛涵盖了高性能数组处理和科学计算工作流。其功能包括加速数组计算和提供大规模数值计算工具。
Implements a NumPy-compatible array interface to allow seamless transition of computations from CPU to GPU.
Einops is a tensor manipulation library that provides a framework-agnostic interface for reshaping, Einstein summation, and multi-dimensional array operations. It serves as an abstraction layer that works across NumPy, PyTorch, TensorFlow, and JAX, allowing for tensor transformations without changing the API. The library distinguishes itself through a declarative notation system that uses readable string patterns to describe tensor rearrangements and reductions. This approach includes an extended Einstein summation interface that supports multi-letter axis names and a named dimension mapping
Enables the conversion of tensors from various deep learning frameworks into standard NumPy arrays.
pysheeet 是一个技术参考库,提供了一系列精选的代码片段和实现模式,用于高级 Python 开发、系统集成和高性能计算。它充当实现底层网络编程、原生 C 扩展以及异步和并发编程的综合指南。 该项目为大语言模型的开发和部署提供了专门的框架,包括用于分布式 GPU 推理和高性能服务的工具。它还包括用于高性能计算集群编排的详细模式,涵盖 GPU 资源分配和多节点工作负载管理。 该库涵盖了广泛的功能,包括安全网络通信和加密、对象关系映射和数据库管理,以及复杂数据结构和算法的实现。它还提供用于内存管理、通过外部函数接口(FFI)进行原生互操作以及系统级 OS 集成的实用程序。
Implements integration layers for mapping native memory to NumPy array structures for zero-copy transfer.
orjson is a high-performance Python library for serializing and deserializing JSON data. It functions as both a JSON parsing library and a serialization engine, converting data between native Python objects and UTF-8 encoded bytes. The project provides specialized support for converting complex Python data structures, including dataclasses, datetime objects, and NumPy arrays and scalars, into JSON format. It also allows for the insertion of pre-serialized JSON blobs into documents to maintain processing speed. The library includes capabilities for memory-efficient deserialization through key
Converts NumPy arrays and scalars into JSON format without requiring the array library.
BertViz 是一套诊断工具集,用于可视化注意力头(attention heads)和内部模型行为,以解释语言模型如何处理文本。它充当自然语言处理模型的可解释性工具和调试器,专门提供 Transformer 架构内注意力机制的交互式地图。 该项目通过特定注意力头和层的详细视图,支持对标记(token)关系的分析。它支持跨所有层的全局注意力可视化、编码器-解码器注意力映射,以及对查询和键向量内单个神经元的检查,以揭示它们对注意力计算的贡献。 该工具提供了按层、头或句子对过滤视图的功能。可视化效果通过 HTML 和 JavaScript 注入直接在笔记本环境中渲染,并可导出为独立的 HTML 文件以供外部共享。
Converts high-dimensional model tensors into JSON arrays for frontend transmission.
scikit-image is a Python image processing library and scientific image analysis toolkit. It provides a framework for digital image processing and computer vision, utilizing numerical arrays for pixel-level manipulations. The library enables the quantification of image properties and the detection of visual features, such as edges and blobs. It includes tools for image segmentation and the extraction of textures and patterns to characterize objects within visual data. Capabilities cover image manipulation through color space conversion, geometric transformations, and digital restoration. It a
Leverages NumPy multidimensional arrays to perform high-performance vectorized pixel-level image manipulations.
pyAudioAnalysis 是一个用于音频信号处理和分析的 Python 库和框架。它提供了提取声音数学表示(如频谱图)的工具,并实现了一个用于训练和评估机器学习模型的系统,以根据声学模式对音频片段进行分类。 该项目包括专门的音频分割工具,允许删除静音并检测特定的音频事件,从而将录音划分为有意义的部分。它还提供了数据可视化功能,使用降维技术来映射内容相似性并识别声音数据中的聚类。 该库涵盖了广泛的信号处理功能,包括频谱域特征提取、时间分析和用于估计连续值的音频回归。这些功能既可以作为可编程库使用,也可以通过命令行界面进行音频文件的批处理。
Leverages NumPy array structures for fast mathematical operations on multidimensional audio signal data.
PRMLT provides self-contained MATLAB implementations of every algorithm from the Pattern Recognition and Machine Learning textbook by Christopher Bishop. The code reproduces the book's exact formulas and notation, making each implementation directly traceable to the source material for educational verification and study. The implementations cover the full range of core machine learning methods from the textbook, including classification, clustering, regression, density estimation, and neural network algorithms. Each module is self-contained with heavy comments, and the code uses compact, vect
Compact, vectorized Matlab functions that execute machine learning algorithms efficiently on array data using matrix operations.
Warp is a Python framework that JIT-compiles Python functions into CUDA kernels for GPU-accelerated parallel computation, with built-in automatic differentiation and multi-framework array interoperability. At its core, it provides a GPU kernel compilation system that enables writing and executing custom GPU kernels directly from Python, while supporting automatic gradient computation through those kernels for integration with machine learning pipelines. The framework also includes tile-based cooperative computing, where thread blocks partition into tiles for shared-memory and tensor-core opera
Converts Warp arrays to and from NumPy arrays without copying data.
Anomalib is a PyTorch-based library for visual anomaly detection, offering a modular framework, a comprehensive model zoo, and a benchmarking suite designed for industrial defect detection. It provides a wide range of algorithms—including generative, discriminative, teacher-student, and vision-language approaches—that support unsupervised, few-shot, and zero-shot settings. The library enables deployment through model export to ONNX and OpenVINO for edge devices, and includes a no-code web application for training and inference. It also features a command-line interface for orchestrating multi
Anomalib provides efficient numpy-based data structures for handling image and metadata arrays in anomaly detection workflows.
Orange3 is a visual data mining platform that provides an interactive canvas for building data analysis workflows without writing code. At its core, it offers a widget-based visual programming environment where users connect configurable components to perform data preprocessing, machine learning model training, statistical evaluation, and interactive visualization. The platform is built on NumPy-backed data tables with domain descriptors that define variable names, types, and roles, and includes a lazy SQL query proxy for working with database tables without loading all data into memory. The
Stores tabular data as two-dimensional NumPy arrays for efficient vectorized operations.
GluonTS 是一个概率时间序列库和深度学习预测框架。它提供了一套工具包,用于构建、训练和评估神经网络架构,通过将未来值预测为概率分布来量化不确定性。 该项目的独特之处在于支持零样本(zero-shot)预测,并集成了多种建模方法,包括深度概率神经网络以及对 Prophet 和 R forecast 等外部统计库的封装。它实现了因果卷积和可逆残差网络等专门的架构原语,以防止信息泄露并将潜在表示映射为有效的概率分布。 该框架涵盖了全面的数据工程功能,包括时间序列缩放、双射变换和分层建模。它利用 Apache Arrow 和 Parquet 进行高性能数据集流式传输和随机访问管理。在模型评估方面,它包含一套评估套件,使用分位数损失(quantile loss)和连续排名概率分数(CRPS)等指标来衡量预测准确性和概率覆盖率。 该库支持通过集成 Amazon SageMaker 进行模型部署。
Converts NumPy arrays and scalar types into JSON-serializable formats for storage and transmission.
r4ds 是一个数据科学课程和教育资源,专为精通 R 编程语言而设计。它为导入、整理、转换和可视化数据的端到端过程提供了结构化的学习路径。 该项目强调可重复的数据科学指南和全面的数据整理课程。它包括关于用于分层数据可视化的图形语法(grammar of graphics)的专业教程,以及使用 Quarto 创建的融合可执行代码与叙述性文本的技术出版物。 该材料涵盖了广泛的分析能力,包括来自不同来源的数据摄取、关系数据连接以及分类变量的管理。它还涉及数据清洗、数学建模以及多格式专业报告和演示文稿的生成。 该课程侧重于函数式编程和整洁数据(tidy data)原则的实际应用,以创建透明且可重复的分析。
Implements high-speed numerical calculations by applying operations across entire data vectors simultaneously.
Lepton 是一个专门的工具和文件格式,旨在对 JPEG 图像数据进行无损压缩和高效存储。它作为一个无损压缩器和存储优化器,在不改变原始像素数据的情况下减小文件大小,确保图像的位级完美重建。 该项目专注于减少数字图像存档的磁盘空间和网络带宽需求。它提供了 JPEG 文件的压缩和解压缩功能,在保持高质量图像存储的同时最大限度地减少整体数据占用。 其实现利用了多种熵编码和数据处理技术,包括算术编码和 Huffman 编码、预测建模以及基于流的处理。它还集成了优化的数组操作,用于处理大型图像数据块。
Leverages NumPy for fast array operations on large image data blocks.
该项目是一个 Python 机器学习库和数据科学工具包,旨在构建预测模型和分析复杂数据集。它提供了一系列使用 Scikit-Learn 框架实现的常见监督和无监督算法。 该工具包包括一个用于从历史数据生成预测的预测建模套件,以及一个用于应用贝叶斯建模和因果检验的统计分析框架。它还具有一个基于 Matplotlib 的数据可视化套件,用于渲染静态图表和图形,以解释分类器边界和数据趋势。 该项目涵盖了用于识别模式和细分的数据聚类工作流、探索性数据分析,以及使用 Pandas 和 NumPy 进行的数据预处理。
Uses NumPy vectorized operations on contiguous memory arrays to ensure high computational efficiency for mathematical operations.
这是一个面向 .NET 生态系统的科学计算框架,提供了一套全面的数值分析、统计和数学优化库。它作为开发机器学习、数字信号处理和计算机视觉应用的基础工具包。 该框架提供了用于训练和部署预测模型的专用工具包,包括神经网络、支持向量机和决策树。它还通过对实时视觉分析(如对象跟踪和面部特征检测)的深度集成,以及用于捕获和过滤音频及传感器信号的专用数字信号处理库而脱颖而出。 其功能范围扩展到高级矩阵分解和线性代数、概率状态建模和启发式搜索算法。它还涵盖了广泛的数据操作实用程序,从降维和归一化到空间数据组织和科学可视化组件。 该系统包括用于摄像机配置、GPIO 端口管理和专用深度传感硬件的硬件集成控制器。
Saves and loads multi-dimensional arrays using standard .npy and .npz NumPy formats.
PyQtGraph is a scientific plotting and graphics framework built for PyQt and PySide applications, providing fast, interactive 2D and 3D visualizations with GPU-accelerated rendering. It serves as both a real-time signal monitoring system for streaming time-series data and a toolkit for constructing interactive data dashboards with dockable panels, parameter trees, and custom widgets. The library also includes a node-based visual flowchart tool for building data processing pipelines and a scientific graphics export system that saves plots as PNG, SVG, or CSV and converts items to Matplotlib for
Performs numerical operations and data transformations directly on NumPy arrays for accelerated computation.