Это можно сделать с помощью этого:
import numpy as np
wght_prox = np.zeros((250,100,8), np.float64)
for i in range(250):
wght_prox[i]= ((250 - i) /250)
for k in range(100):
wght_prox[i][k]= ((100 - k) /100)
wght_prox
Вывод:
array([[[1. , 1. , 1. , ..., 1. , 1. , 1. ],
[0.99, 0.99, 0.99, ..., 0.99, 0.99, 0.99],
[0.98, 0.98, 0.98, ..., 0.98, 0.98, 0.98],
...,
[0.03, 0.03, 0.03, ..., 0.03, 0.03, 0.03],
[0.02, 0.02, 0.02, ..., 0.02, 0.02, 0.02],
[0.01, 0.01, 0.01, ..., 0.01, 0.01, 0.01]],
[[1. , 1. , 1. , ..., 1. , 1. , 1. ],
[0.99, 0.99, 0.99, ..., 0.99, 0.99, 0.99],
[0.98, 0.98, 0.98, ..., 0.98, 0.98, 0.98],
...,
[0.03, 0.03, 0.03, ..., 0.03, 0.03, 0.03],
[0.02, 0.02, 0.02, ..., 0.02, 0.02, 0.02],
[0.01, 0.01, 0.01, ..., 0.01, 0.01, 0.01]],
[[1. , 1. , 1. , ..., 1. , 1. , 1. ],
[0.99, 0.99, 0.99, ..., 0.99, 0.99, 0.99],
[0.98, 0.98, 0.98, ..., 0.98, 0.98, 0.98],
...,
[0.03, 0.03, 0.03, ..., 0.03, 0.03, 0.03],
[0.02, 0.02, 0.02, ..., 0.02, 0.02, 0.02],
[0.01, 0.01, 0.01, ..., 0.01, 0.01, 0.01]],
...,
[[1. , 1. , 1. , ..., 1. , 1. , 1. ],
[0.99, 0.99, 0.99, ..., 0.99, 0.99, 0.99],
[0.98, 0.98, 0.98, ..., 0.98, 0.98, 0.98],
...,
[0.03, 0.03, 0.03, ..., 0.03, 0.03, 0.03],
[0.02, 0.02, 0.02, ..., 0.02, 0.02, 0.02],
[0.01, 0.01, 0.01, ..., 0.01, 0.01, 0.01]],
[[1. , 1. , 1. , ..., 1. , 1. , 1. ],
[0.99, 0.99, 0.99, ..., 0.99, 0.99, 0.99],
[0.98, 0.98, 0.98, ..., 0.98, 0.98, 0.98],
...,
[0.03, 0.03, 0.03, ..., 0.03, 0.03, 0.03],
[0.02, 0.02, 0.02, ..., 0.02, 0.02, 0.02],
[0.01, 0.01, 0.01, ..., 0.01, 0.01, 0.01]],
[[1. , 1. , 1. , ..., 1. , 1. , 1. ],
[0.99, 0.99, 0.99, ..., 0.99, 0.99, 0.99],
[0.98, 0.98, 0.98, ..., 0.98, 0.98, 0.98],
...,
[0.03, 0.03, 0.03, ..., 0.03, 0.03, 0.03],
[0.02, 0.02, 0.02, ..., 0.02, 0.02, 0.02],
[0.01, 0.01, 0.01, ..., 0.01, 0.01, 0.01]]])