python中rbf神经网络包_RBF: python实现RBF径向基神经网络(转自https://github.com/treverhines/RBF)...

该博客介绍了Python中用于径向基函数(RBF)应用的包,包括数据插值、平滑、PDE求解等。通过RBFInterpolant类实现数据平滑,利用RBF-FD权重算法解决大规模PDE问题。文中提供了具体示例代码,展示如何使用该包进行数据平滑和求解Poisson方程。
摘要由CSDN通过智能技术生成

RBF

Python package containing tools for radial basis function (RBF)

applications. Applications include interpolating/smoothing scattered

data and solving PDEs over irregular domains. This package was

heavily influenced by the books "Meshfree Approximation Methods with

Matlab" by Gregory Fasshauer and "A Primer on Radial Basis Functions

with Applications to the Geosciences" by Bengt Fornberg and Natasha

Flyer. The complete documentation for this package can be found here.

Features

Functions for evaluating RBFs and their exact derivatives.

A class for RBF interpolation, which is used for interpolating and

smoothing scattered, noisy, N-dimensional data.

An algorithm for generating Radial Basis Function Finite Difference

(RBF-FD) weights. This is used for solving large scale PDEs over

irregular domains.

A node generation algorithm which can be used for solving PDEs with

the spectral RBF method or the RBF-FD method.

An abstraction for Gaussian processes. Gaussian processes are

primarily used here for Gaussian process regression (GPR), which is

a nonparametric Bayesian interpolation/smoothing method.

Halton sequence generator.

Computational geometry functions (e.g. point in polygon testing) for

two and three spatial dimensions.

Installation

RBF requires the following python packages: numpy, scipy, sympy,

cython, and rtree. These dependencies should be satisfied with just

the base Anaconda python package (https://www.continuum.io/downloads)

download the RBF package

$ git clone http://github.com/treverhines/RBF.git

compile and install

$ cd RBF

$ python setup.py install

test that everything works

$ cd test

$ python -m unittest discover

Demonstration

Smoothing Scattered Data

'''

In this example we generate synthetic scattered data with added

noise and then fit it with a smoothed RBF interpolant. The

interpolant in this example is equivalent to a thin plate spline.

'''

import numpy as np

from rbf.interpolate import RBFInterpolant</

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值