Một mục phía máy chủ trong kho dữ liệu GitHub của TopGit: google/tf-quant-finance, 5.6k sao, nhóm Backend, Python. High-performance TensorFlow library for quantitative finance.
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
TF Quant Finance: TensorFlow based Quant Finance Library (ARCHIVED)
[!IMPORTANT]
This library is no longer maintained and has been archived. If you depend on
the functionality provided by this library, we suggest to fork it and continue
development elsewhere.
Table of contents
Introduction
Installation
TensorFlow training
Development roadmap
Examples
Contributing
Development
Community
Disclaimers
License
Introduction
This library provides high-performance components leveraging the hardware
acceleration support and automatic differentiation of TensorFlow. The
library will provide TensorFlow support for foundational mathematical methods,
mid-level methods, and specific pricing models. The coverage is being
expanded over the next few months.
The library is structured along three tiers:
Foundational methods.
Core mathematical methods - optimisation, interpolation, root finders,
linear algebra, random and quasi-random number generation, etc.
Mid-level methods.
ODE & PDE solvers, Ito process framework, Diffusion Path Generators,
Copula samplers etc.
Pricing methods and other quant finance specific utilities.
Specific Pricing models (e.g., Local Vol (LV), Stochastic Vol (SV),
Stochastic Local Vol (SLV), Hull-White (HW)) and their calibration.
Rate curve building, payoff descriptions, and schedule generation.
We aim for the library components to be easily accessible at each level. Each layer will be accompanied by many examples that can run independently of
higher-level components.
Installation
The easiest way to get started with the library is via the pip package.
Note that the library requires Python 3.7 and Tensorflow >= 2.7.
First, please install the most recent version of TensorFlow by following
the TensorFlow installation instructions.
For example, you could install TensorFlow
pip3 install --upgrade tensorflow
Then run
pip3 install --upgrade tf-quant-finance
You maybe also have to use the option --user.
TensorFlow training
If you are not familiar with TensorFlow, an excellent place to get started is with the
following self-study introduction to TensorFlow notebooks:
Introduction to TensorFlow Part 1 - Basics.
Introduction to TensorFlow Part 2 - Debugging and Control Flow.
Introduction to TensorFlow Part 3 - Advanced Tensor Manipulation.
Development roadmap
We are working on expanding the coverage of the library. Areas under active development are:
Ito Processes: Framework for defining Ito processes.
Includes methods for sampling paths from a process and for solving the
associated backward Kolmogorov equation.
Implementation of the following specific processes/models:
Brownian Motion
Geometric Brownian Motion
Ornstein-Uhlenbeck
One-Factor Hull-White model
Heston model
Local volatility model.
Quadratic Local Vol model.
SABR model
Copulas: Support for defining and sampling from copulas.
Model Calibration:
Dupire local vol calibration.
SABR model calibration.
Rate curve fitting: Hagan-West algorithm for yield curve bootstrapping and the Monotone Convex interpolation scheme.
Support for dates, day-count conventions, holidays, etc.
Examples
See tf_quant_finance/examples/
for end-to-end examples. It includes tutorial notebooks such as:
American Option pricing under the Black-Scholes model
Monte Carlo via Euler Scheme
Black Scholes: Price and Implied Vol
Forward and Backward mode gradients in TFF
Root search using Brent's method
Optimization
Swap Curve Fitting
Vectorization and XLA compilation
The above links will open Jupyter Notebooks in Colab.
Contributing
We're eager to collaborate with you! See CONTRIBUTING.md for a guide on how to contribute. This project adheres to TensorFlow's code of conduct. By participating, you are expected to uphold this code.
Development
This section is for developers who want to contribute code to the
library. If you are only interested in using the library, please follow the
instructions in the Installation section.
Development dependencies
This library has the following dependencies:
Bazel
Python 3 (Bazel uses Python 3 by default)
TensorFlow version >= 2.7
TensorFlow Probability version between v0.11.0 and v0.12.1
Numpy version 1.21 or higher
Attrs
Dataclasses (not needed if your Python version >= 3.7)
This library requires the
Bazel build system. Please follow the
Bazel installation instructions
for your platform.
You can install TensorFlow and related dependencies using the pip3 install
command:
GitHub repository: Report bugs or make feature requests.
TensorFlow Blog: Stay up to date on content from the TensorFlow team and best articles from the community.
[email protected]: Open mailing list for discussion and questions of this library.
TensorFlow Probability: This library will leverage methods from TensorFlow Probability (TFP).
Disclaimers
Google does not officially support this product. This library is under active development, and interfaces may change at any time.
License
This library is licensed under the Apache 2 license (see LICENSE). This library uses Sobol primitive polynomials and initial direction numbers
which are licensed under the BSD license.
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/google/tf-quant-finance là nguồn chính thức.
google/tf-quant-finance có bao nhiêu sao?
google/tf-quant-finance có 5.6k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/google/tf-quant-finance. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
TopGit chưa ghi nhận URL trang chủ cho google/tf-quant-finance. Phần README ở tab phía trên thường có link demo, hoặc xem mô tả GitHub của repo.
google/tf-quant-finance còn đang phát triển không?
Commit gần nhất trên google/tf-quant-finance là 9 tháng trước (theo timestamp GitHub). Repo có 705 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
google/tf-quant-finance dùng license gì?
google/tf-quant-finance phát hành theo license Apache-2.0. Nên mở file LICENSE trên GitHub để xác nhận — license metadata đôi khi lệch với thực tế dự án.
google/tf-quant-finance viết bằng ngôn ngữ gì?
google/tf-quant-finance chủ yếu viết bằng Python. Trường "language" của GitHub dựa trên phần lớn byte ở nhánh mặc định.
Đọc đầy đủ README ở tab phía trên.
Chưa chắc tf-quant-finance có hợp với bạn?
Để ChatGPT, Claude hoặc Perplexity tìm hiểu giúp — bấm bên dưới và xem AI nói gì về tf-quant-finance.