SciML/ComponentArrays.jl
Arrays with arbitrarily nested named components.
Thành tựu nổi bật
Những danh hiệu mới nhất của dự án
#1 Repository Của Tuần
#1 Repository Của Tuần
#1 Repository Của Tuần
🧩 ComponentArrays.jl: Mảng có thành phần đặt tên, không cần ngôn ngữ mô hình
ComponentArrays.jl cho phép dùng ComponentArray như NamedTuple có thể thay đổi và truyền qua bộ giải phương trình, kết hợp mô hình mà không cần DSL.
ComponentArrays.jl là một package Julia cung cấp kiểu ComponentArray — mảng có các khối dữ liệu (thành phần) có thể truy cập qua tên. Mỗi thành phần là một khối mảng con, cho phép xây dựng mô hình độc lập rồi kết hợp chúng bằng hàm số đơn giản. Đây là giải pháp thay thế cho ngôn ngữ mô hình truyền thống, phù hợp với DifferentialEquations.jl, Optim.jl và bất kỳ bài toán nào cần véc-tơ phẳng.
✨ Điểm nổi bật
- ComponentVector: mảng 1 chiều với thành phần đặt tên, truy cập qua tên hoặc chỉ số.
- Kết hợp mô hình: hỗ trợ tạo view từ ComponentArray gốc, dùng cho hàm số kết hợp mô hình.
- Tương thích solver: truyền trực tiếp vào DifferentialEquations.jl và Optim.jl.
- Hỗ trợ broadcast: tạo ComponentMatrix 2 chiều tự động qua phép nhân ma trận.
- Nested NamedTuple: xây dựng ComponentArray như một NamedTuple lồng nhau có thể thay đổi.
- Axis hệ thống: truy cập thành phần qua cú pháp [:name] hoặc [:a, :b].
💡 Vì sao đáng chú ý
Thay vì dùng ngôn ngữ mô hình (modeling language) phức tạp, ComponentArrays.jl cung cấp cách nhẹ nhàng để gắn tên cho từng phần của véc-tơ/khối dữ liệu. Điều này đặc biệt mạnh mẽ khi kết hợp với các solver trong SciML, nơi cần truyền các véc-tơ phẳng nhưng vẫn muốn giữ cấu trúc ngữ nghĩa. Ví dụ Lorenz được tích hợp dễ dàng với ODEProblem và @unpack từ Parameters.jl.
#Julia #ScientificMachineLearning #DifferentialEquations #Modeling #TiniX
Similar Projects
Discover other similar projects and AI models.
High performance ordinary differential equation (ODE) and differential-algebraic equation (DAE) solvers, including neural ordinary differential equations (neural ODEs) and scientific machine learning (SciML)
Computing reachable states of dynamical systems in Julia
Multi-language suite for high-performance solvers of differential equations and scientific machine learning (SciML) components. Ordinary differential equations (ODEs), stochastic differential equations (SDEs), delay differential equations (DDEs), differential-algebraic equations (DAEs), and more in Julia.
Physics-Informed Neural Networks (PINN) Solvers of (Partial) Differential Equations for Scientific Machine Learning (SciML) accelerated simulation
Data driven modeling and automated discovery of dynamical systems for the SciML Scientific Machine Learning organization
Surrogate modeling and optimization for scientific machine learning (SciML)
Scientific machine learning (SciML) benchmarks, AI for science, and (differential) equation solvers. Covers Julia, Python (PyTorch, Jax), MATLAB, R
GPU-acceleration routines for DifferentialEquations.jl and the broader SciML scientific machine learning ecosystem