我正在尋找用於圖像處理的AdaptiveMetropolis
步驟方法的示例或教程。適用於Metropolis的示例/教程使用PyMC的圖像
我到目前爲止發現的唯一一個模糊的圖像相關資源是這個天文學dissertation和相關的GitHub repo。
這個較寬的question似乎沒有提供PyMC示例代碼。
在模擬陣列上尋找峯值怎麼辦?
import numpy as np
from matplotlib import pyplot as plt
sz = (12,18)
data_input = np.random.normal(loc=5.0, size=sz)
data_input[7:10, 2:6] = np.random.normal(loc=100.0, size=(3,4))
fig = plt.figure()
ax = fig.add_subplot(1,1,1)
im = ax.imshow(data_input)
ax.set_title("input")