Home
last modified time | relevance | path

Searched refs:np (Results 1 – 2 of 2) sorted by relevance

/rocksdb-6.9/tools/block_cache_analyzer/
Dblock_cache_pysim.py12 import numpy as np namespace
1064 self.th = np.zeros((len(self.policies), self.nfeatures))
1066 self.b = np.zeros_like(self.th)
1070 self.A[i] = np.identity(self.nfeatures)
1071 self.th_hat = np.zeros_like(self.th)
1072 self.p = np.zeros(len(self.policies))
1078 x_i = np.zeros(self.nfeatures) # The current context vector
1082 p = np.zeros(len(self.policies))
1086 a_upper_ci = self.alph * np.sqrt(ta)
1089 p = p + (np.random.random(len(p)) * 0.000001)
[all …]
Dblock_cache_trace_analyzer_plot.py12 import numpy as np namespace
278 ind = np.arange(len(x)) # the x locations for the groups